Skip to content

Instantly share code, notes, and snippets.

@colus001
Created July 24, 2017 04:59
Show Gist options
  • Save colus001/789043d7c6261085d14aadd38ef2157a to your computer and use it in GitHub Desktop.
Save colus001/789043d7c6261085d14aadd38ef2157a to your computer and use it in GitHub Desktop.
Setup raspberry pi for mac terminal
#!/bin/bash
# Erase SD card
sudo diskutil eraseDisk FAT32 NAME MBRFormat /dev/disk2
# Unmount SD card to build image
sudo diskutil unmountDisk /dev/disk2
# Build boot image
sudo dd bs=1m if=2017-07-05-raspbian-jessie.img of=/dev/rdisk2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment