Download OS from https://www.raspberrypi.org/downloads/raspbian/
Install OS to SD card via https://etcher.io/
Add an empty ssh
file to enable ssh by default:
$ touch /Volumes/boot/ssh
Add a wpa_supplicant.conf
file:
$ nano /Volumes/boot/wpa_supplicant.conf
With the following text:
network={
ssid="YOUR_SSID"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
Unmount the sd card:
$ diskutil unmount /Volumes/boot
SSH into the pi and run:
$ yes | sudo apt-get update
$ yes | sudo apt-get install git
$ yes | sudo apt-get install python-pip
Change ssh password
$ passwd