Open up a terminal and move into the directory holding the wpa_supplicant config file.
cd /etc/wpa_supplicant
You may want to backup your config file before you do anything just in case.
sudo cp wpa_supplicant.conf ~/Desktop/wpa_supplicant.conf
Open up the wpa_supplicant config file.
sudo nano wpa_supplicant.conf
Edit the config file to look like this (you may have other networks there, it's fine to leave them).
Replace YOUR-ID and YOUR-PASSWORD to your Spire username and password.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
ap_scan=1
network={
ssid="eduroam"
key_mgmt=WPA-EAP
proto=WPA2
eap=TTLS
identity="[email protected]"
password="YOUR-PASSWORD"
phase2="auth=PAP"
}
Kill wpa_supplicant if it is currently running.
sudo pkill wpa_supplicant
Start wpa_supplicant again, now using the new config.
sudo wpa_supplicant -D nl80211 -i wlan0 -c wpa_supplicant.conf
This will sit in the terminal foreground, but should allow you to connect to the internet normally. If you ctrl+C that command and reboot, the Pi should start connecting to eduroam in the background automatically.
Many thanks to @sarnex for helping get this working!
This is great thanks so much