-
Download Raspbian Image
-
Write Image to SD Card
- Identify sdcard
diskutil list
e.g.disk4
- Unmount disk before copying
diskutil unmountDisk /dev/disk<disk# from diskutil>
- Copy image to disk
sudo dd bs=1m if=<image-path>.img of=<disk# from diskutil> conv=sync
- Add “SSH” File to the SD Card Root
- Create a file to allow ssh access
touch /Volumes/boot/ssh
- Unmount disk
diskutil unmountDisk /dev/disk<disk# from diskutil>
- Boot your Pi
- Find your Pi’s IP Address
- SSH into your Pi
- username: pi
- password: raspberry
- Configure your Pi
Text-console GUI -
sudo raspi-config
- Configure hostname
echo pihole | sudo tee /etc/hostname
Article: Installing operating system images on Mac OS Article: Headless Raspberry Pi Setup
sudo apt-get install git
git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh