3.2 KiB
Arch Installation
Keyboard layout
loadkeys de_CH-latin1
Check UEFI mode
If the following command works, the system is booted in EFI.
ls /sys/firmware/efi/efivars
Verify internet connection
ping realstickman.net
Update system clock
timedatectl set-ntp true
Creating partitions
cfdisk
Format partitions
Fat 32:
mkfs.fat -F32 /dev/(partition)
Ext4:
mkfs.ext4 /dev/(partition)
btrfs:
mkfs.btrfs /dev/(partition)
Mounting partitions
Generally partitions have to be mounted where you will later use them in your system.
Root: /mnt EFI: /mnt/boot or /mnt/efi Home: /mnt/home
Creating swapfile
Not applicable to btrfs
dd if=/dev/zero of=/mnt/swapfile bs=1M count=(size) status=progress
Swapfile in btrfs
truncate -s 0 /mnt/swapfile
chattr +C /mnt/swapfile
btrfs property set /mnt/swapfile compression none
fallocate -l (size)M /mnt/swapfile
Initialising swapfile
chmod 600 /mnt/swapfile
mkswap /mnt/swapfile
swapon /mnt/swapfile
Essential packages
Some things like the userspace utilities for file management will vary.
See file systems
pacstrap /mnt base linux linux-firmware vim git openssh networkmanager network-manager-applet dialog base-devel linux-headers
Wifi
pacstrap /mnt wpa_supplicant
Packages needed for file systems
Fat32:
dosfstools mtools
Ext4:
e2fsprogs
btrfs:
btrfs-progs
Generate fstab
genfstab -U /mnt >> /mnt/etc/fstab
IMPORTANT: Make sure the fstab file has everything included
Chroot into the system
arch-chroot /mnt
Set timezone
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
Set hardware clock
hwclock --systohc
Set locale
vim /etc/locale.gen
Uncomment the locales that should be generated.
Make sure to use a UTF-8 entry.
locale-gen
Edit /etc/locale.conf
and set LANG=(locale)
.
LANG=de_CH.UTF-8
Set keymap permanently
vim /etc/vconsole.conf
KEYMAP=de_CH-latin1
Set hostname
Edit /etc/hostname
(hostname)
Edit /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 (hostname).localdomain (hostname)
Change root password
passwd
Bootloader installation
GRUB
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=(efi partition mountpoint) --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
systemd-boot
rEFInd
Networking
systemctl enable NetworkManager
Add user
useradd -mG wheel (user)
Set password
passwd (user)
Enable sudo
visudo
Uncomment %wheel ALL=(ALL) ALL
Finishing installation
exit
poweroff
Remove the installation cd
Install AUR helper
yay
Currently has build errors Use paru instead and install yay-bin
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
paru
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si