Archlinux Installation#


Consolidate the old versions:



Also add

  • GDM keyboard config

  • firefox

  • Gnome Keyboard config

  • Gnome Terminal config

  • Bootloader


  • Microcode

  • update my PyCharm package

  • good mirror list

Bios Settings#

  • set the BIOS clock to GMT time zone

  • turn all virtualization optiona on

Keyboard Settings#


  • German keyboard: loadkeys de-latin1-nodeadkeys

Connect to W-Lan (TODO)#

  • see

  • iwctl

  • station <wlan_device> connect <ssid>

  • exit

  • check with ping


  • show disk status lsblk

  • delete disk if you have a SSD

    • also see:

    • blkdiscard -f /dev/nvme0n1

    • also might want to use --secure or -z/--zeroout option - see

  • create partitions: gdisk /dev/nvme0n1

    • create 512MB boot / EFI - type: ef00

    • rest for root (LUKS) - type: 8309

  • show disk status again: lsblk

Create LUKS#

cryptsetup luksFormat /dev/nvme0n1p2
cryptsetup open /dev/nvme0n1p2 cryptroot

use lsblk to check if cryptroot is created

Create and mount Filesystems#

see also:

mkfs.ext4 /dev/mapper/cryptroot
mount /dev/mapper/cryptroot /mnt
mkfs.fat -F 32 /dev/nvme0n1p1
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot

Create Swap File (did not do this)#

see also:

  • TODO: Link zu Ubuntu Seite

dd if=/dev/zero of=/swapfile bs=1M count=20480 status=progress
chmod 600 /mnt/swapfile
mkswap /mnt/swapfile
swapon /mnt/swapfile

To resume from swap see:

Select Mirrors#

nano /etc/pacman.d/mirrorlist

Install Packages#

pacstrap /mnt base linux linux-firmware
pacstrap /mnt nano gnome cryptsetup networkmanager
pacstrap /mnt efibootmgr dosfstools gptfdisk
# gen and check fstab
genfstab -U /mnt >> /mnt/etc/fstab
less /mnt/etc/fstab

arch-chroot /mnt

#Time zone
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc

nano /etc/locale.gen
- remove comment for de_DE UTF-8
- remove comment for en_US UTF-8
nano /etc/locale.conf

# see:

nano /etc/vconsole.conf

nano /etc/hostname
- enter hostname

nano /etc/hosts	localhost
::1		localhost	myhostname

nano /etc/mkinitcpio.conf

HOOKS=(base udev autodetect modconf block keyboard keymap encrypt filesystems fsck)

- see
- added after "block" -> "keyboard keymap encrypt"
- no `consolefont`

mkinitcpio -P


# install systemd-boot
bootctl install

systemd-boot does not accept tabs for indentation, use spaces instead.

nano /boot/loader/entries/arch.conf

title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options cryptdevice=UUID=701fea32-236d-49fd-a0f9-cb9f07c94703:cryptroot root=/dev/mapper/cryptroot rw

use cat to add UUID to file:
use the UUID of the base encryped partition ! NOT cryptroot

blkid >> /boot/loader/entries/arch-uefi.conf

- see
- see

nano /boot/loader/entries/arch-uefi-fallback.conf

nano /boot/loader/loader.conf

#timeout 3 #console-mode keep default arch.conf console-mode max editor no timeout 1

bootctl update

cd /
umount -R /mnt

# create user
useradd <username> -m -s /bin/bash
passwd <username>

#gnome aktivieren
systemctl enable gdm.service
systemctl enable NetworkManager


# check heyboard layout at login!

# Gnome Settigs
- Keyboard
  - add German
  - remove en
- Mouse & Touchpad
  - Natural scolling aus
  - Tap to Click an
- check "Region & Language"
  - alle settings prüfen und synchronisieren
  - both tabs -> Language: English, Formats: all Deutschland
- Power
  - Automatic Suspend - on battery power und Plugged in aus
  - show percent

- als root ausführen: `localectl set-x11-keymap de`

# microcode
pacman -S amd-ucode
# add in boot config
initrd  /cpu_manufacturer-ucode.img

# fstrim
systemctl enable fstrim.timer

# swappiness
nano /etc/sysctl.d/99-swappiness.conf


# sudo
pacman -S sudo
EDITOR=nano visudo
%wheel      ALL=(ALL) ALL
gpasswd -a <username> wheel

nano /etc/mkinitcpio.conf
mkinitcpio -P

# enable aur
pacman -S --needed base-devel
nano /etc/makepkg.conf

Lenovo ThinkPad T495x specific#

Mask this to avoid Boot Error#

also see:

systemctl mask systemd-backlight@backlight:acpi_video0.service