Skip to content

Instantly share code, notes, and snippets.

@noah
Created October 4, 2015 22:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noah/a321e50e09e502151f0a to your computer and use it in GitHub Desktop.
Save noah/a321e50e09e502151f0a to your computer and use it in GitHub Desktop.
network config files for raspberry pi USB-N53
pi@host ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
wpa-ssid myessid
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
address 192.168.1.xxx
gateway 192.168.1.x
netmask 255.255.255.0
#####
pi@myhost ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myessid"
psk=mypsk # N.B.: generate this using wpa_passphrase(8) !!!
key_mgmt=WPA-PSK
pairwise=CCMP
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment