Skip to content

Instantly share code, notes, and snippets.

@hkennyv
Last active April 9, 2019 18:05
Show Gist options
  • Save hkennyv/0076939527659cb6deae7b867b11688a to your computer and use it in GitHub Desktop.
Save hkennyv/0076939527659cb6deae7b867b11688a to your computer and use it in GitHub Desktop.
headless pi setup

Procedure for headless raspberrypi setup

Once a new raspbian image is flashed onto your microSD card, navigate to the root of the microSD card.

Add a new file with nothing in it to the root directory called "ssh". This can be achieved on unix-like systems using the touch ssh command.

Add a new file to the root directory titled "wpa_supplicant.conf". You can copy and paste the contents of wpa_supplicant.conf into it.

Replace with your network name. Note the double quotation marks around it. Replace with your password. Note the double quotation marks around it.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<YOUR SSID HERE>"
psk="<YOUR PASSWORD HERE>"
key_mgmt=WPA-PSK
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment