Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Created May 9, 2016 01:17
Show Gist options
  • Save Tiryoh/dba14e78df905947bcf00d15ce37d815 to your computer and use it in GitHub Desktop.
Save Tiryoh/dba14e78df905947bcf00d15ce37d815 to your computer and use it in GitHub Desktop.
RaspberryPi2_WiFiConfig
#/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
#auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#/etc/wpa_supplicant/wpa_supplicant.conf
update_config=1
network={
ssid="ssid"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="pass"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment