Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(eigene Notizen)
(Entwurf root_crypt)
Zeile 1: Zeile 1:
=Entwurf root-crypt=


=Eigene Notizen=
 
modprobe dm-crypt
 
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/'''x'''1
 
cryptsetup luksOpen /dev/sda1 lvm
arch uefi installation:
pvcreate /dev/mapper/lvm
Es wird eine Bootpartition und eine Rootpartition angelegt.
vgcreate main /dev/mapper/lvm
Abkürzungen:
lvcreate -l 100%FREE root main
EFIBOOT Dateisystem-Label für Boot und EFI Partition.
p_arch Dateisystemlabel Rootpartition für Arch-Linux
p_arch_crypt Partitionslabel nach Entschlüsselung /dev/mapper/..
pl_arch_crypt Partitionslabel für verschlüsselte Root Partition. Nicht zu verwechseln mit Dateisystem Label.
p_swap Label für Swappartition falls nötig.
 
booten mit dem Isoimage
loadkezs de
loadkezs de-latin1
Bootmethode verifizieren:
# ls /sys/firmware/efi/efivars
 
Auf aktuelle Zeit setzen:
# timedatectl set-ntp true
Status prüfen: timedatectl timesync-status
hwclock -w
 
lsblk -f
gdisk /dev/sda
Neue Partitionstabelle erzeugen mit
o
neue Partition für efi und boot (EFIBOOT) 256M Fat32 Spezifikation >512MiB ??).
n
Typ ef00
neue Partition für root
n
Typ 8309. PARTLABEL pl_arch_crypt hinzufügen (Taste c in gdisk).
 
neue Partition für swap
n
Typ 8200
w
 
modprobe dm-crypt
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat /dev/sda2 ACHTUNG Passwortvergabe Tastaturbelegung de beachten!!
cryptsetup luksOpen /dev/sda2 p_arch_crypt


Formatieren:
Formatieren:
    mkfs.fat -F 32 -n UEFI /dev/nvme0n1p1
mkfs.fat -F32 -n EFIBOOT /dev/sda1
    mkfs.ext4 -L root /dev/mapper/main-root
mkfs.ext4 -L p_arch /dev/mapper/p_arch_crypt
   
 
Mounten
Mounten:
mount /dev/mapper/main-root /mnt
Rootpartition zuerst!!!
mount -L p_arch /mnt
mkdir -p /mnt/boot
mount -L EFIBOOT /mnt/boot
swapon -L p_swap
 
Falls wlan, wifi-menu
 
Grundinstallation:
Ab hier wie im Wiki beschrieben
oder Stichwortartig hier weiter
nano /etc/pacman.d/mirrorlist
pacstrap /mnt base linux linux-firmware intel-ucode nano man-pages man-pages-de man-db mlocate netctl dhcpcd usbutils e2fsprogs less lshw mc gptfdisk efibootmgr dmidecode pacman-contrib
genfstab -pL /mnt >> /mnt/etc/fstab


mkdir /mnt/boot
arch-chroot /mnt
mount /dev/nvme0n1p1 /mnt/boot
echo rechnername > /etc/hostname
nano /etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost


pacstrap /mnt base base-devel dosfstools gptfdisk lvm2 linux linux-firmware dhcpcd nano
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime


chrooten
nano /etc/locale.gen
de_DE.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
en_US.UTF-8
locale-gen


nano /etc/mkinitcpio.conf
passwd
Und wie folgt anpassen
MODULES=(ext4)
HOOKS=(base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown)


Das Kernel-Image neu erstellen
nano /etc/mkinitcpio.conf in Hooks einfügen und keyboard keymap vor block encrypt vor filesystem
Komplette Zeile: HOOKS="base udev autodetect modconf keyboard keymap block encrypt filesystems fsck"
mkinitcpio -p linux
mkinitcpio -p linux


