Skip to content

Instantly share code, notes, and snippets.

@tmcolby
Last active May 16, 2019 16:28
Show Gist options
  • Save tmcolby/399c78218ff9b77fed8034349540b24d to your computer and use it in GitHub Desktop.
Save tmcolby/399c78218ff9b77fed8034349540b24d to your computer and use it in GitHub Desktop.
enable wifi connection on raspberry pi

To enable wifi connection (assuming dhcp), enter the following commands from a shell prompt..
cd /etc/wpa_supplicant
wpa_passphrase <some ssid> <some ssid psk> | sudo tee -a wpa_supplicant.conf
echo "country=<some country code - ie: US>" | sudo tee -a wpa_supplicant.conf
sudo wpa_cli -i <your wireless interface - ie: wlan0> reconfigure
Now you can check to see if you get connected...
ifconfig <your wireless interface - ie: wlan0>

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