Skip to content

Instantly share code, notes, and snippets.

@jennings
Last active March 3, 2019 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennings/00b2fb7350bdb4b63bb312449fdff882 to your computer and use it in GitHub Desktop.
Save jennings/00b2fb7350bdb4b63bb312449fdff882 to your computer and use it in GitHub Desktop.
Arch Linux ARM setup for Raspberry Pi 3

Write the base image to the SD card

mkfs.vfat on Arch comes from dosfstools (source)

Basic setup

SOME KIND OF PACMAN INIT (https://archlinuxarm.org/forum/viewtopic.php?t=12796)

pacman-key --init
pacman-key --populate archlinuxarm

FULL SYSTEM UPDATE

pacman -Syu

INSTALL STUFF

pacman -Sy htop vim tmux sudo

SET SYSTEM LOCALE TO UTF-8 (https://wiki.archlinux.org/index.php/Locale)

vim /etc/locale.gen  # uncomment en_US.UTF-8 UTF-8
locale-gen
localectl set-locale LANG=en_US.UTF-8

ADD WHEEL TO SUDOERS

visudo
# %wheel ALL=(ALL) ALL

usermod -a -G wheel <username>

Network configuration

CONFIGURE WI-FI

pacman -Sy wpa_supplicant
cat >/etc/wpa_supplicant/wpa_supplicant-wlan0.conf <<END
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
ap_scan=1
country=US
END

wpa_passphrase MY_SSID MY_PASS_PHRASE >>/etc/wpa_supplicant/wpa_supplicant-wlan0.conf

systemctl enable wpa_supplicant@wlan0.service
systemctl enable dhcpcd@wlan0.service
systemctl start wpa_supplicant@wlan0.service
systemctl start dhcpcd@wlan0.service

SET STATIC IP ON WLAN0

cat >>/etc/dhcpcd.conf <<END
interface wlan0
static ip_address=192.168.0.71/24
static routers=192.168.0.1
static domain_name_servers=1.1.1.1 1.0.0.1
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment