Skip to content

Instantly share code, notes, and snippets.

@uraimo
Last active December 2, 2021 08:14
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 uraimo/b71bdd9d738ce55b2f037ace15a8fe52 to your computer and use it in GitHub Desktop.
Save uraimo/b71bdd9d738ce55b2f037ace15a8fe52 to your computer and use it in GitHub Desktop.
Config/recover an headless pi wireless

To configure the wireless connection of a newly installed Pi or an old one with an obsolete wireless config, just create a file wpa_supplicant.conf file on the /boot/ fat32 partition with this content:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
country=GB
update_config=1

network={
 ssid="<Name of your wireless LAN>"
 psk="<Password for your wireless LAN>"
}

Start it and wait.

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