RbPi Archlinux setup

After a fresh image:

  • attach ethernet cable, hdmi, keyboard, mouse, power
  • login as root:root

Setup Wifi and/or Ethernet:

  • Ethernet
    • add a "TimeoutDHCP=20" option to the end of the /etc/netctl/ethernet-dhcp file
  • Wifi
    • append to /etc/../wpa_supplicant.conf:
    • network={
    • ssid="wifi_name"
    • psk="wifi_key"
    • }
    • /usr/bin/ip link set wlan0 up
    • /usr/bin/wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext
    • /usr/bin/dhcpcd wlan0
      • OPTIONAL: You may want to install wireless config later:
      • pacman -Sy iw

Update package manager:

  • pacman -Syu

OPTIONAL: Audio, although its kind of crappy to use audio out:

  • install and setup audio output:pacman -S alsa-utils alsa-firmware alsa-lib alsa-plugins
  • set output to audio out: amixer cset numid=3 1
  • 0 for auto, 3 for hdmi

Install other required software:

  • pacman -Sy python2
  • pacman -Sy git

TODO: Grab code from git which could do the rest of the setup

TODO: Enter personalized configuration

Create a rc.local in /etc:

/usr/bin/sleep 10

create a /usr/lib/systemd/scripts/rclocal.service:

[Unit]

Description=Traditional rc.local

[Service]

Type=oneshot

ExecStart=/bin/sh -c "/etc/rc.local"

[Install]

WantedBy=multi-user.target

chmod +x rclocal.service

systemctl enable /usr/lib/systemd/scripts/rclocal.service