Daniel's guide to installing Arch Linux

Initial steps

First set the font and keyboard layout

loadkeys dk
setfont drdos8x16

Using WiFi (optional)

If you are setting up arch on WiFi you will need to connect to a WiFi network using the iwctl command

iwctl
device list

Now you need to find your WiFi network

station wlan0 scan
station wlan0 get-networks

And then connect to it

station wlan0 connect [WiFi name]

Important

Activating NTP

It is important to activate automatic network time synchronization otherwise later steps will not work

timedatectl set-ntp true

Partitioning disks

First you need to find your disk depending on what type of disk it is it might have a different name

fdisk -l
fdisk [disk name] -l

Now you know what the disk is named so now you can begin partitioning if prompted about label type choose gpt

cfdisk [disk name]

Now you need to create two or three partitions one that is 500M EFI system, a linux filesystem that will be your main storage and optionally you can make a linux swap partition

500M EFI system
Linux filesystem
Linux swap