Headless Raspbian Installation
Following the instructions here:
$ unzip 2012-07-15-wheezy-raspbian.zip
$ df -h
$ diskutil unmount /dev/disk2s1
Volume RASPI on disk2s1 unmounted
$ sudo dd bs=1m if=2012-07-15-wheezy-raspbian.img of=/dev/rdisk2
1850+0 records in
1850+0 records out
1939865600 bytes transferred in 198.319278 secs (9781528 bytes/sec)
$ diskutil eject /dev/rdisk2
Disk /dev/rdisk2 ejected
I had to make one change to the instructions as there was an error: replacing “
bs=1M” with “
bs=1m” due to using a differing version of
Plug that memory card into the raspi and wait a minute, then find the IP (I did this via my router, but could potentially use
ping 192.168.0.255 and see if it responds).
And we have a result!
$ ssh firstname.lastname@example.org
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Type 'startx' to launch a graphical session
NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'
pi@raspberrypi ~ $
raspi-config to change/update the timezone and memory split (less needed for the GUI if running headless), and to also update any packages. Then reboot to get those changes to take effect:
The next thing is to change to the Raspi to a static IP so you can find it any time it restarts or your network connection is dropped. Follow the instructions here. I only altered the
interfaces file to
#iface eth0 inet dhcp
Another reboot to make sure that change takes effect (you could just restart the networking but that failed for me last time meaning I had to plug it in to a monitor to work out what had gone wrong…):
Next, copy over your public key and, as this is fresh install, make
pi@raspberrypi ~ $ mkdir .ssh
pi@raspberrypi ~ $ mv id_rsa.pub .ssh/authorized_keys
Finally, start adding in some packages that make life easier using