Skip to content

Instantly share code, notes, and snippets.

@ghalusa
Last active August 29, 2015 14:06
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 ghalusa/22cbd7d6c7267f94e475 to your computer and use it in GitHub Desktop.
Save ghalusa/22cbd7d6c7267f94e475 to your computer and use it in GitHub Desktop.
Configuring WiFi on a Raspberry Pi Running Raspbian (Debian)
# Open the networking configuration file using your favorite editor (vi, nano, etc....)
sudo vi /etc/network/interfaces
# Enter the following:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "MYSSID"
wpa-psk "MYSSIDPASSWORD"
# EOF #############################
# NOTE: If your network's SSID is set to hidden, then enter the following, instead of the syntax above:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "MYSECRETSSID"
wpa-psk "MYSSIDPASSWORD"
iface default inet dhcp
# EOF #############################
# Restart the network interface to apply changes without a reboot:
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment