Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
opensuse [19/02/2025 - 10:42] – admin | opensuse [19/06/2025 - 07:56] (aktuell) – thommie_netzwissen.de | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Installation ====== | + | ====== Installation |
[[https:// | [[https:// | ||
Zeile 16: | Zeile 16: | ||
'' | '' | ||
- | |||
====== 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 ' | set gfxpayload=keep echo ' | ||
- | Table 2.2: Installation Sources [[https:// | + | ===== Table 2.2: Installation Sources ===== |
- | + | ||
- | https:// | + | |
- | + | ||
- | | \\ CD/DVD (default) | \\ '' | + | |
- | | \\ Hard disk | \\ '' | + | |
- | | \\ SLP | \\ '' | + | |
- | | \\ FTP | \\ '' | + | |
- | | \\ HTTP | \\ '' | + | |
- | | \\ NFS | \\ '' | + | |
- | | \\ SMB / CIFS | | | + | |
- | + | ||
- | Table 2.3: Network Configuration [[https:// | + | |
- | https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html# | + | | \\ CD/DVD (default)| \\ '' |
+ | | \\ Hard disk| \\ '' | ||
+ | | \\ SLP| \\ '' | ||
+ | | \\ FTP| \\ '' | ||
+ | | \\ HTTP| \\ '' | ||
+ | | \\ NFS| \\ '' | ||
+ | | \\ SMB / CIFS| | | ||
- | | \\ DHCP (default) | \\ netsetup=dhcp | | + | ===== Table 2.3: Network Configuration |
- | | \\ Prompt for Parameters | \\ '' | + | |
- | | \\ Host IP address | \\ '' | + | |
- | | \\ Netmask | \\ '' | + | |
- | | \\ Gateway | \\ '' | + | |
- | | \\ Name Server | \\ '' | + | |
- | | \\ Domain Search Path | \\ '' | + | |
- | Table 2.4: Miscellaneous [[https:// | + | | \\ DHCP (default)| \\ netsetup=dhcp| |
+ | | \\ Prompt for Parameters| \\ '' | ||
+ | | \\ Host IP address| \\ '' | ||
+ | | \\ Netmask| \\ '' | ||
+ | | \\ Gateway| \\ '' | ||
+ | | \\ Name Server| \\ '' | ||
+ | | \\ Domain Search Path| \\ '' | ||
- | https:// | + | ===== Table 2.4: Miscellaneous ===== |
- | | \\ Driver Updates: Prompt | \\ '' | + | | \\ Driver Updates: Prompt| \\ '' |
- | | \\ Driver Updates: URL | \\ '' | + | | \\ Driver Updates: URL| \\ '' |
- | | \\ Installation Language | \\ '' | + | | \\ Installation Language| \\ '' |
- | | \\ Kernel: No ACPI | \\ '' | + | | \\ Kernel: No ACPI| \\ '' |
- | | \\ Kernel: No Local APIC | \\ '' | + | | \\ Kernel: No Local APIC| \\ '' |
- | | \\ Video: Disable KMS | \\ '' | + | | \\ Video: Disable KMS| \\ '' |
- | | \\ Video: Start Installer in Text Mode | \\ '' | + | | \\ Video: Start Installer in Text Mode| \\ '' |
**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: | ||
</ | </ | ||
- | Repo aktivieren | + | Repo aktivieren |
< | < | ||
- | zypper mr -e 20 | + | zypper mr -e URL|Alias |
- | </ | + | zypper mr -d URL|Alias |
+ | </ | ||
Repo Autorefresh aktivieren | Repo Autorefresh aktivieren | ||
- | |||
< | < | ||
+ | |||
zypper mr -rk 20 | zypper mr -rk 20 | ||
</ | </ | ||
- | + | ===== Vendor change | |
- | **Vendor change | + | |
You can define a list of repositories having different " | You can define a list of repositories having different " | ||
Zeile 132: | Zeile 125: | ||
vendors = suse, | vendors = suse, | ||
+ | |||
</ | </ | ||
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 " | 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 " | ||
- | ====== Paketlisten ex/importieren ====== | + | ====== Paketlisten ex- und importieren ====== |
===== Export ===== | ===== Export ===== | ||
< | < | ||
- | rpm -qai | grep " | + | rpm -qai | grep " |
</ | </ | ||
===== Import ===== | ===== Import ===== | ||
+ | < | ||
- | < | ||
zypper in $(cat rpm_pkgs_list) | zypper in $(cat rpm_pkgs_list) | ||
+ | |||
</ | </ | ||
Zeile 153: | Zeile 149: | ||
My own approach is now to run 'rpm -qa –queryformat ' | My own approach is now to run 'rpm -qa –queryformat ' | ||
+ | ===== Multiversion Kernel ===== | ||
- | ====== Multiversion Kernel ====== | + | Ältere Kernel nicht löschen: / |
- | + | ||
- | Ältere Kernel nicht löschen: / | + | |
- | + | ||
- | Letzte | + | |
< | < | ||
Zeile 192: | Zeile 185: | ||
</ | </ | ||
- | ====== Snapper ====== | + | ====== Snapper |
Doku: [[https:// | Doku: [[https:// | ||
Zeile 217: | Zeile 210: | ||
</ | </ | ||
- | Snapshot | + | Diff zwischen Snapshots |
< | < | ||
Zeile 227: | Zeile 220: | ||
< | < | ||
- | snapper create --description " | + | snapper create --description " |
</ | </ | ||
- | + | ===== 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: | ||
</ | </ | ||
- | **Rollback** | + | ==== Rollback |
- | Setzt den aktuell aktiven | + | 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. | ||
< | < | ||
+ | |||
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. | ||
+ | |||
</ | </ | ||
Zeile 257: | Zeile 251: | ||
< | < | ||
snapper modify --userdata " | snapper modify --userdata " | ||
+ | |||
</ | </ | ||
====== Samba ====== | ====== Samba ====== | ||
- | Ab **Samba 4.7.0** | + | Workaround (unsicher): ab **Samba 4.7.0** / (auf Ubuntu: Bionic Beaver) versucht |
- | ===== Shares auf eineen | + | ===== Shares auf einem Samba Server abscannen ===== |
Scannen von Samba Servern inder eigenen Broadcast domain | Scannen von Samba Servern inder eigenen Broadcast domain | ||
- | |||
< | < | ||
+ | |||
nmblookup __SAMBA__ | nmblookup __SAMBA__ | ||
+ | |||
</ | </ | ||
< | < | ||
'' | '' | ||
+ | |||
</ | </ | ||
- | 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 | ||
- | '' | + | '' |
- | < | + | |
+ | < | ||
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** |
< | < | ||
+ | |||
</ | </ | ||
+ | ===== Virtuelle Dateisysteme ===== | ||
+ | |||
+ | < | ||
+ | for i in proc sys dev; do mount --rbind /$i /mnt/$i ; done | ||
- | **Virtuelle Dateisysteme** | ||
- | < | ||
</ | </ | ||
oder manuell | oder manuell | ||
+ | |||
< | < | ||
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 | ||
+ | |||
</ | </ | ||
**Danach chroot und alles lokale mounten** | **Danach chroot und alles lokale mounten** | ||
- | + | < | |
- | < | + | chroot /mnt |
mount -a | mount -a | ||
+ | |||
</ | </ | ||
Mit exit wieder raus aus dem chroot | Mit exit wieder raus aus dem chroot | ||
- | ====== Build Umgebung ====== | ||
- | < | ||
- | sudo zypper install --type pattern devel_basis | ||
- | </ |