This is available at: gist
- Download image from http://www.raspberrypi.org/downloads/
- Check where the SD card is mounted
df -h - Unmount SD card
diskutil unmountDisk /dev/disk2 - Write image to card. BE SURE DISK NUMBER IS CORRECT
sudo dd bs=1m if=2014-12-24-wheezy-raspbian.img of=/dev/rdisk2 - Eject card
sudo diskutil eject /dev/rdisk2
-
Add to
~/.ssh/configHost pi Hostname 192.168.1.22 User pi StrictHostKeyChecking no
-
password = raspberry
ssh pi -
ssh-copy-id pi
For raspbian
- Run
sudo raspi-config- Expand filesystem
- Set locales
- Disable GUI
- Enable non-free source in
/etc/apt/sources.list sudo apt-get update && sudo apt-get -y --force-yes upgrade && sudo apt-get -y install firmware-realtek
For minimal image http://www.linuxsystems.it/raspbian-wheezy-armhf-raspberry-pi-minimal-image/
dpkg-reconfigure tzdatadpkg-reconfigure console-datadpkg-reconfigure localessudo apt-get update && sudo apt-get -y upgrade
See here for instructions