Zum Inhalt springen

Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
Tuxnix (Diskussion | Beiträge)
Entwurf
K Seiten im Benutzerkontext müssen nicht mit inuse-Vorlage markiert werden
 
(57 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
Arbeitsnotizen. Nur für eigene Zwecke:
{{SEITENTITEL:sway}}{{righttoc}}


<u>Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:</u><br>
<code style=font-size:12px>dd bs=512 count=4 if=/dev/urandom of=/keyfile.bin</code><br>
<code style=font-size:12px>cryptsetup luksAddKey /dev/disk/by-label/ROOT /keyfile.bin</code><br>
<code style=font-size:12px>chmod 000 /keyfile.bin</code><br><br>


{|border="0" style="font-size:14px; line-height: 16px, wide: 100%"
<code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br>
|'''Spickzettel zum Ausdrucken'''
<u>'/keyfile.bin' zu Files hinzufuegen:</u><br>
|-
<code style=font-size:12px>FILES=(/keyfile.bin)</code><br>
|Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot.
|}
 
&nbsp;<u>ISO-Abbild prüfen:</u><br>
<code style=font-size:14px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
 
&nbsp;<u>ISO-Abbild auf USB-Stick übertragen:</u><br>
<code style=font-size:14px;>fdisk -l</code><br>
<code style=font-size:14px;>dd bs=4M if=/pfad/archlinux-'''*'''-x86_64.iso of=/dev/sd'''x''' status=progress oflag=sync</code><br><br>
 
&nbsp;<u>Installation unterbrechen:</u><br>
<code style=font-size:14px;>reboot</code><br>
<code style=font-size:14px;>poweroff</code><br><br>
 
&nbsp;<u>Deutsche Tastaturbelegung - Die Taste '''{{Taste|Z}}''' drücken, um das '''y''' Zeichen zu erhalten:</u><br>
<code style=font-size:14px;>loadkeys de</code><br><br>
 
{|border="0" style="font-size:14px; line-height: 16px"
|&nbsp;<u>Partitionieren:</u>
|-
|* {{ic|fdisk -l}}
|-
|* {{ic|gdisk /dev/'''x'''}}
|-
|* {{taste|o}} - neue Partitionstabelle im chache
|-
|* {{taste|y}} - Bestätigung
|-
|* {{taste|n}} - neue Partition
|-
|* {{taste|Enter}} - die Partitionsnummer bestätigen
|-
|* {{taste|Enter}} - den ersten Sektor bestätigen
|-
|* {{ic|+512M}} - die Partitionsgröße festlegen
|-
|* {{ic|ef00}} - den Partitionstyp einer EFI-Partition setzen
|-
|* {{ic|n}} - eine weitere Partition erstellen
|-
|* {{taste|Enter}} - die Partitionsnummer bestätigen
|-
|* {{taste|Enter}} - ersten Sektor bestätigen
|-
|* {{taste|Enter}} - letzten Sektor bestätigen
|-
|* {{taste|Enter}} - Linux Partitionstyp (8300) bestätigen
|-
|* {{taste|p}} - zeige neue Partitionstabelle zur Überprüfung an
|-
|* {{taste|w}} - speichern der neuen Partitionstabelle
|-
|* {{taste|y}} - Bestätigung
|}<br>
 
&nbsp;<u>Formatieren:</u><br>
<code style=font-size:14px;>mkfs.fat -F 32 -n EFIBOOT /dev/sd'''x'''1</code><br>
<code style=font-size:14px;>mkfs.ext4 -L p_arch /dev/sd'''x'''2</code><br><br>
 
&nbsp;<u>Mounten:</u><br>
<code style=font-size:14px;>mount -L p_arch /mnt</code><br>
 
<code style=font-size:14px;>mkdir /mnt/boot</code><br>
<code style=font-size:14px;>mount -L EFIBOOT /mnt/boot</code><br><br>
 
&nbsp;<u>Installation der Basispakete:</u><br>
<code style=font-size:14px;>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><br>
 
&nbsp;<u>Installation von Micocode:</u><br>
<code style=font-size:14px;>pacstrap /mnt intel-ucode</code>oder<code style=font-size:14px;>pacstrap /mnt amd-ucode</code><br><br>
 
&nbsp;<u>fstab erzeugen:</u><br>
<code style=font-size:14px;>genfstab -Lp /mnt > /mnt/etc/fstab</code><br><br>
 
&nbsp;<u>Chrooten:</u><br>
<code style=font-size:14px;>arch-chroot /mnt/</code><br><br>
 
&nbsp;<u>Konfiguration:</u><br>
<code style=font-size:14px;>echo '''myhost''' > /etc/hostname</code><br>
<code style=font-size:14px;>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
<code style=font-size:14px;>echo KEYMAP=de-latin1 > /etc/vconsole.conf</code><br>
<code style=font-size:14px;>echo FONT=lat9w-16 >> /etc/vconsole.conf</code><br>
<code style=font-size:14px;>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>
 
<code style=font-size:14px;>nano /etc/locale.gen</code><br>
&nbsp;<u>Und das # am Anfang folgender Zeilen entfernen:</u><br>
<code style=font-size:14px;>#de_DE.UTF-8 UTF-8</code><br>
<code style=font-size:14px;>#de_DE ISO-8859-1</code><br>
<code style=font-size:14px;>#de_DE@euro ISO-8859-15</code><br>
<code style=font-size:14px;>#en_US.UTF-8</code><br>
 
<code style=font-size:14px;>locale-gen</code><br><br>
 
&nbsp;<u>Ein Root Password erstellen:</u><br>
<code style=font-size:14px;>passwd</code><br><br>
 
&nbsp;<u>Systemd-boot installieren:</u><br>
<code style=font-size:14px;>bootctl install</code><br><br>
 
<code style=font-size:14px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
&nbsp;<u>Und wie folgt anpassen:</u><br>
<code style=font-size:14px;>title    Arch Linux</code><br>
<code style=font-size:14px;>linux    /vmlinuz-linux</code><br>
<code style=font-size:14px;>initrd  /initramfs-linux.img</code><br>
<code style=font-size:14px;>options  root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:14px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
&nbsp;<u>Und wie folgt angepassen:</u><br>
<code style=font-size:14px;>title    Arch Linux Fallback</code><br>
<code style=font-size:14px;>linux    /vmlinuz-linux</code><br>
<code style=font-size:14px;>initrd  /initramfs-linux-fallback.img</code><br>
<code style=font-size:14px;>options  root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br>
 
<code style=font-size:14px;>nano /boot/loader/loader.conf</code><br>
&nbsp;<u>Und entsprechend angepassen:</u><br>
<code style=font-size:14px;>default arch-uefi.conf</code><br>
<code style=font-size:14px;>timeout 4</code><br><br>
 
<code style=font-size:14px;>bootctl update</code><br><br>
 
&nbsp;<u>Chroot verlassen und Partitionen lösen:</u><br>
<code style=font-size:14px;>exit</code><br>
 
<code style=font-size:14px;>umount /mnt/boot</code><br>
<code style=font-size:14px;>umount /mnt</code><br><br>
 
&nbsp;<u>Arch Linux neu booten und anmelden:</u><br>
<code style=font-size:14px;>reboot</code><br>
 
<code style=font-size:14px;>'''myhost''' login: root</code><br><br>
 
&nbsp;<u>Internetverbindung prüfen:</u><br>
<code style=font-size:14px;>ping -c3 www.archlinux.de</code><br><br>
 
&nbsp;<u>Internetverbindung herstellen über Lan:</u><br>
<code style=font-size:14px;>ip link</code><br>
<code style=font-size:14px;>dhcpcd enp'''xxx'''</code><br><br>
 
&nbsp;<u>Arch Linux Aktualisieren:</u><br>
<code style=font-size:14px;>pacman -Syu</code><br><br>
 
&nbsp;<u>Einen Benutzer hinzufügen und zu Gruppen zuordnen:</u><br>
<code style=font-size:14px;>useradd -m -g users -s /bin/bash '''duda'''</code><br>
<code style=font-size:14px;>passwd '''duda'''</code><br>
<code style=font-size:14px;>gpasswd -a '''duda''' wheel audio video games power</code><br><br>
 
&nbsp;<u>Für die Gruppenmitglieder von wheel sudo aktivieren:</u><br>
<code style=font-size:14px;>EDITOR=nano visudo</code><br>
&nbsp;<u>Entfernen des Kommentatorzeichens und des Leerzeichens.</div>
<code style=font-size:14px;>%wheel ALL=(ALL) ALL</code><br><br>
 
&nbsp;<u>Nützliche Dienste installieren und aktivieren:</u><br>
<code style=font-size:14px;>pacman -S acpid dbus avahi cups</code><br>
<code style=font-size:14px;>systemctl enable acpid</code><br>
<code style=font-size:14px;>systemctl enable avahi-daemon</code><br>
<code style=font-size:14px;>systemctl enable cups.service</code><br>
<code style=font-size:14px;>systemctl enable systemd-timesyncd.service</code><br>
 
&nbsp;<u>Wenn das System auf einer SSD betrieben wird:</u><br>
<code style=font-size:14px;>systemctl enable fstrim.timer</code><br><br>
 
&nbsp;<u>Installation und Konfiguration von X11:</u><br>
<code style=font-size:14px;>pacman -S xorg-server xorg-xinit</code><br>
<code style=font-size:14px;>localectl set-x11-keymap de pc105 deadgraveacute</code><br><br>
 
<code style=font-size:14px;>lspci &#124;grep VGA</code><br>
&nbsp;<u>Passend zur Grafikkarte einen freien Treiber installieren:</u><br>
<code style=font-size:14px;>pacman -S xf86-video-amdgpu</code><br>
<code style=font-size:14px;>pacman -S xf86-video-intel</code><br>
<code style=font-size:14px;>pacman -S xf86-xf86-video-nouveau</code><br><br>
 
&nbsp;<u>Desktopumgebung installieren:</u><br>
Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
<code style=font-size:14px;>reboot</code><br>
 
[[en:Beginners' Guide]]
[[Kategorie:Installation]]

Aktuelle Version vom 31. Januar 2025, 14:39 Uhr

Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:
dd bs=512 count=4 if=/dev/urandom of=/keyfile.bin
cryptsetup luksAddKey /dev/disk/by-label/ROOT /keyfile.bin
chmod 000 /keyfile.bin

nano /etc/mkinitcpio.conf
'/keyfile.bin' zu Files hinzufuegen:
FILES=(/keyfile.bin)