Scrappy note to install Archlinux. Based on my last (a bit old) laptop setup.

Note: Migrated to i3 since. Maybe an update if I reinstall when switching to sway.

mkfs

loadkeys fr
cfdisk /dev/sda

gpt
512M efi
208G LVM
Write Quit

cryptsetup --verify-passphrase --cipher aes-xts-plain64 --key-size 512 --iter-time 5000 --hash sha512 --use-random luksFormat /dev/sda2
cryptsetup open /dev/sda2 SysLVM
pvcreate /dev/mapper/SysLVM
vgcreate SysVG /dev/mapper/SysLVM
lvcreate -L 8G SysVG -n swap
lvcreate -l 100%FREE SysVG -n root
mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/mapper/SysVG-root
mkswap /dev/mapper/SysVG-swap
mount /dev/mapper/SysVG-root /mnt
mkdir /mnt/{home,boot}
swapon /dev/mapper/SysVG-swap
mount /dev/sda1 /mnt/boot

base

nano /etc/pacman.d/mirrorlist

alt R Server > #Server
polymor + archlinux.fr

pacstrap /mnt base base-devel
pacstrap /mnt zip unzip alsa-utils mtools dosfstools lsb-release ntfs-3g exfat-utils
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
nano /etc/fstab
nano /etc/vconsole.conf

KEYMAP=fr
FONT=lat9w-16

nano /etc/locale.conf

LANG=fr_FR.UTF-8
LC_COLLATE=C

nano /etc/hostname

blue-rock

nano /etc/locale.gen

en_US.UTF-8
fr_FR.UTF-8

locale-gen
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc --utc

boot

nano /etc/mkinitcpio.conf

Dans “HOOKS”
keymap (avant keyboard)
keyboard
lvm2
encrypt

mkinitcpio -p linux
bootctl --path=/boot/ install
nano /boot/loader/loader.conf

default arch
timeout 0
editor 0

blkid /dev/sda2 > /boot/loader/entriers/arch.conf
nano /boot/loader/entries/arch.conf

title Arch linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=UUID=xxxxxxxx-xxxx-xxxx-xxxx:SysLVM:allow-discards root=/dev/mapper/SysVG-root quiet rw

passwd root
pacman -Sy
pacman -Syy
pacman -Sy networkmanager ntp gnome-keyring
systemctl enable NetworkManager
systemctl enable ntpd
exit
umount -R /mnt
reboot
pacman -Syu

x11

pacman -S gst-plugins-{base,good,bad,ugly} gst-libav

1 1

pacman -S xorg-{server,xinit,xmessage,utils,server-utils,apps} xf86-input-{mouse,keyboard} xdg-user-dirs xf86-input-libinput
pacman -S xf86-video-intel
pacman -S ttf-{bitstream-vera,liberation,freefont,dejavu}

user

useradd -m -g wheel,games,power,optical,storage,scanner,lp,audio,video -s /bin/bash shu
passwd shu
nano /etc/sudoers

uncomment %wheel

xfce

pacman -S lightdm-gtk-greeter
pacman -S xfce4 mousepad viewnior thunar-archive-plugin thunar-medias-tags-plugins xfce4-notifyd xfce4-screenshooter xfce4-whiskermenu-plugin gvfs network-manager-applet
localectl set-x11-keymap fr
pacman -S pavucontrol pulseaudio-alsa
systemctl start lightdm

pamac

nano /etc/pacman.conf

uncomment multilib
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

pacman -Syu yaourt
yaourt -S pamac-aur

notes

trim(defaults,discard,noatime (-boot) fstab et lvmtab) fstrim -av
add resume/hibernate