Raspberry Pi
Setup
Arch Linux
Setup the SD card to contain two partitions using fdisk:
- 100MB (W95 FAT32 (LBA))
- Data
# fdisk /dev/sdcard
## Set up the SD card partitions
# mkfs.vfat /dev/sdcard1
# mkfs.ext4 /dev/sdcard2
# cd /mnt
# mkdir boot root
# mount /dev/sdcard1 boot
# mount /dev/sdcard2 root
# tar -xpf ArchLinuxARM-rpi-latest.tar.gz -C root
# mv root/boot/* boot
# umount boot root
For more information, see http://archlinuxarm.org/platforms/armv6/raspberry-pi
Configuration
Wifi
See Wifi.
Miscellaneous
Control Status LEDs
See: http://www.midwesternmac.com/blogs/jeff-geerling/controlling-pwr-act-leds-raspberry-pi
Mounting /var/log as tmpfs
Append to the /etc/fstab with the following line.
tmpfs /var/log tmpfs nodev,nosuid,mode=0755,size=50m 0 0
This will mount /var/log as a 50MB ramdisk. If your system is using systemd, this will break systemd-journald. To fix it, you will need to create a startup script after the mount has completed that creates the journald's directory in /var/log/journal/.
Reboot the Pi for the changes to take affect, or run mount -a which will mount the ramdisk to /var/log immediately, though you'll need to restart any services that has handles to any files there.
Why would you want to do this? To limit the amount of writes that is made to the SD card to prevent premature wearing.