Arch Install Notes

Arch Install Notes #

This is a loosely kept set of instructions and notes I refer to when installing Arch Linux. I try to maintain it so I can rely on a single source for the entire install. For some reason the bootloader setup wasn’t included in the official install guide, so I included that here as well.

this requires ethernet btw

ping archlinux.org

timedatectl set-ntp true

timedatectl list-timezones | grep America

timedatectl set-timezone America/New_York

fdisk -l

fdisk /dev/nvme0n1

Delete all current partitions

Create three new partitions with scheme

	Boot Partition: 512MiB

	Swap Partition: 1024 MiB

	Root Partition: Remainder

mkfs.ext4 /dev/nvme0n1p3

mkswap /dev/nvme0n1p2

mkfs.fat -F 32 /dev/nvme0n1p1

mount /dev/nvme0n1p3 /mnt

mount –mkdir /dev/nvme0n1p1 /mnt/boot

swapon /dev/nvme0n1p2

pacstrap /mnt base linux linux-firmware vim networkmanager

genfstab -U /mnt » /mnt/etc/fstab

arch-chroot /mnt

ls /usr/share/zoneinfo/ (find region) / (find city)

ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

hwclock –systohc

vim /etc/locale.gen

Search for string “en_US” and uncomment that line

locale-gen

vim /etc/locale.conf

LANG=en_US.UTF-8

vim /etc/hostname

hostname

pacman -S grub efibootmgr networkmanager sudo vi

grub-install –target=x86_64-efi –efi-directory=esp –bootloader-id=GRUB

grub-mkconfig -o /boot/grub/grub.cfg

passwd

exit

reboot

remove flash drive

login as root

useradd -m -G wheel -s /bin/bash username

vi /etc/sudoers

Uncomment %wheel line

Now install your desktop environment of choice. Consult reddit.com/r/unixporn

Here are instructions for setting up bspwm. I left these in, but bspwm is no longer my daily driver.

pacman -S xorg-server xorg-xinit bspwm picom sxhkd dmenu (rofi later) alacritty

Xorg :0 -configure

cp /root/xorg.conf.new /etc/X11/xorg.conf

cp /etc/X11/xinit/xinitrc ~/.xinitrc

install -Dm755 /usr/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm/bspwmrc

install -Dm644 /usr/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd/sxhkdrc

You may need to run:

pacman-key –refresh-keys

and

pacman-key –populate

If you see errors pertaining to invalid PGP keys when installing packages