- Root: /dev/sda5
- ESP: /dev/sda2
- Swap (optional): /dev/sda7
Change these details to your own.
Needed* < the asterik means you must do the step
Just repartition your drive, or delete everything
mkfs.ext4 /dev/sda5
mkswap /dev/sda7
If you use the uk keyboard you would use:
loadkeys uk
See the ArchWiki for more info.
At ~, make wpasu.conf:
ctrl_interface=/run/wpa_supplicant
update_config=1
Then run:
wpa_supplicant -B -i interface -c ~/wpasu.conf
After that, use wpa_cli and run:
add_network
set_network 0 ssid "WIFINAME"
set_network 0 psk "PASSWORD"
enable_network 0
save_config
quit
mount /dev/sda5 /mnt
swapon /dev/sda7
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
timedatectl set-timezone Europe/Paris
locale-gen
echo LANG=en_GB.UTF-8 > /etc/locale.conf
export LANG=en_GB.UTF-8
pacman -S networkmanager
echo myarch > /etc/hostname
touch /etc/hosts
pacman -S nano
nano /etc/hosts
Add to nano:
127.0.0.1 localhost
::1 localhost
127.0.1.1 myarch
passwd
pacman -S grub efibootmgr
mkdir /boot/efi
mount /dev/sda2 /boot/efi
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
Aaaand done! Now exit
exit
and reboot
shutdown -r now
after the reboot...
this is optional but you will do it anyways soooo
pacman -S xorg
pacman -S # (de/wm here)
# For a decent DE, choose Gnome. With Gnome, you can skip the next step.
# For a decent WM, choose i3(-gaps)
Change GDM to any other one (LXDM, SDDM, LightDM, etc)
pacman -S gdm
systemctl start gdm.service
systemctl enable gdm.service
Do this with your DE network manager, else use the same steps in 4. Make sure to use this in a terminal:
systemctl enable NetworkManager.service
Do this in a DE, i have no idea how to do it in WMs, else use step 3.
pacman -S nano vim sudo curl git docker etc
useradd username -m -r -p password
su username # changes into user account
pacman -S base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si