wget http://archlinux.uk.mirror.allworldit.com/archlinux/iso/2024.01.01/archlinux-2024.01.01-x86_64.iso sudo dd if=/path/to/archlinux-2024.01.01-x86_64.isotimen83 of=/dev/sdX status=progress
iwctl [iwd]# station wlan0 connect SSID exit or ctrl+d
ping archlinux.org
timedatectl set-timezone Europe/Dublin
used fdisk to create 2 partitions
sda1 ext4 /boot type 83 (and make it bootable) sda2 ext4 LVM - type 8e
cryptsetup luksFormat /dev/sda2
cryptsetup luksOpen /dev/sda2 luks
pvcreate /dev/mapper/luks
vgcreate vg0 /dev/mapper/luks
lvcreate -L 8G vg0 -n swap # make it double size of your ram lvcreate -L 40G vg0 -n root lvcreate -l 100%FREE vg0 -n home
mkswap /dev/mapper/vg0-swap mkfs.ext4 /dev/mapper/vg0-home mkfs.ext4 /dev/mapper/vg0-root mkfs.ext4 /dev/sda1
mount /dev/mapper/vg0-root /mnt mkdir -p /mnt/{boot,home} mount /dev/mapper/vg0-home /mnt/home mount /dev/sda1 /mnt/boot swapon /dev/mapper/vg0-swap
pacstrap /mnt base vim lvm2 linux linux-firmware
pacstrap
commandpacman -Sy archlinux-keyring
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
timedatectl set-timezone Europe/Dublin hwclock --systohc --utc
echo arch > /etc/hostname
vim /etc/locale.gen # uncomment: # en_US.UTF-8 UTF-8
then run
locale-gen
then
echo LANG=en_US.UTF-8 > /etc/locale.conf echo LANGUAGE=en_US >> /etc/locale.conf echo LC_ALL=C >> /etc/locale.conf
passwd root
vim /etc/mkinitcpio.conf # and add 'encrypt lvm2' before 'filesystem' HOOKS="base udev autodetect modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck"
then run
mkinitcpio -P
pacman -S grub networkmanager sudo grub-install --target=i386-pc /dev/sda
/etc/default/grub
, add lvm
and cryptdevice=/dev/sda2:luks
to following:GRUB_PRELOAD_MODULES='lvm' GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:luks"
and run following to regenerate grub config file
grub-mkconfig -o /boot/grub/grub.cfg
exit umount -R /mnt reboot
systemctl enable --now NetworkManager nmtui
pacman -S bash-completion xorg-server pacman -S xorg-xinit xorg-xkill pacman -S xterm firefox pacman -S i3-wm i3lock i3status dmenu network-manager-applet pacman -S lightdm lightdm-gtk-greeter systemctl enable lightdm reboot
useradd -m karcio passwd karcio ### add user to sudo su - karcio echo "exec i3" >> ~/.xinitrc
sudo pacman -S pulseaudio pulseaudio-alsa alsa-utils
sudo pacman -S notification-daemon libnotify
then edit /usr/share/dbus-1/services
sudo vim /usr/share/dbus-1/services/org.freedesktop.Notifications.service
and add following lines:
[D-BUS Service] Name=org.freedesktop.Notifications Exec=/usr/lib/notification-daemon-1.0/notification-daemon
sudo pacman -S ttf-font-awesome terminus-font ttf-dejavu
sudo pacman -S cronie sudo systemctl enable --now cronie.service
sudo pacman -S feh
sudo pacman -S git alacritty mc zip unzip
Install with uefi: https://blog.bespinian.io/posts/installing-arch-linux-on-uefi-with-full-disk-encryption/