Raspberry Pi + WiFi setup

Tested on macOS Mojave.


Boot disk

Format SD card (FAT32)

N = disk ID, e.g. disk2. It can be found in Disk Utility.

diskutil eraseDisk FAT32 RASPBERRYPI /dev/diskN

Create Raspbian boot from image on SD card

Unmount the drive.

diskutil unmountDisk /dev/diskN

Download an official image of Raspbian.

sudo dd bs=1m if=/path/to/raspbian.img of=/dev/rdiskN conv=sync

Install Raspbian

Insert the SD card and turn the Raspberry Pi on. Login: pi/raspberry

Enable WiFi

sudo raspi-config

Select Network to set up WiFi.

Enjoy! 🙂