How to get a Raspberry pi to use WiFi to connect to eduroam on a (UK) University Network

This is based on a tutorial from the University of Southampton (YouTube)

To enable eduroam
Open a terminal and type;
sudo leafpad /etc/network/interfaces
 
This will open the interfaces file in leafpad, edit this file to look something like below where we have set wlan0 to use wpa_supplicant
 
# 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 manual
 
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
 
Next, in a terminal type;
sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
 
Edit this file as below
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
 
network={
identity=”username@stir.ac.uk”
password=”your_network_password”
eap=PEAP
phase2=”auth=MSCHAPV2″
ssid=”eduroam”
pairwise=CCMP
key_mgmt=WPA-EAP
}
Reboot the pi and check that wifi is working and you’re connected via eduroam