Skip to content

Instantly share code, notes, and snippets.

@fusetim
Created November 8, 2026 10:15
Show Gist options
  • Select an option

  • Save fusetim/87bdde675f1c97bc782bc604eaa09676 to your computer and use it in GitHub Desktop.

Select an option

Save fusetim/87bdde675f1c97bc782bc604eaa09676 to your computer and use it in GitHub Desktop.
arch-install

Arch Install - Nemesis

Non-chrooted env

Step 0 - Prepare disk and partitions

Since we are not attempting a full reinstall, we'll reuse the already exiting volumes and partitions.

Partitions of interest are:

  • /dev/sdb3 @ /efi - fat32 - efi partition
  • /dev/sdb4 - LUKS 2 partition - contains LVM virtual volume: vg1
  • /dev/mapper/vg1-root @ / - ext4 on LVM
  • /dev/mapper/vg1-swap - swap

Step 1 - Setup keyboard

Setup the good keyboard layout:

loadkeys fr

Step 2 - Mount the different partitions

cryptsetup luksOpen /dev/sdb4 cryptoroot
mount /dev/mapper/vg1-root /mnt
mount --mkdir /dev/sdb3 /mnt/efi
swapon /dev/mapper/vg1-swap

Step 3 - Select pacman mirrors

reflector --latest 5 --protocol https -c fr,de,nl --age 12 --sort rate --save /etc/pacman.d/mirrorlist

Step 4 - Install the essential packages

pacstrap -K /mnt base linux linux-firmware intel-ucode lvm2 nano man dracut systemd-ukify efibootmgr networkmanager ghostty firefox

Step 5 - fstab

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

Chroot-time

arch-chroot -S /mnt

Step 6 - Time and locales

ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
locale-gen
nano /etc/locale.conf # Set the correct local (LANG=en_US.UTF-8)
nano /etc/vconsole.conf # Set correct keyboard layout (KEYMAP=fr)

Step 7 - Setup hostname

nanp /etc/hostname

Step 8 - User accounts

First, setup the root password

passwd

Then create the needed account:

useradd -m -s /bin/bash username
passwd username
EDITOR=nano visudo
usermod -aG wheel username

Step 9 - Install the nvidia drivers from AUR

Yay install:

su - fusetim # we cannot be root for this part
cd /tmp
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
exit
yay -Sy nvidia-580xx-dkms linux-headers

Step 10 - dracut setup

TODO: Install dracut-ukify later

Create this dracut conf file: /etc/dracut.conf.d/uki.conf

uefi=yes
uefi_stub=/usr/lib/systemd/boot/efi/linuxx64.efi.stub
compress=zstd
hostonly=yes

Create this dracut conf file: /etc/dracut.conf.d/cmdline.conf

kernel_cmdline="rd.luks rd.luks.name=3c48455a-ada3-4c14-aedd-04388a362bb6=cryptoroot rd.dm=0 rd.md=0 rd.lvm rd.lvm.vg=vg1 root=/dev/vg1/root resume=/dev/vg1/swap rw rootfstype=ext4"

Generate the bootimage:

dracut --regenerate-all --uefi -f

Step 10 - Install systemd-boot (bootloader)

bootctl --esp-path=/efi install

Step 11 - Enable networkmanager

systemctl enable NetworkManager

Reboot and try

Step 12 - Install the DE

Install KDE plasma and Plasma Login Manager

sudo pacman -S plasma-meta plasma-login-manager
systemctl enable plasmalogin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment