Arch Install
- 2 minsArch
https://wiki.archlinux.org/title/Installation_guide
UEFI install
Keyboard Layout
check available
ls /usr/share/kbd/keymaps/**/*.map.gz
select US keyboard
loadkeys us
Internet
Test
ping archlinux.org
Partition
partitioning using cfdisk
cfdisk
then select gpt
Boot 100M
swap 4G
root rest
write → enter
Manually format
list block devices
lsblk
Formatting root partition
mkfs.ext4 /dev/sda3
Boot partition
mkfs.fat -F 32 /dev/sda1
Swap partition
mkswap /dev/sda2
Mounting
mount /dev/sda3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
swapon /dev/sda2
Installation
pacstrap /mnt base linux linux-firmware sof-firmware base-devel grub efibootmgr vim networkmanager
base-devel → compile AUR
grub → boot
efibootmgr → efi support for boot
Generating file system tab
genfstab /mnt
we want this on a file
genfstab /mnt > /mnt/etc/fstab
Entering system
arch-chroot /mnt
setting timezone
ln -sf /usr/share/zoneinfo/Asia/Colombo /etc/localtime
to check if setup correctly
date
synchronize system cloc
hwclock --systohc
Localization
vim /etc/locale.gen
editing file with all different locales. Uncomment
#en_US.UTF-8 UTF-8
Generate
locale-gen
Specify locale at /etc/locale.conf
LANG=en_US.UTF-8
Specify hostname
edit the file
vim /etc/hostname
root password
passwd
Add User
useradd -m -G wheel -s /bin/bash {name}
passwd {name}
Sudo
exit to root and run
EDITOR=vim visudo
uncomment
%wheel ALL=(ALL) ALL
Anyone in the wheel group runs sudo commands
Enable core services
Network manager
systemctl enable NetworkManager
sddm/lightdm
systemctl enable sddm
Setting bootloader
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
Unmount
exit the terminal &
unmont -a