Skip to content

Instantly share code, notes, and snippets.

@scarytom
Created September 1, 2013 11:35
Show Gist options
  • Save scarytom/6403898 to your computer and use it in GitHub Desktop.
Save scarytom/6403898 to your computer and use it in GitHub Desktop.
wireless configuration on raspberry pi

Generating the PSK value for wpa_supplicant.conf

$ wpa_passphrase SSID

# /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="XXX"
psk=YYY
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment