Skip to content

Instantly share code, notes, and snippets.

@Manoj-nathwani
Last active May 29, 2017 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manoj-nathwani/51d312eb20011cd2526024f072a417f9 to your computer and use it in GitHub Desktop.
Save Manoj-nathwani/51d312eb20011cd2526024f072a417f9 to your computer and use it in GitHub Desktop.
Setting up a Raspberry Pi

Download OS from https://www.raspberrypi.org/downloads/raspbian/

Install OS to SD card via https://etcher.io/

Add an empty ssh file to enable ssh by default:

$ touch /Volumes/boot/ssh

Add a wpa_supplicant.conf file:

$ nano /Volumes/boot/wpa_supplicant.conf

With the following text:

network={
    ssid="YOUR_SSID"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}

Unmount the sd card:

$ diskutil unmount /Volumes/boot

Bonus points

SSH into the pi and run:

$ yes | sudo apt-get update
$ yes | sudo apt-get install git
$ yes | sudo apt-get install python-pip

Change ssh password

$ passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment