Introduction: Access Eduroam on a Raspberry Pi (in Cambridge)
Accessing the Eduroam WiFi network on a Raspberry Pi is not very intuitive, and it's a question that google is reluctant to provide answers to. In this tutorial, I will show you how to connect your raspberry pi to Eduroam automatically from startup. I'm running Raspbian GNU/Linux 8 (jessie) on a Raspberry Pi 2 model B.
I connected my Raspberry Pi to the Eduroam of Cambridge University. The exact keywords and arguments seem to differ slightly from place to place, so if you're trying to access Eduroam on a Raspberry Pi from elsewhere, then although this Instructables won't provide you with everything you need, it will serve as a useful guide. Try also checking out the sources I've referenced, along with any information which your university IT department provides regarding manually connecting to Eduroam.
My reasons for connecting my Raspberry Pi to Eduroam is so that I can use it as a Twitterbot, scheduled to take pictures at regular intervals and post them on Twitter, using the 'cron' utility, a Raspberry Pi camera and the 'Tweepy' module. My Twitterbot is part of a larger project of a DIY algae growth chamber: stay tuned for more Instructables!!
Step 1: Opening "/etc/network/interfaces"
Open up File Manager, and navigate to "/etc/network". Right click on the file called "interfaces", select "Open With..." go to the "Custom Command Line" tab, and under "Command line to execute:", type in "sudo leafpad". Then press "OK".
Step 2: Editing "/etc/network/interfaces"
Replace the contents of the text file with those shown in the picture (there's no need to worry about lines which start with a '#'). Once finished, save and close the file.
Step 3: Opening "/etc/wpa_supplicant/wpa_supplicant.conf"
Navigate to "/etc/wpa_supplicant". Right click on the file called "wpa_supplicant.conf", and once again select "Open With..." go to the "Custom Command Line" tab, and under "Command line to execute:", type in "sudo leafpad". Then press "OK".
Step 4: Editing "/etc/wpa_supplicant/wpa_supplicant.conf"
Replace the contents of the text file with those shown in the picture. Take care to copy every character exactly (except for "identity" and "password", which you should replace with your own @cam.ac.uk email address and network access token). Make sure not to insert any extra spaces. Once finished, save and close the file.
Step 5: Reboot & Success
Now reboot your Raspberry Pi. Once it reaches the desktop, within a few seconds you should see blue bars in the WiFi icon in the task bar. Check your connection by opening up "Web Browser" and navigating to your favourite website.
Step 6: Sources
- Youtube video by "SotonTRG" on connecting to Eduroam from a Raspberry Pi in the University of Southampton:
- Configuring eduroam on Ubuntu, a guide by the Cambidge University Information Services:
- Forum post by "ergerodr" on raspberrypi.org:
4 years ago
I was following this tutorial navigating in the raspberry pi through PuTTy from a Windows PC (via SSH, if I am not mistaken, with an ethernet cable), and after editing what you have suggested and rebooting I cannot connect anymore to my raspberry :/
I have no monitor to connect to my raspberry, then I do not know how to edit the files back to the previous state.
5 years ago
Works for uni of Leicester at 16/02/18
Just need to use the certificate they provide for linux. I recommend moving it to etc/ssl/certs
5 years ago
Thanks! For Raspbian Stretch (Kernel v3.9) you do not need to do the first steps and only do steps 3 and after. Also for Univ of Sheffield, the settings are similar :
Working at 09/01/18, cheers!
6 years ago
Looks good, thanks for sharing :)