Connecting a Raspberry Pi to Eduroam
[raspberry-pi
]
Connecting to eduroam within Raspbian took a lot more effort than I initially expected. Here are all the changes required, bundled into a script for those, like me, who have shaky hands and a poor track record with typos. For the University of Edinburgh I have found the following to work consistently. Of course, your mileage may vary.
tl;dr
Run this script,
Update
A previous version of this post suggested editing the /etc/networks/interfaces
file, but this appears to be deprecated from Raspbian Jessie onwards. Instead, you should be using DHCPCD configured at /etc/dhcpcd.conf
Configure Eduroam
To configure a Raspberry pi to use eduroam, simply type the following into /etc/wpa_supplicant/wpa_supplicant.conf
UUN
is your username for eduroam or your instituteDOMAIN
is the domain of your institute e.g.ed.ac.uk
PASSWORD
is the password used to sign-in to eduroam.
After that restart dhcpcd
If the wifi doesn’t connect, then there are likely one of two reasons.
- A typo in
UUN
,DOMAIN
orPASSWORD
- Another service or configuration interrupting.
In the second case, set all of the network settings back to default. If you have been doing a lot of editing and can’t get anything to work, it may just be easier to re-install Raspbian.
Configure Eduroam Script
To make life easy, you can copy and paste the following script:
If you connect your Raspberry Pi to your phone, you can also curl this script straight from GitHub with:
Note
The script will overwrite the file: /etc/wpa_supplicant/wpa_supplicant.conf
. Make a backup is necessary.
Thanks to elektronik-kompendium.de whose article was the one that finally explained how to do this. It is linked below, though you may need to polish up your German