1. Go to the following link and download the latest version:
2. List the disk names:
diskutil list
3. The disk must be unmounted before copying the image:
diskutil unmountDisk /dev/diskN
4. Copy the image:
sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskN; sync
5. Check the progress by pressing:
Ctrl+T
6. After the dd command finishes, eject the card:
sudo diskutil eject /dev/rdiskN
7. Boot the Raspberry Pi from the new SD card
8. Do not forget to change the default password:
Username: pi
Password: raspberry
9. Do not forget to change the keyboard and timezone settings:
sudo raspi-config
10. To add the network details to the Raspberry Pi:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
And add the following:
network={
ssid=”Wif-FiName”
psk=”Wi-FiPassword”
}
11. Wait for network (optional):
sudo raspi-config
– Find and select Boot Options.
– Find and select Wait for Network at Boot.
– Select Yes
– Exit
12. Boot/Autologin:
– Console Autologin
13. Ensure everything is up-to-date:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Credits
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md