Download arch image from the official repos.
Download Etcher and make your iso image bootable on your usb stick.
Disable TPM & enable CSM on your bios.
Load the boot iso in UEFI
You should be in archiso mode now.
Check available keyboard layouts:
ls /usr/share/kbd/keymaps/**/*.map.gz
Load your keyboard layout:
loadkeys < your keyboard value here >
Ensure that the system clock is synced:
timedatectl set-ntp true
timedatectl status
list all available drives:
lsbl²k
Chose a drive where you want to install your arch:
cgdisk /dev/sda1
Partition your disk and reformat it. You should have 3 partitions in total:
N° | mount name | total allocated size | partition type | Format type |
---|---|---|---|---|
1 | /boot | 2Gb | EFI 8300 | fat 32 |
2 | /swap | 4Gb | SWAP 8200 | swap |
3 | /arch | All remaining | EFI 8300 | ext4 |
Write the partition table.
check the partitioning:
lsblk
Format the partitions:
1./ partition boot:
mkfs.fat -F32 /dev/< name1 >
2./ partition swap:
mkswap /dev/< name2 >
3./ partition arch:
mkfs.ext4 /dev/< name3 >
check the formatting:
lsblk
Mounting the partitions:
1./ mouting swap:
swapon /dev/< name2 >
2./ mouting arch:
mount /dev/< name3 > /mnt
3./ mouting boot:
mkdir -p /mnt/boot
mount /dev/< name1 > /mnt/boot
Installing essential packages:
pacstrap /mnt base linux linux-firmware base-devel vi nano
Generate an fstab file (use -U or -L to define by UUID or labels, respectively)
genfstab -U /mnt >> /mnt/etc/fstab
Get into the installation instance of Arch:
arch-chroot /mnt
set timeztone:
ln -sf /usr/share/zoneinfo/< your zone > /etc/localtime
hwclock --systohc
set local:
vi /etc/locale.gen
locale-gen
set lang locale
vi /etc/locale.conf
LANG=en_US.UTF-8
set keyboard layout
vi /etc/vconsole.conf
KEYMAP=en
set hostname
vi /etc/hostname
atreides
Initramfs:
mkinitcpio -P
set password:
passwd
set GRUB as a bootloader:
Install grub and efiboot manager
pacman -Sy grub efibootmgr
Install grub as bootloader: < boot dir > in our case is /boot
grub-install --target=x86_64-efi --efi-directory=< boot dir > --bootloader-id=GRUB
Configure GRUB
grub-mkconfig -o /boot/grub/grub.cfg
reboot your arch to check for system stability.
Enable and configure Networking
systemctl start systemd-networkd && systemctl enable systemd-networkd
systemctl start systemd-resolved && systemctl enable systemd-resolved
list your network interfaces:
networkctl list
configuring interfaces on DCHP:
vi /etc/systemd/network/10-wired-interface-1.network
[Match]
Name=<interface name>
[Network]
DHCP=yes
restart networking
systemctl restart systemd-networkd && systemctl restart systemd-resolved
Add a user:
useradd -g users -G wheel,storage,power -m paul
passwd paul
set wheel group as sudoers by uncommenting wheel
visudo