Artix Installation Guide
Installing Artix Linux base with openrc
[ Updated 10-16-21 | Created 10-16-21 ]
installation
artix linux base with openrc
drive configuration
fdisk
/dev/nvme0n1
- nvme0n1p1 512m vfat
- nvme0n1p2 953g
/dev/sda
- sda1 3.6t
/dev/sdb
- sdb1 5.5t
mkfs.fat -f32
boot partition, mkfs.ext4
others
dm-crypt
cryptsetup luksformat /dev/<partition>
cryptsetup open /dev/<partition> <mapper>
lvm
pvcreate /dev/mapper/<mapper>
vgcreate <volume> /dev/mapper/<mapper>
lvcreate -l 32g <volume> -n swap
lvcreate -l 50g <volume> -n root
lvcreate -l 100%free <volume> -n home
filesystem
mkfs.ext4 /dev/<volume>/root, home, etc
mkswap /dev/<volume>/swap
mounting
mount /dev/<volume>/<lvm> /mnt/
mount /dev/nvme0n1/nvme0n1p1 /mnt/boot
swapon /dev/<volume>/swap
nvme0n1
- nvme0n1p1 512m /mnt/boot
- nvme0n1p2
-- cryptroot
--- lockbox-swap 32g [swap]
--- lockbox-root 50g /mnt
--- lockbox-home 871g /mnt/home
sda
- sda1
-- cryptmedia
--- media-home 3.6t (mounted later)
sdb
- sdb1
-- cryptvault
--- vault-home 5.5t (mounted later)
base installation
basestrap /mnt base base-devel openrc elogind-openrc linux linux-firmware vim lvm2 cryptsetup
rc-update add elogind
for yubikey, rc-update add pcscd
fstabgen -u /mnt >> /mnt/etc/fstab
(will be run again if using multiple drives)
artix-chroot /mnt
extra packages
pacman -s artix-archlinux-support
/etc/pacman.conf
#[testing]
#include = /etc/pacman.d/mirrorlist-arch
[extra]
include = /etc/pacman.d/mirrorlist-arch
#[community-testing]
#include = /etc/pacman.d/mirrorlist-arch
[community]
include = /etc/pacman.d/mirrorlist-arch
#[multilib-testing]
#include = /etc/pacman.d/mirrorlist-arch
[multilib]
include = /etc/pacman.d/mirrorlist-arch
pacman-key --populate archlinux
system configuration
clock
ln -sf /usr/share/zoneinfo/<region>/<city> /etc/localtime
hwclock --systohc
locale
edit /etc/locale.gen
, run locale-gen
/etc/locale.conf
lang=en_us.utf-8
mkinitcpio
/etc/mkinitcpio.conf
hooks=base udev autodetect keyboard keymap modconf block encrypt encrypt2 encrypt3 lvm2 filesystems fsck
mkinitcpio -p linux
bootloader
pacman -s refind
refind-install
lsblk -f
edit refind_linux.conf
"boot with standard options" "lang=en_us keytable=us tz=utc label=artix_202104 cryptdevice=uuid=<uuid of nvme0n1p2>:<mapper> root=/dev/<volume>/root resume=/dev/<volume>/swap cryptdevice2=uuid=<uuid of sda1>:<mapper> cryptdevice3=uuid=<uuid of sdb1>:<mapper>"
git clone https://gitlab.com/perthshiretim/giant-wall-of-text
and install (will need imagemagick)
network
/etc/hostname –>
/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 <hostname>.localdomain <hostname>
/etc/conf.d/hostname
hostname='<hostname>'
pacman -s dhcpcd networkmanager networkmanager-openrc
rc-update add networkmanager
users
passwd
useradd -m -g wheel <user>
passwd <user>
uncomment %wheel all=(all) all
in /etc/sudoers
yay
git clone https://aur.archlinux.org/yay
cd yay
makepkg -si
drive mounting (multiple drives only)
sda
- sda1
-- cryptmedia
--- media-home 3.6t /mnt/home/<user>/media
sdb
- sdb1
-- cryptvault
--- vault-home 5.5t /mnt/home/<user>/vault
regenerate fstab
Tagged: Linux