Skip to content

Instantly share code, notes, and snippets.

@0xinterface
Last active July 16, 2021 15:17
Show Gist options
  • Save 0xinterface/e2bfbfee1e02b8d435db511761b4456b to your computer and use it in GitHub Desktop.
Save 0xinterface/e2bfbfee1e02b8d435db511761b4456b to your computer and use it in GitHub Desktop.
Raspberry Pi 3 @HKUST eduroam

Edit /etc/wpa_supplicant/wpa_supplicant.conf

  • requires sudo administrative right
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
  ssid="eduroam"
  scan_ssid=1
  key_mgmt=WPA-EAP
  eap=PEAP
  phase1="peaplabel=0"
  phase2="auth=MSCHAPV2"
  identity="YOUR_ITSC_LOGIN_USERNAME@ust.hk"
  password="YOUR_ITSC_LOGIN_PASSPHRASE"
}

remarks:

In case you use hotpluggable wifi enabled like a usb interface, also add the following to your /etc/network/interfaces file

auto wlan0
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment