opensuse

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
opensuse [19/02/2025 - 10:42] adminopensuse [19/06/2025 - 07:56] (aktuell) thommie_netzwissen.de
Zeile 1: Zeile 1:
-====== Installation ======+====== Installation allgemein ======
  
 [[https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html|https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html]] [[https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html|https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html]]
Zeile 16: Zeile 16:
  
 ''self_update=1'' ''self_update=1''
- 
 ====== UEFI ====== ====== UEFI ======
  
-GRUB 2 for EFI on+===== GRUB 2 for EFI on =====
  
 openSUSE Leap does not support a boot prompt or function keys for adding boot parameters. By default, the installation will be started with American English and the boot media as the installation source. A DHCP lookup will be performed to configure the network. To change these defaults or to add additional boot parameters you need to edit the respective boot entry. Highlight it using the arrow keys and press E . See the on-screen help for editing hints (note that only an English keyboard is available now). The Installation entry will look similar to the following: openSUSE Leap does not support a boot prompt or function keys for adding boot parameters. By default, the installation will be started with American English and the boot media as the installation source. A DHCP lookup will be performed to configure the network. To change these defaults or to add additional boot parameters you need to edit the respective boot entry. Highlight it using the arrow keys and press E . See the on-screen help for editing hints (note that only an English keyboard is available now). The Installation entry will look similar to the following:
Zeile 27: Zeile 26:
 set gfxpayload=keep echo 'Loading kernel …' linuxefi /boot/x86_64/loader/linux splash=silent echo 'Loading initial ramdisk …' initrdefi /boot/x86_64/loader/initrd Add space-separated parameters to the end of the line starting with ''linuxefi''. To boot the edited entry, press F10 . If you access the machine via serial console, press Esc – 0 . A complete list of parameters is available at [[http://en.opensuse.org/Linuxrc|http://en.opensuse.org/Linuxrc]]. The most important ones are: set gfxpayload=keep echo 'Loading kernel …' linuxefi /boot/x86_64/loader/linux splash=silent echo 'Loading initial ramdisk …' initrdefi /boot/x86_64/loader/initrd Add space-separated parameters to the end of the line starting with ''linuxefi''. To boot the edited entry, press F10 . If you access the machine via serial console, press Esc – 0 . A complete list of parameters is available at [[http://en.opensuse.org/Linuxrc|http://en.opensuse.org/Linuxrc]]. The most important ones are:
  
-Table 2.2: Installation Sources [[https://bugzilla.opensuse.org/enter_bug.cgi?&product=openSUSE Distribution&component=Documentation&short_desc=[doc]+&comment=Table 2.2:  Installation Sources +===== Table 2.2: Installation Sources =====
- +
-https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2142&assigned_to=fs@suse.com&version=Leap 42.2|Report Bug]] [[https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2142|#]] +
- +
-| \\ CD/DVD (default) | \\ ''install=cd:/''   | +
-| \\ Hard disk | \\ ''install=hd:/?device=//sda/PATH_TO_ISO//''   | +
-| \\ SLP | \\ ''install=slp:/''   | +
-| \\ FTP | \\ ''install=[[ftp:////ftp.example.com/PATH_TO_ISO//|ftp:////ftp.example.com/PATH_TO_ISO//]]'' +
-| \\ HTTP | \\ ''install=[[http:////www.example.com/PATH_TO_ISO//|http:////www.example.com/PATH_TO_ISO//]]'' +
-| \\ NFS | \\ ''install=nfs:///PATH_TO_ISO//''   | +
-| \\ SMB / CIFS |  | +
- +
-Table 2.3: Network Configuration [[https://bugzilla.opensuse.org/enter_bug.cgi?&product=openSUSE Distribution&component=Documentation&short_desc=[doc]+&comment=Table 2.3:  Network Configuration+
  
-https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2195&assigned_to=fs@suse.com&version=Leap 42.2|Report Bug]] [[https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2195|#]]+| \\ CD/DVD (default)| \\ ''install=cd:/''   | 
 +| \\ Hard disk| \\ ''install=hd:/?device=//sda/PATH_TO_ISO//''   | 
 +| \\ SLP| \\ ''install=slp:/''   | 
 +| \\ FTP| \\ ''install=[[ftp:////ftp.example.com/PATH_TO_ISO//|ftp:////ftp.example.com/PATH_TO_ISO//]]''   | 
 +| \\ HTTP| \\ ''install=[[http:////www.example.com/PATH_TO_ISO//|http:////www.example.com/PATH_TO_ISO//]]''   | 
 +| \\ NFS| \\ ''install=nfs:///PATH_TO_ISO//''   | 
 +| \\ SMB / CIFS|   |
  
-| \\ DHCP (default) | \\ netsetup=dhcp | +===== Table 2.3: Network Configuration =====
-| \\ Prompt for Parameters | \\ ''netsetup=hostip,netmask,gateway,nameserver''   | +
-| \\ Host IP address | \\ ''hostip=192.168.2.100'' \\  \\ ''hostip=192.168.2.100/24''   | +
-| \\ Netmask | \\ ''netmask=255.255.255.0''   | +
-| \\ Gateway | \\ ''gateway=192.168.5.1''   | +
-| \\ Name Server | \\ ''nameserver=192.168.1.116'' \\  \\ ''nameserver=192.168.1.116,192.168.1.118''   | +
-| \\ Domain Search Path | \\ ''domain=example.com''   |+
  
-Table 2.4: Miscellaneous [[https://bugzilla.opensuse.org/enter_bug.cgi?&product=openSUSE Distribution&component=Documentation&short_desc=[doc]+&comment=Table 2.4:  Miscellaneous+| \\ DHCP (default)| \\ netsetup=dhcp| 
 +| \\ Prompt for Parameters| \\ ''netsetup=hostip,netmask,gateway,nameserver''   | 
 +| \\ Host IP address| \\ ''hostip=192.168.2.100'' \\  \\ ''hostip=192.168.2.100/24''   | 
 +| \\ Netmask| \\ ''netmask=255.255.255.0''   | 
 +| \\ Gateway| \\ ''gateway=192.168.5.1''   | 
 +| \\ Name Server| \\ ''nameserver=192.168.1.116'' \\  \\ ''nameserver=192.168.1.116,192.168.1.118''   | 
 +| \\ Domain Search Path| \\ ''domain=example.com''   |
  
-https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2246&assigned_to=fs@suse.com&version=Leap 42.2|Report Bug]] [[https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#id2246|#]]+===== Table 2.4Miscellaneous =====
  
-| \\ Driver Updates: Prompt | \\ ''dud=1''   | +| \\ Driver Updates: Prompt| \\ ''dud=1''   | 
-| \\ Driver Updates: URL | \\ ''dud=[[ftp:////ftp.example.com/PATH_TO_DRIVER//|ftp:////ftp.example.com/PATH_TO_DRIVER//]]'' \\  \\ ''dud=[[http:////www.example.com/PATH_TO_DRIVER//|http:////www.example.com/PATH_TO_DRIVER//]]''  +| \\ Driver Updates: URL| \\ ''dud=[[ftp:////ftp.example.com/PATH_TO_DRIVER//|ftp:////ftp.example.com/PATH_TO_DRIVER//]]'' \\  \\ ''dud=[[http:////www.example.com/PATH_TO_DRIVER//|http:////www.example.com/PATH_TO_DRIVER//]]''   
-| \\ Installation Language | \\ ''Language=//LANGUAGE//'' \\  \\ Supported values for //LANGUAGE// are, among others, ''cs_CZ'', ''de_DE'', ''es_ES'', ''fr_FR'', ''ja_JP'', ''pt_BR'', ''pt_PT'', ''ru_RU'', ''zh_CN'', and ''zh_TW''+| \\ Installation Language| \\ ''Language=//LANGUAGE//'' \\  \\ Supported values for //LANGUAGE// are, among others, ''cs_CZ'', ''de_DE'', ''es_ES'', ''fr_FR'', ''ja_JP'', ''pt_BR'', ''pt_PT'', ''ru_RU'', ''zh_CN'', and ''zh_TW''
-| \\ Kernel: No ACPI | \\ ''acpi=off''   | +| \\ Kernel: No ACPI| \\ ''acpi=off''   | 
-| \\ Kernel: No Local APIC | \\ ''noapic''   | +| \\ Kernel: No Local APIC| \\ ''noapic''   | 
-| \\ Video: Disable KMS | \\ ''nomodeset''   | +| \\ Video: Disable KMS| \\ ''nomodeset''   | 
-| \\ Video: Start Installer in Text Mode | \\ ''Textmode=1''   |+| \\ Video: Start Installer in Text Mode| \\ ''Textmode=1''   |
  
 **Warning: Custom Partitioning on UEFI Machines** **Warning: Custom Partitioning on UEFI Machines**
Zeile 75: Zeile 68:
 If you do not plan to use Snapper for system rollbacks, the partitioning restrictions mentioned above do not apply. If you do not plan to use Snapper for system rollbacks, the partitioning restrictions mentioned above do not apply.
  
-====== Zypper ======+===== Zypper =====
  
 Repos hinzufügen Repos hinzufügen
Zeile 109: Zeile 102:
 </file> </file>
  
-Repo aktivieren+Repo aktivieren und deaktivieren
  
 <code> <code>
-zypper mr -e 20+zypper mr -e URL|Alias
  
-</code>+zypper mr -d URL|Alias
  
 +</code>
  
 Repo Autorefresh aktivieren Repo Autorefresh aktivieren
- 
 <code> <code>
 +
 zypper mr -rk 20 zypper mr -rk 20
  
 </code> </code>
- +=====   Vendor change   =====
-**Vendor change in general**+
  
 You can define a list of repositories having different "vendors" as equivalent by creating a file in the /etc/zypp/vendors.d/ directory with a similar content: You can define a list of repositories having different "vendors" as equivalent by creating a file in the /etc/zypp/vendors.d/ directory with a similar content:
Zeile 132: Zeile 125:
  
 vendors = suse,opensuse,obs://build.suse.de,Packman,http://packman.links2linux.de vendors = suse,opensuse,obs://build.suse.de,Packman,http://packman.links2linux.de
 +
 </code> </code>
  
 You can use any file name, but each file in this directory reflects a group of equivalent vendors. Libzypp makes an string comparision (like strncmp, case-insensitive) whereas the beginning of the strings are compared only.e.G. vendor "opensuse11.0" is compatible to "openSUSE". You can use any file name, but each file in this directory reflects a group of equivalent vendors. Libzypp makes an string comparision (like strncmp, case-insensitive) whereas the beginning of the strings are compared only.e.G. vendor "opensuse11.0" is compatible to "openSUSE".
  
-====== Paketlisten ex/importieren ======+====== Paketlisten ex- und importieren ======
  
 ===== Export ===== ===== Export =====
  
 <code> <code>
-rpm -qai | grep "^Name        :" | awk '{print $3}' | xargs > rpm_pkgs_list+rpm -qai | grep "^Name        :" | awk '{print $3}' | xargs> rpm_pkgs_list 
 </code> </code>
  
 ===== Import ===== ===== Import =====
 +<code>
  
-<code> 
 zypper in $(cat rpm_pkgs_list) zypper in $(cat rpm_pkgs_list)
 +
 </code> </code>
  
Zeile 153: Zeile 149:
  
 My own approach is now to run 'rpm -qa –queryformat '%{NAME}\n** and with 'zypper lr -pu' prior to my regular backups to maintain a up-to-date list of both, installed packages and repositories which will give me enough information to easily get the old system back just in case anything goes really wrong… Best regards, Kallistos ** My own approach is now to run 'rpm -qa –queryformat '%{NAME}\n** and with 'zypper lr -pu' prior to my regular backups to maintain a up-to-date list of both, installed packages and repositories which will give me enough information to easily get the old system back just in case anything goes really wrong… Best regards, Kallistos **
 +===== Multiversion Kernel =====
  
-====== Multiversion Kernel ====== +Ältere Kernel nicht löschen: /etc/zypp/zypp.conf Beispiel: die letzten zwei Kernel werden erhalten, außerdem ausdrücklich 5.7.11-1.:
- +
-Ältere Kernel nicht löschen: /etc/zypp/zypp.conf +
- +
-Letzte zwei Kernel werden erhalten, außerdem ausdrücklich 5.7.11-1.:+
  
 <code> <code>
Zeile 192: Zeile 185:
 </code> </code>
  
-====== Snapper ======+====== Snapper mit btrfs ======
  
 Doku: [[https://de.opensuse.org/openSUSE:Snapper_Tutorial|https://de.opensuse.org/openSUSE:Snapper_Tutorial]] [[https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.snapper.html|https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.snapper.html]] Doku: [[https://de.opensuse.org/openSUSE:Snapper_Tutorial|https://de.opensuse.org/openSUSE:Snapper_Tutorial]] [[https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.snapper.html|https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.snapper.html]]
Zeile 217: Zeile 210:
 </code> </code>
  
-Snapshot Diff+Diff zwischen Snapshots
  
 <code> <code>
Zeile 227: Zeile 220:
  
 <code> <code>
-snapper create --description "Snapshot für Woche 2 2014"+snapper create --description "Snapshot für Woche 2 2025"
  
 </code> </code>
- +===== Säuberungs-Algorithmus =====
-Säuberungs-Algorithmus+
  
 Wenn Sie keinen guten Grund haben es anders zu machen, sollten Sie imer den Säuberungs-Algorithmus mit aufführen, wenn Sie Snapshots erstellen. Sonst wird der Snapshot nie gelöscht, außer Sie machen das manuell. Sie machen das durch das Hinzufügen von Folgendem in Ihrem Snapper-Befehl Wenn Sie keinen guten Grund haben es anders zu machen, sollten Sie imer den Säuberungs-Algorithmus mit aufführen, wenn Sie Snapshots erstellen. Sonst wird der Snapshot nie gelöscht, außer Sie machen das manuell. Sie machen das durch das Hinzufügen von Folgendem in Ihrem Snapper-Befehl
Zeile 240: Zeile 232:
 </code> </code>
  
-**Rollback**+==== Rollback ====
  
-Setzt den aktuell aktiven **read only** snapshot auf **read-write** und erzeugt einen weiteren Snapshot als read-only Kopie.  +1. Start eines älteren Snapshots als **read only über das Boot Menü**
-Beim nächsten boot wird der read-write Snapshot benutzt.+
  
 +2. Der Rollback setzt den aktiven read-only snapshot auf **read-write** und erzeugt einen weiteren Snapshot als read-only Kopie. Beim nächsten boot wird der read-write Snapshot benutzt.
 <code> <code>
 +
 locutus:~ # snapper rollback locutus:~ # snapper rollback
 Ambit is classic. Ambit is classic.
Zeile 251: Zeile 244:
 Creating read-write snapshot of current subvolume. (Snapshot 1947.) Creating read-write snapshot of current subvolume. (Snapshot 1947.)
 Setting default subvolume to snapshot 1947. Setting default subvolume to snapshot 1947.
 +
 </code> </code>
  
Zeile 257: Zeile 251:
 <code> <code>
 snapper modify --userdata "bootloader=rollback from [source snapshot] [comment]" [snapshot ID] snapper modify --userdata "bootloader=rollback from [source snapshot] [comment]" [snapshot ID]
 +
 </code> </code>
  
 ====== Samba ====== ====== Samba ======
  
-Ab **Samba 4.7.0**  / (Ubuntu: Bionic Beaver) versucht **smbclient**  die Verbindung im Dialekt SMB3_11 aufzubauen. In der Folge funktioniert das Browsing (''smbclient -L <server>'') nicht mehr. Lösung ist es den Dialekt SMB1 mittels Parameter ''-m''  zu erzwingen (''smbclient -mNT1 -L <server>''). Weitere Infos siehe [[https://www.samba.org/samba/history/samba-4.7.0.html|Samba 4.7.0]]+Workaround (unsicher): ab **Samba 4.7.0** / (auf Ubuntu: Bionic Beaver) versucht der **smbclient** die Verbindung im Dialekt SMB3_11 aufzubauen. In der Folge funktioniert das Browsing (''smbclient -L <server>'') nicht mehr. Lösung ist es den Dialekt SMB1 mittels Parameter ''-m'' zu erzwingen (''smbclient -mNT1 -L <server>''). Weitere Infos siehe [[https://www.samba.org/samba/history/samba-4.7.0.html|Samba 4.7.0]]
  
-===== Shares auf eineen Samba Server abscannen =====+===== Shares auf einem Samba Server abscannen =====
  
 Scannen von Samba Servern inder eigenen Broadcast domain Scannen von Samba Servern inder eigenen Broadcast domain
- 
 <code> <code>
 +
 nmblookup __SAMBA__ nmblookup __SAMBA__
 +
 </code> </code>
  
 <code> <code>
 ''thommie@locutus:~> smbclient -N -L //nas2 Anonymous login successful Sharename Type Comment ——— —- ——- video Disk video photo Disk photo music Disk music admin Disk admin buch Disk buch downloads Disk downloads backup Disk backup datanas1 Disk datanas1 public Disk public data1 Disk data1 IPC$ IPC IPC Service (nas2 server) Reconnecting with SMB1 for workgroup listing. Anonymous login successful Server Comment //  '' ''thommie@locutus:~> smbclient -N -L //nas2 Anonymous login successful Sharename Type Comment ——— —- ——- video Disk video photo Disk photo music Disk music admin Disk admin buch Disk buch downloads Disk downloads backup Disk backup datanas1 Disk datanas1 public Disk public data1 Disk data1 IPC$ IPC IPC Service (nas2 server) Reconnecting with SMB1 for workgroup listing. Anonymous login successful Server Comment //  ''
 +
 </code> </code>
  
-mit smbclient -L wird ein Passwort für den aktuellen Shell User abgefragt+Mit smbclient -L wird ein Passwort für den aktuellen Shell User abgefragt
  
-**Samba Share fest mounten**+==== Samba Share fest mounten ====
  
 Mit User mounten Mit User mounten
  
-''mount -t cifs -o vers=3.0,username=thommie, password=xxx nas2.netzwissen.loc/photo /mnt/nas_photo/ '' +''mount -t cifs -o vers=3.0,username=thommie, password=xxx nas2.netzwissen.loc/photo /mnt/nas_photo/
-<code>+
  
 +<code>
 Anonym mounten für bestimmten USer Anonym mounten für bestimmten USer
  
Zeile 291: Zeile 288:
   - Kaputtes System mounten und changeroot:   - Kaputtes System mounten und changeroot:
  
-**Root Parititon mounten** +**Root Parititon mounten**
 <code> mount /dev/<device name> /mnt <code> mount /dev/<device name> /mnt
 +
 </code> </code>
 +===== Virtuelle Dateisysteme =====
 +
 +<code>
 + for i in proc sys dev; do mount --rbind /$i /mnt/$i ; done
  
-**Virtuelle Dateisysteme** 
-<code> for i in proc sys dev; do mount --rbind /$i /mnt/$i ; done 
 </code> </code>
  
 oder manuell oder manuell
 +
 <code> <code>
 mount --rbind /proc /mnt/proc mount --rbind /proc /mnt/proc
 mount --rbind /sys /mnt/sys mount --rbind /sys /mnt/sys
 mount --rbind /dev /mnt/dev mount --rbind /dev /mnt/dev
 +
 </code> </code>
  
 **Danach chroot und alles lokale mounten** **Danach chroot und alles lokale mounten**
- +<code> 
-<code>chroot /mnt+chroot /mnt
 mount -a mount -a
 +
 </code> </code>
  
 Mit exit wieder raus aus dem chroot Mit exit wieder raus aus dem chroot
  
-====== Build Umgebung ====== 
  
-<code> 
-sudo zypper install --type pattern devel_basis 
-</code> 
  • opensuse.1739961763.txt.gz
  • Zuletzt geändert: 19/02/2025 - 10:42
  • von admin