Skip to content

Instantly share code, notes, and snippets.

@GregHilston
Last active April 21, 2019 05:24
Show Gist options
  • Save GregHilston/c6ea3f74c70062e738b4f542a1b18a9c to your computer and use it in GitHub Desktop.
Save GregHilston/c6ea3f74c70062e738b4f542a1b18a9c to your computer and use it in GitHub Desktop.
Add an empty file called "ssh" and this file to the root of your Raspberry Pi SD card to automate the connection to wifi
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid=""
psk=""
key_mgmt=WPA2-PSK
}
@GregHilston
Copy link
Author

This file is to be placed in the boot folder when mounting an RPI sd card.

Note: that on windows, when you mount the sd card, the boot folder is mounted for you, so you can just place these files in the "root"

@GregHilston
Copy link
Author

Its also important to note, the new line characters should be LF and not CR LF...

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