Download raspbian jessie from https://www.raspberrypi.org/downloads/
Install "The Unarchiver" from the App store, to unzip the image. The standard unzip cannot handle large zip files very well.
Create raspbian image (on a mac):
diskutil list
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=2016-05-27-raspbian-jessie.img of=/dev/rdisk2
Boot the device with this image:
ssh pi@rasberrypi
sudo raspi-config
1 Expand filesystem
.
echo "your-hostname" > /etc/hostname
rm /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade
dpkg-reconfigure tzdata
Get rid of the annoying perl warnings:
sudo vi /etc/ssh/sshd_config
#AcceptEnv LANG LC_*
apt-get install dphys-swapfile
vi /etc/dphys-swapfile
CONF_SWAPSIZE=4000
CONF_MAXSWAP=
swap:
dphys-swapfile setup
dphys-swapfile swapon
reboot