Sources used:
# Is this correct?
gpg --keyserver-options auto-key-retrieve --verify <latest-iso>-x86_64.iso.sig <Name of iso??>
# Example for cp in linux
# Do not mount usb drive, instead do an ls in /dev/disk/by-id/ and find the usb stick
# Copy to top level usb drive
# e.g.
cp <iso image> /dev/disk/by-id/usb-something-0\:0
# E.g. for Norway
loadkeys no-latin1
# Password is stored in /var/lib/iwd/<ssid name>.psk
iwctl
device list
station <device,e.g wlan0> scan
station <device> get-networks
station <device> connect <your wifi ssid name>
timedatectl set-ntp true
timedatactl status
fdisk -l (take note of the disk you will be using here)
cfdisk /dev/sd<a|b|c>
# Do not use the number after sd<letter>
# Select dos for BIOS boot with MBR or efi/gpt for UEFI boot
# Make root or efi partition bootable
# Set type swap on swap partition
# Select Write og answer yes
# First list disks to get devicenames and then issue format commands
fdisk -l
mkfs.fat -F 32 /dev/sdxY # If EFI partition
mkfs.btrfs /dev/<root device>
mkswap /dev/<swap device>
mkfs.btrfs /dev/<home device>
If the installation somehow get stuck in a bad state, e.g. you are missing a package, but can connect to the internet to download it, this is where you continue after booting from the ISO image again
mount /dev/<root partition> /mnt
swapon /dev/<swap partition>
# If you created and home partition
mkdir /mnt/home
mount /dev/<home partition> /mnt/home
# If booted with efi
mkdir /mnt/efi
mount /dev/<efi partition> /mnt/efi
pacstrap /mnt base base-devel linux linux-firmware dhcpcd vim man-db man-pages texinfo iwd
genfstab /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Oslo /etc/localtime
hwclock --systohc
en_US-UTF-8 UTF-8
and nb_NO ISO-8859-1
vim /etc/locale.gen
locale-gen
# E.g. for Norwegian formats, but English userinterface
vim /etc/locale.conf
LANG=nb_NO.ISO-8859-1
LANGUAGE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
vim /etc/vconsole.conf
KEYMAP=no-latin1
vim /etc/hostname
myhostname
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 <my hostname.localdomain <my hostname>
systemctl enable dhcpcd
systemctl enable iwd
sudo echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwlwifi11n.conf
passwd
# It is important the the last config step reports that a linux image is found
pacman -S grub os-prober
grub-install /dev/<main device without number>
grub-mkconfig -o /boot/grub/grub.cfg
# It is important the the last config step reports that a linux image is found
pacman -S grub os-prober efibootmgr
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
mkdir /mnt/windows
mount /dev/<windows boot mgr partition> /mnt/windows/
#Add GRUB_DISABLE_OS_PROBER=false to /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
iwctl
station <device> connect <ssid name>
useradd -m <name>
passwd <name>
export EDITOR=vim
visudo
command<user> ALL=(ALL) ALL
pacman -S vivaldi
pacman -S git htop openssh libreoffice-still keepassxc vscode shotwell screenfetch gimp gnome-calculator imagemagick texlive texlive-langeuropean
# Add AllowUsers to /etc/ssh/sshd_config
systemctl enable sshd
pacman -Sy alsa-utils pulseaudio pulseaudio-alsa pulseaudio-bluetooth pavucontrol
Add set bell-style none
to /etc/inputrc