Skip to content

Instantly share code, notes, and snippets.

@waywardone
Created September 24, 2019 23:07
Show Gist options
  • Save waywardone/635093961476642c445b4c756c1e6de7 to your computer and use it in GitHub Desktop.
Save waywardone/635093961476642c445b4c756c1e6de7 to your computer and use it in GitHub Desktop.

Hat tip: https://howchoo.com/g/ndy1zte2yjn/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet

For Raspbian Stretch and Raspbian Buster

country=US # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="YOUR_NETWORK_NAME"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}

For unsecured networks

country=US # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev # Include this line for Stretch
network={
    ssid="YOUR_NETWORK_NAME"
    key_mgmt=NONE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment