Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created May 9, 2017 16:21
Show Gist options
  • Save sebastienblanc/40948b85fddb011c6b63a130f6d1c073 to your computer and use it in GitHub Desktop.
Save sebastienblanc/40948b85fddb011c6b63a130f6d1c073 to your computer and use it in GitHub Desktop.

Change interfaces file:

sudo nano /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
  pre-up wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
  post-down killall -q wpa_supplicant

Then change the config file to have network name and login details hardcoded: sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
  ssid="MyUniversityNetwork (e.g. eduroam)"
  scan_ssid=1
  key_mgmt=WPA-EAP
  pairwise=CCMP TKIP
  group=CCMP TKIP
  eap=PEAP
  identity="MyLoginName"
  password="MyPassword"
  phase1="peapver=0"
  phase2="MSCHAPV2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment