Hallo da draußen,
auf dieser Seite habe ich all diejenigen befehle zusammengefasst, die zur Installation von Archlinux (Stand Juni 2020) auf meinem Desktop-Rechner verwendet werden.
Ich hab die Befehl nicht kommentiert sondern lediglich “aufgeschrieben” - um Sie per Copy&Paste benutzen zu können…
Hört sich gut an - dann viel Spaß beim Lesen und mitmachen. Ansonsten: viel Spaß bei was immer ihr auch jetzt macht - vielleich bis zum nächsten mal!
Los geht’s…
Zu allererst…
… weise ich in aller Deutlichkeit darauf hin, dass ihr Alles was ich hier beschreibe auf eigene Verantworung macht und ich nicht für das Gelingen oder eventuelle Schaden verantwortlich bin!
… und alles ist nich nobelpreisverdächtig und nicht von mir sonder abgekupfert und von verschiedenen Quellen zusammengetragen für genau mein Setup!
archlinux wiki: Installationsanleitung,
den allergrößte Teil von Nick: ich bin absolter Unicks-Nick Fan!
Jetz aber…
Partitionieren
USB Stick booten und UEFI-Eintrag auswählen
loadkez de
efivar -l
lsblk -> nvme0n1
gdisk /dev/nvme0n1
o => delete all partitions
n => new, {ENTER}, +300M == BOOT, 8300, ext4
n => new, {ENTER}, +150M == EFI, ef00, vfat
n => new, {ENTER}, +32GB == SWAP, 8200, swap
n => new, {ENTER}, {ENTER} == ROOT, 8300, btrfs
p print -> zeigt die erstellten Partitionen an
w write -> schreiben der Partitionen, bestätigen mit "y"
Dateisysteme erstellen
lsblk
mkfs.ext4 -L BOOT /dev/nvme0n1p1
mkfs.vfat -F 32 -n EFI /dev/nvme0n1p2
mkfs.btrfs -L ROOT /dev/nvme0n1p4
mkswap -L SWAP /dev/nvme0n1p3
swapon /dev/nvme0n1p3
free -h => es hat geklappt mit dem SWAP
BTRFS Subvolumes erstellen
mount /dev/nvme0n1p4 /mnt
btrfs sub create /mnt/@
btrfs sub create /mnt/@pkg
btrfs sub create /mnt/@log
btrfs sub create /mnt/@snapshots
btrfs sub create /mnt/@home
umount /mnt/
mount -o noatime,ssd,space_cache=v2,compress=lzo,subvol=@ /dev/nvme0n1p4 /mnt
mkdir -p /mnt/{boot,home,var/log,var/cache/pacman/pkg,btrfs}
ls /mnt
mount /dev/nvme0n1p1 /mnt/boot
mkdir /mnt/boot/efi
mount /dev/nvme0n1p2 /mnt/boot/efi
Subvolumes mounten:
mount - o noatime,ssd,space_cache=v2,compress=lzo,subvol=@log /dev/nvme0n1p4 /mnt/var/log/
mount - o noatime,ssd,space_cache=v2,compress=lzo,subvol=@pkg /dev/nvme0n1p4 /mnt/var/cache/pacman/pkg/
mount - o noatime,ssd,space_cache=v2,compress=lzo,subvol=@home /dev/nvme0n1p4 /mnt/home/
mount - o noatime,ssd,space_cache=v2,compress=lzo,subvolid=5 /dev/nvme0n1p4 /mnt/btrfs/
Hurra:
df -Th
Basissystem installieren
pacstrap /mnt base base-devel bash-completion btrfs-progs dosfstools grub efibootmgr linux linux-firmware linux-headers linux-lts linux-lts-headers neovim amd-ucode
genfstab -L /mnt >> /mnt/etc/fstab
Jetzt die Einträge in der fstab löschen mit subvolid=…,subvol=/@…
Ausnahme: subvolid=5 bleibt, hier nur subvol=/… löschen
…wenn grafischer Installer verwendet wird…
cp /etc/pacman.d/mirrorlist /mnt/etc/pacmand/mirrorlist
System Konfiguration
arch-chroot /mnt/
echo BlackDragon > /etc/hostname
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
nvim /etc/locale.gen => Hashzeichen(#) vor dem Eintrag de_DE.UTF-8 UTF-8 entfernen.
locale-gen
echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
nvim /etc/pacman.conf => Hasheintrag (#) vor [multilib]\nInclude… entfernen
das aktiviert 32-Bit-Libraries die für u.a. Spiele verwendet werden (Steam, etc.)
pacman -Syu
useradd -m -g users -G wheel,audio,video -s /bin/bash juergen
passwd juergen
EDITOR=nvim visudo => Hashtag (#) vor %wheel ALL=(ALL) ALL entfernen
passwd -l root
pacman -S reflector
pacman -S avahi acpid
systemctl enable avahi-daemon acpid.service
systemctl enable systemd-timesyncd.service
grub: Bootloader installieren
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloaderid=grub
grub-mkconfig -o /boot/grub/grub.cfg
ich beschreibe hier jetzt noch die Installation des X-Window-Systems und der DE XFCE, damit wir nach dem reboot gleich komplett sind
Desktop-Installation: XFCE
pacman -S xorg-server xorg-xinit xorg-xrandr
pacman -S xf86-video-amdgpu
pacman -S xfce4 xfce4-goodies lightdm lightdm-gtk-greeter networkmanager network-manager-applet alsa-tools alsa-utils pulseaudio pulseaudio-alsa pavucontrol
systemctl enable lightdm.service NetworkManager
nvim /etc/X11/xorg.conf.d/20-keyboard.conf
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection
Hurra jetzt raus aus dem Changeroot und neu gestartet…
exit
umount -R /mnt
reboot
…tbc :D