The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Download the archiso image from https://www.archlinux.org/
- Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
- Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
loadkeys br-abnt2
timedatectl set-ntp true
wifi-menu
cgdisk /dev/sdX
1 256MB EFI partition # Hex code ef00 3 100% size partiton # (to be encrypted) Hex code 8300
mkfs.vfat /dev/sdX1
cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat /dev/sdX2
cryptsetup luksOpen /dev/sdX3 <name>- This creates one partions for root, modify if /home or other partitions should be on separate partitions
pvcreate /dev/mapper/luks
vgcreate <VG_NAME> /dev/mapper/luks
lvcreate --size 8G <VG_NAME> --name swap
lvcreate -l +100%FREE <VG_NAME> --name rootmkfs.ext4 /dev/mapper/vg0-root
mkswap /dev/mapper/vg0-swapmount /dev/mapper/vg0-root /mnt # /mnt is the installed system
swapon /dev/mapper/vg0-swap # Not needed but a good thing to test
mkdir /mnt/boot
mount /dev/sdX2 /mnt/bootInstall the system also includes stuff needed for starting wifi when first booting into the newly installed system
pacstrap /mnt base base-devel linux linux-firmware fish vim inetutils netctl dhcpcd dialog wpa_supplicant btrfs-progs lvm2genfstab -pU /mnt >> /mnt/etc/fstab
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
- Change relatime on all non-boot partitions to noatime (reduces wear if using an SSD)
arch-chroot /mnt
ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime hwclock --systohc --utc
- edit /etc/locale.gen and uncomment en_US.UTF-8 then run locale-gen
echo MYHOSTNAME > /etc/hostname
echo LANG=en_US.UTF-8 >> /etc/locale.conf echo LANGUAGE=en_US >> /etc/locale.conf echo LC_ALL=C >> /etc/locale.conf
passwd
useradd -m -g users -G wheel -s /bin/zsh MYUSERNAME passwd MYUSERNAME
vim /etc/mkinitcpio.conf
- Add 'btrfs' to MODULES
- Add 'encrypt' and 'lvm2' to HOOKS before filesystems
mkinitcpio -p linux
bootctl --path=/boot install
default arch-*
timeout 3
editor 0insert this
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=UUID=<Your /dev/sda5 UUID>:cryptdisk root=/dev/mapper/arch-root quiet rwuse
r! blkidto get uuid
exit
umount -R /mnt
swapoff -areboot