Followed instructions from here, with the only differences being I installed the most recent version of arch linux arm for rpi 4 from here and the name of the sd card when plugged into my rpi was not sdb
but sda
. So all refereces were changed accordingly.
https://archlinuxarm.org/wiki/Raspberry_Pi
Do all the below as root, since I'm assuming you don't have internet and therefore no sudo
yet.
- Run
wifi-menu -o
the-o
will...obscure the password, so it's encrypted on disk
- When it asks for a name for the network give it something simple like:
home
- Once you finish there should be a file:
/etc/netctl/home
which has the login info (obscured) - You should be connected to the wifi now, you can check with:
ip a
you should see aninet
section underwlan0
with an ip address
- Enable auto connection at boot with:
systemctl enable [email protected]
- You can check the list of profiles that
netctl-auto
will try to connect to withnetctl-auto list
- You can choose which profile you connect with via:
netctl-auto switch-to <profile_name>
It seems our AT&T router was overwriting /etc/resolv.conf
when the wifi connected. This lead to domain names not getting resolved. After reading the arch wiki for DNS resolution here, I hard-coded the /etc/resolv.conf
file to:
search domain.name
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 1.0.0.1
And then set the file to be write protected from programs as the wiki suggests with:
chattr +i /etc/resolv.conf
Add audit=0
to end of line in /boot/cmdline.txt
pacman -Syu
pacman -S man-db sudo git
Add overscan lines to /boot/config.txt
. See video section of RPi arch wiki for some more details
timedatectl set-timezone America/Chicago
- Add user,
-m
makes a directory under/home
:
useradd -m cary
- Add password, user account doesn't come with a password. Creating the password is interactive:
passwd cary
- Give
sudo
permission: - Run
visudo
as root - Add line:
cary ALL=(ALL) NOPASSWD: ALL
pacman -S xorg-xinit xorg-server xf86-video-fbdev emacs w3m
Add Menlo:
mkdir -p /urs/share/fonts/type1/gsfonts
cd !$
curl -O https://raw.githubusercontent.com/hbin/top-programming-fonts/master/Menlo-Regular.ttf
fc-cache -fv
fc-list