systemd Loader installieren
bootctl install
Datei anlegen:
nano /boot/loader/loader.conf Hinweis: diese Datei wird nur benutzt zum Laden des default Linux.
timeout3
default uefi_arch.conf
Datei anlegen:
nano /boot/loader/entries/uefi_arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/sda2:p_arch_crypt root=LABEL=p_arch
oder mit Label options cryptdevice=PARTLABEL=pl_arch_crypt:p_arch_crypt root=LABEL=p_arch
Für fallback anlegen:
/boot/loader/entries/uefi_arch_fallback.conf
title Arch Linux fallback
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options cryptdevice=/dev/sda2:p_arch_crypt root=LABEL=p_arch
oder mit Label options cryptdevice=PARTLABEL=pl_arch_crypt:p_arch_crypt root=LABEL=p_arch
Zusätzliche Werkzeuge installieren:
pacman -S gptfdisk efibootmgr lshw mc
efi booteinträge kontollieren:
efibootmgr -v
exit
umount -R /mnt
poweroff
usb stick bzw CD entfernen.
Neu starten
login: root
Passwort: Geheim
<br><br><br>
<b>Arch Linux Installation auf einem UEFI-Rechner mit systemd-boot als Bootloader</b><br>
Partitionierung: boot, root.<br>
Weitere [[spicker | Arch Linux Installations Spickzettel]]<br><br>
<u>Das neueste Arch ISO-Abbild herunterladen von:</u><br>
[http://www.archlinux.org/download/ www.archlinux.org/download/]<br><br>
<u>ISO-Abbild pruefen:</u><br>
<code style=font-size:12px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
<u>ISO-Abbild auf USB-Stick uebertragen:</u><br>
<code style=font-size:12px;>fdisk -l</code> - <u>'''x''' ermitteln</u><br>
<code style=font-size:12px;>dd bs=4M if=/'''pfad'''/archlinux-'''*'''-x86_64.iso of=/dev/'''x''' status=progress</code><br><br>
<u>Wichtig:</u><br>
Im UEFI-Menu des Rechners muss "Secure Boot" auf "[Disabled]" gesetzt werden.<br><br>
<u>Nuetzliche Kommandos:</u><br>
<code style=font-size:12px;>reboot</code> - <u>Neustarten</u><br>
<code style=font-size:12px;>poweroff</code> - <u>Herunterfahren</u><br>
<code style=font-size:12px;>{{taste|STRG}}+{{taste|ALT}}+{{taste|F2}}</code> - <u>zweites Terminal oeffnen</u><br>
<code style=font-size:12px;>{{taste|&uarr;}}</code> - <u>Konsolenbefehle wiederholen</u><br><br>
<u>Deutsche Tastaturbelegung - Die Taste '''{{Taste|Z}}''' druecken, um das '''y''' Zeichen zu erhalten:</u><br>
<code style=font-size:12px;>loadkeys de</code><br><br>
<u>Internetverbindung herstellen ueber LAN:</u><br>
<code style=font-size:12px;>ip link</code><br>
<code style=font-size:12px;>dhcpcd en'''xxx'''</code><br><br>
<u>Internetverbindung herstellen ueber WLAN:</u><br>
<code style=font-size:12px;>iwctl</code><br>
<code style=font-size:12px;>station wlan0 connect '''SSID'''</code><br>
<code style=font-size:12px;>'''Passwort'''</code><br>
<code style=font-size:12px;>{{Taste|Strg}}+{{taste|d}}</code><br><br>
<u>Arch Installations Spickzettel aufrufen</u><br>
<code style=font-size:12px;>lynx wiki.archlinux.de/title/spicker</code><br><br>
<u>Partitionieren:</u><br>
<code style=font-size:12px;>fdisk -l</code> - '''x''' ermitteln<br>
<code style=font-size:12px;>gdisk /dev/'''x'''</code> - gdisk starten<br>
<code style=font-size:12px;>{{taste|o}}</code> - neue Partitionstabelle im chache<br>
<code style=font-size:12px;>{{taste|y}}</code> - bestaetigen<br>
<code style=font-size:12px;>{{taste|n}}</code> - neue Partition<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - die Partitionsnummer bestaetigen<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - den ersten Sektor bestaetigen<br>
<code style=font-size:12px;>+512M</code> - die Partitionsgroeße festlegen<br>
<code style=font-size:12px;>ef00</code> - den Partitionstyp fuer EFI setzen<br>
<code style=font-size:12px;>{{taste|n}}</code> - eine weitere Partition anlegen<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - die Partitionsnummer bestaetigen<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - ersten Sektor bestaetigen<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - letzten Sektor bestaetigen<br>
<code style=font-size:12px;>{{taste|Enter}}</code> - den Linux Partitionstyp (8300) bestaetigen<br>
<code style=font-size:12px;>{{taste|p}}</code> - zeige neue Partitionstabelle zur ueberpruefung an<br>
<code style=font-size:12px;>{{taste|w}}</code> - speichern der neuen Partitionstabelle<br>
<code style=font-size:12px;>{{taste|y}}</code> - bestaetigen<br><br>
<u>Formatieren:</u><br>
<code style=font-size:12px;>mkfs.fat -F 32 -n AESP /dev/'''x'''1</code><br>
<code style=font-size:12px;>mkfs.ext4 -L AROOT /dev/'''x'''2</code><br><br>
<u>Mounten:</u><br>
<code style=font-size:12px;>mount /dev/'''x'''2 /mnt</code><br>
<code style=font-size:12px;>mkdir /mnt/boot</code><br>
<code style=font-size:12px;>mount /dev/'''x'''1 /mnt/boot</code><br><br>
<u>Installation der Basispakete:</u><br>
<code style=font-size:12px;>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><br>
<u>Installation von Microcode:</u><br>
<code style=font-size:12px;>pacstrap /mnt intel-ucode</code> oder <code style=font-size:12px;>pacstrap /mnt amd-ucode</code><br><br>
<u>fstab erzeugen:</u><br>
<code style=font-size:12px;>genfstab -U /mnt > /mnt/etc/fstab</code><br><br>
<u>Chrooten:</u><br>
<code style=font-size:12px;>arch-chroot /mnt</code><br><br>
<u>Systemd-boot installieren:</u><br>
<code style=font-size:12px;>bootctl install</code><br><br>
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px;>title Arch Linux</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:12px;>initrd /initramfs-linux.img</code><br>
<code style=font-size:12px;>options root=LABEL=AROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px;>title Arch Linux Fallback</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:12px;>initrd /initramfs-linux-fallback.img</code><br>
<code style=font-size:12px;>options root=LABEL=AROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
<code style=font-size:12px;>nano /boot/loader/loader.conf</code><br>
<u>Und entsprechend anpassen:</u><br>
<code style=font-size:12px;>default arch-uefi.conf</code><br>
<code style=font-size:12px;>timeout 4</code><br><br>
<code style=font-size:12px;>bootctl update</code><br><br>
<u>Das Root Password erstellen:</u><br>
<code style=font-size:12px;>passwd</code><br><br>
<u>Konfiguration:</u><br>
<code style=font-size:12px;>echo '''mein-rechner''' > /etc/hostname</code><br>
<code style=font-size:12px;>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
<code style=font-size:12px;>echo KEYMAP=de-latin1 > /etc/vconsole.conf</code><br>
<code style=font-size:12px;>echo FONT=lat9w-16 >> /etc/vconsole.conf</code><br>
<code style=font-size:12px;>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>
<code style=font-size:12px;>nano /etc/locale.gen</code><br>
<u>Und das # am Anfang folgender Zeilen entfernen:</u><br>
<code style=font-size:12px;>#de_DE.UTF-8 UTF-8</code><br>
<code style=font-size:12px;>#de_DE ISO-8859-1</code><br>
<code style=font-size:12px;>#de_DE@euro ISO-8859-15</code><br>
<code style=font-size:12px;>#en_US.UTF-8 UTF-8</code><br>
<code style=font-size:12px;>locale-gen</code><br><br>
<u>Den Benutzer 'duda' anlegen und ihn ggf. zu den Gruppen hinzufuegen:</u><br>
<code style=font-size:12px;>useradd -m -g users -s /bin/bash '''duda'''</code><br>
<code style=font-size:12px;>passwd '''duda'''</code><br>
<code style=font-size:12px;>usermod -aG wheel,audio,video,power '''duda'''</code><br><br>
<u>Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:</u><br>
<code style=font-size:12px;>EDITOR=nano visudo</code><br>
<u>Kommentarzeichen und Leerzeichen von dieser Zeile entfernen:</u><br>
<code style=font-size:12px;># %wheel ALL=(ALL) ALL</code><br><br>
<u>Installation und Konfiguration von X:</u><br>
<code style=font-size:12px;>pacman -S xorg-server xorg-xinit</code><br>
<code style=font-size:12px;>localectl set-x11-keymap de pc105 deadgraveacute</code><br><br>
<code style=font-size:12px;>lspci &#124; grep VGA</code><br>
<u>Passend zur Grafikkarte einen freien Treiber installieren:</u><br>
<code style=font-size:12px;>pacman -S xf86-video-amdgpu</code><br>
<code style=font-size:12px;>pacman -S xf86-video-intel</code><br>
<code style=font-size:12px;>pacman -S xf86-xf86-video-nouveau</code><br><br>
<u>Plasma (minimal):</u><br>
<code style=font-size:12px;>pacman -S kwin plasma-desktop plasma-nm konsole sddm</code><br>
<u>GNOME (minimal):</u><br>
<code style=font-size:12px;>pacman -S mutter network-manager-applet gnome-terminal gdm</code><br>
<u>Xfce4 (minimal):</u><br>
<code style=font-size:12px;>pacman -S xfwm4 xfce4-session network-manager-applet xfce4-terminal lightdm</code><br><br>
<u>Nuetzliche Dienste installieren:</u><br>
<code style=font-size:12px;>pacman -S acpid avahi iwd</code><br><br>
<u>Dienste aktivieren:</u><br>
<code style=font-size:12px;>systemctl enable acpid</code> - <u>Energieverwaltung</u><br>
<code style=font-size:12px;>systemctl enable avahi-daemon</code> - <u>Netzwerk Zuweisung</u><br>
<code style=font-size:12px;>systemctl enable NetworkManager</code> - <u>Netzwerkmanager</u><br>
<code style=font-size:12px;>systemctl enable iwd</code> - <u>WLAN Daemon</u><br>
<code style=font-size:12px;>systemctl enable systemd-timesyncd</code> - <u>Zeit Synchronisation</u><br>
<code style=font-size:12px;>systemctl enable fstrim.timer</code> - <u>nur fuer unverschluesselte SSDs</u><br><br>
<u>Nur einen Loginmanager aktivieren:</u><br>
<code style=font-size:12px;>systemctl enable sddm</code> - <u>fuer das Plasma Desktop</u><br>
<code style=font-size:12px;>systemctl enable gdm</code> - <u>fuer das GNOME Desktop</u><br>
<code style=font-size:12px;>systemctl enable lightdm</code> - <u>fuer das Xfce4 Desktop</u><br><br>
<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<code style=font-size:12px;>exit</code><br>


pacman -S syslinux
<code style=font-size:12px;>umount /mnt/boot</code><br>
<code style=font-size:12px;>umount /mnt</code><br><br>


Die Konfigurationsdatei /boot/syslinux/syslinux.cfg ist selbsterklärend und bereits an den Arch Linux-Kernel angepasst.
<code style=font-size:12px;>poweroff</code><br>
<u>ISO-Stick entfernen, Neustarten und Einloggen im Desktopmanager</u>


Bitte die Angabe APPEND root=/dev/sda3 rw prüfen und entsprechend anpassen!
[[en:Beginners' Guide]]
[[Kategorie:Installation]]
[[Kategorie:Arch_Linux_Installations_Spickzettel]]

Version vom 5. April 2021, 20:24 Uhr

Entwurf root-crypt

arch uefi installation: Es wird eine Bootpartition und eine Rootpartition angelegt. Abkürzungen: EFIBOOT Dateisystem-Label für Boot und EFI Partition. p_arch Dateisystemlabel Rootpartition für Arch-Linux p_arch_crypt Partitionslabel nach Entschlüsselung /dev/mapper/.. pl_arch_crypt Partitionslabel für verschlüsselte Root Partition. Nicht zu verwechseln mit Dateisystem Label. p_swap Label für Swappartition falls nötig.

booten mit dem Isoimage loadkezs de loadkezs de-latin1 Bootmethode verifizieren:

  1. ls /sys/firmware/efi/efivars

Auf aktuelle Zeit setzen:

  1. timedatectl set-ntp true

Status prüfen: timedatectl timesync-status hwclock -w

lsblk -f gdisk /dev/sda Neue Partitionstabelle erzeugen mit o neue Partition für efi und boot (EFIBOOT) 256M Fat32 Spezifikation >512MiB ??). n Typ ef00 neue Partition für root n Typ 8309. PARTLABEL pl_arch_crypt hinzufügen (Taste c in gdisk).

neue Partition für swap n Typ 8200 w

modprobe dm-crypt cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat /dev/sda2 ACHTUNG Passwortvergabe Tastaturbelegung de beachten!! cryptsetup luksOpen /dev/sda2 p_arch_crypt

Formatieren: mkfs.fat -F32 -n EFIBOOT /dev/sda1 mkfs.ext4 -L p_arch /dev/mapper/p_arch_crypt

Mounten: Rootpartition zuerst!!! mount -L p_arch /mnt mkdir -p /mnt/boot mount -L EFIBOOT /mnt/boot swapon -L p_swap

Falls wlan, wifi-menu

Grundinstallation: Ab hier wie im Wiki beschrieben oder Stichwortartig hier weiter nano /etc/pacman.d/mirrorlist pacstrap /mnt base linux linux-firmware intel-ucode nano man-pages man-pages-de man-db mlocate netctl dhcpcd usbutils e2fsprogs less lshw mc gptfdisk efibootmgr dmidecode pacman-contrib genfstab -pL /mnt >> /mnt/etc/fstab

arch-chroot /mnt echo rechnername > /etc/hostname nano /etc/hosts

  1. <ip-address> <hostname.domain.org> <hostname>

127.0.0.1 localhost.localdomain localhost

1 localhost.localdomain localhost

echo LANG=de_DE.UTF-8 > /etc/locale.conf echo KEYMAP=de-latin1 > /etc/vconsole.conf ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

nano /etc/locale.gen de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 en_US.UTF-8 locale-gen

passwd

nano /etc/mkinitcpio.conf in Hooks einfügen und keyboard keymap vor block encrypt vor filesystem Komplette Zeile: HOOKS="base udev autodetect modconf keyboard keymap block encrypt filesystems fsck" mkinitcpio -p linux

systemd Loader installieren bootctl install

Datei anlegen: nano /boot/loader/loader.conf Hinweis: diese Datei wird nur benutzt zum Laden des default Linux.

timeout3 default uefi_arch.conf

Datei anlegen: nano /boot/loader/entries/uefi_arch.conf

title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options cryptdevice=/dev/sda2:p_arch_crypt root=LABEL=p_arch oder mit Label options cryptdevice=PARTLABEL=pl_arch_crypt:p_arch_crypt root=LABEL=p_arch

Für fallback anlegen: /boot/loader/entries/uefi_arch_fallback.conf

title Arch Linux fallback linux /vmlinuz-linux initrd /initramfs-linux-fallback.img options cryptdevice=/dev/sda2:p_arch_crypt root=LABEL=p_arch oder mit Label options cryptdevice=PARTLABEL=pl_arch_crypt:p_arch_crypt root=LABEL=p_arch

Zusätzliche Werkzeuge installieren: pacman -S gptfdisk efibootmgr lshw mc

efi booteinträge kontollieren: efibootmgr -v


exit umount -R /mnt poweroff usb stick bzw CD entfernen. Neu starten login: root Passwort: Geheim





Arch Linux Installation auf einem UEFI-Rechner mit systemd-boot als Bootloader
Partitionierung: boot, root.
Weitere Arch Linux Installations Spickzettel

Das neueste Arch ISO-Abbild herunterladen von:
www.archlinux.org/download/

ISO-Abbild pruefen:
md5sum archlinux-*-x86_64.iso

ISO-Abbild auf USB-Stick uebertragen:
fdisk -l - x ermitteln
dd bs=4M if=/pfad/archlinux-*-x86_64.iso of=/dev/x status=progress

Wichtig:
Im UEFI-Menu des Rechners muss "Secure Boot" auf "[Disabled]" gesetzt werden.

Nuetzliche Kommandos:
reboot - Neustarten
poweroff - Herunterfahren
STRG+ALT+F2 - zweites Terminal oeffnen
- Konsolenbefehle wiederholen

Deutsche Tastaturbelegung - Die Taste Z druecken, um das y Zeichen zu erhalten:
loadkeys de

Internetverbindung herstellen ueber LAN:
ip link
dhcpcd enxxx

Internetverbindung herstellen ueber WLAN:
iwctl
station wlan0 connect SSID
Passwort
Strg+d

Arch Installations Spickzettel aufrufen
lynx wiki.archlinux.de/title/spicker

Partitionieren:
fdisk -l - x ermitteln
gdisk /dev/x - gdisk starten
o - neue Partitionstabelle im chache
y - bestaetigen
n - neue Partition
↵ Enter - die Partitionsnummer bestaetigen
↵ Enter - den ersten Sektor bestaetigen
+512M - die Partitionsgroeße festlegen
ef00 - den Partitionstyp fuer EFI setzen
n - eine weitere Partition anlegen
↵ Enter - die Partitionsnummer bestaetigen
↵ Enter - ersten Sektor bestaetigen
↵ Enter - letzten Sektor bestaetigen
↵ Enter - den Linux Partitionstyp (8300) bestaetigen
p - zeige neue Partitionstabelle zur ueberpruefung an
w - speichern der neuen Partitionstabelle
y - bestaetigen

Formatieren:
mkfs.fat -F 32 -n AESP /dev/x1
mkfs.ext4 -L AROOT /dev/x2

Mounten:
mount /dev/x2 /mnt

mkdir /mnt/boot
mount /dev/x1 /mnt/boot

Installation der Basispakete:
pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano

Installation von Microcode:
pacstrap /mnt intel-ucode oder pacstrap /mnt amd-ucode

fstab erzeugen:
genfstab -U /mnt > /mnt/etc/fstab

Chrooten:
arch-chroot /mnt

Systemd-boot installieren:
bootctl install

nano /boot/loader/entries/arch-uefi.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=AROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-uefi-fallback.conf
Und wie folgt anpassen:
title Arch Linux Fallback
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options root=LABEL=AROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

bootctl update

Das Root Password erstellen:
passwd

Konfiguration:
echo mein-rechner > /etc/hostname
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
echo FONT=lat9w-16 >> /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

nano /etc/locale.gen
Und das # am Anfang folgender Zeilen entfernen:
#de_DE.UTF-8 UTF-8
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#en_US.UTF-8 UTF-8

locale-gen

Den Benutzer 'duda' anlegen und ihn ggf. zu den Gruppen hinzufuegen:
useradd -m -g users -s /bin/bash duda
passwd duda
usermod -aG wheel,audio,video,power duda

Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:
EDITOR=nano visudo
Kommentarzeichen und Leerzeichen von dieser Zeile entfernen:
# %wheel ALL=(ALL) ALL

Installation und Konfiguration von X:
pacman -S xorg-server xorg-xinit
localectl set-x11-keymap de pc105 deadgraveacute

lspci | grep VGA
Passend zur Grafikkarte einen freien Treiber installieren:
pacman -S xf86-video-amdgpu
pacman -S xf86-video-intel
pacman -S xf86-xf86-video-nouveau

Plasma (minimal):
pacman -S kwin plasma-desktop plasma-nm konsole sddm

GNOME (minimal):
pacman -S mutter network-manager-applet gnome-terminal gdm

Xfce4 (minimal):
pacman -S xfwm4 xfce4-session network-manager-applet xfce4-terminal lightdm

Nuetzliche Dienste installieren:
pacman -S acpid avahi iwd

Dienste aktivieren:
systemctl enable acpid - Energieverwaltung
systemctl enable avahi-daemon - Netzwerk Zuweisung
systemctl enable NetworkManager - Netzwerkmanager
systemctl enable iwd - WLAN Daemon
systemctl enable systemd-timesyncd - Zeit Synchronisation
systemctl enable fstrim.timer - nur fuer unverschluesselte SSDs

Nur einen Loginmanager aktivieren:
systemctl enable sddm - fuer das Plasma Desktop
systemctl enable gdm - fuer das GNOME Desktop
systemctl enable lightdm - fuer das Xfce4 Desktop

Chrootumgebung verlassen und Partitionen loesen:
exit

umount /mnt/boot
umount /mnt

poweroff
ISO-Stick entfernen, Neustarten und Einloggen im Desktopmanager