Some notes on getting Arch Linux (my default distro) running (headless) on a Raspberry Pi Zero W and Raspberry Pi 3+
This wonderful computer costs only $10!
curl -O -C - http:...gz
allows continuing an interupted
download. Check the md5sum or sig./boot/config.txt
or /boot/cmdline.txt
were needed for wifi access (but probably would be, to get the serial access working).touch boot/ssh
. See the RPi
docs. However,
this may not actually be necessary with the Arch image.root/etc/systemd/network/wlan0.network
with contents:
[Match]\nName=wlan0\n\n[Network]\nDHCP=yes\n
wpa_passphrase <your SSID> <your PASS> > root/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ln -s /usr/lib/systemd/system/wpa_supplicant@.service root/etc/systemd/system/multi-user.target.wants/wpa_supplicant@wlan0.service
alarmpi
(or just test
likely IPs incrementally with ssh
)ssh alarm@192.168.1.X
. Login: alarm
, password: alarm
, then su
to root, password root
pacman-key --init
and pacman-key --populate archlinuxarm
...rpi-3-latest...
rather than ...rpi-2-latest...
. Note
that curl -O -C - http:...gz
allows continuing an interupted
download. Check the md5sum or sig./boot/config.txt
or /boot/cmdline.txt
were needed.dmesg
. You should be able to access
the serial signals via: screen /dev/ttyUSB0 115200
(using root,
or sudo
). (An ENTER may be needed.)alarm
, password: alarm
, then su
to root, password root
wifi-menu
pacman-key --init
and pacman-key --populate archlinuxarm
Easy! If there is trouble with the serial, find a monitor and HDMI cable.
/boot/config.txt
or
/boot/cmdline.txt
, including switching the main console to
/dev/ttyS0
in /boot/cmdline.txt
(console=serial0,115200
or
console=ttyS0,115200
), as per the RPi
docs. Note
that the Zero W runs fine (powerwise) off the USB power line, so no
additional power supply is needed. So if it was working with
serial, I could just connect the black, white, green pins, establish
a connection with screen
and then plug the red wire into pin 1 to
boot the RPi.ssh
, thanks to this post.journalctl
--file=/MOUNTED_PI/var/log/journal/d0b8...ceb4/system.journal
for
troubleshooting.netctl-auto
to login automatically. Good idea,
but I never got it to work. The above method was easy.