Created
July 24, 2017 04:59
-
-
Save colus001/789043d7c6261085d14aadd38ef2157a to your computer and use it in GitHub Desktop.
Setup raspberry pi for mac terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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