Setting up my Raspberry Pi for Raspberry Pi colocation by PCextreme

Setting up my Raspberry Pi for Raspberry Pi colocation by PCextreme.

# Change the root password:
# Full system upgrade:
pacman -Syyu
## Extend the root partition as explained on
fdisk -c /dev/mmcblk0
#   p  d-2  n-p-2  w
# on a newer Arch install, I did:
#   p  d-5  d-2  n-e-[Enter]-[Enter]-[Enter]  n-l-[Enter]-[Enter]-[Enter] w
# Then reboot:
shutdown -r now
# And extend the partition:
resize2fs /dev/mmcblk0p2
# or (on the newer Arch install):
resize2fs /dev/mmcblk0p5
# Install htop and option dependencies:
pacman -S htop lsof strace
# Install screen:
pacman -S screen

Network Setup

Static network setup set up using a custom systemd script /etc/systemd/system/network.service:

Description=Wired Static IP Connectivity

ExecStart=/sbin/ip link set dev eth0 up
ExecStart=/sbin/ip addr add 582.631.871.22/24 dev eth0
ExecStart=/sbin/ip route add default via 582.631.871.1

ExecStop=/sbin/ip addr flush dev eth0
ExecStop=/sbin/ip link set dev eth0 down


Then start, test and then enable the profile (creates a systemd startup entry):

ip link set eth0 down; sleep 1; systemctl start network

# When everything works fine, disable RaspberryPi's standard DHCP config and enable your setup:
systemctl disable dhcpcd@eth0; systemctl enable network

Then set /etc/resolv.conf to your nameservers: nameserver and make it immutable: chattr +i /etc/resolv.conf .


  • Alternative network setup using netctl (not working so far, I prefer the method above for the time being):
  • An older description on how to set up a static IP address on the RPi on Arch Linux ARM can be found here.