Set up eduroam on Linux
You can use these steps to connect a Linux device to eduroam. However, UIS does not provide support for Linux devices.
What you will need
- a Linux device
- an internet connection while completing the setup
- a network access token
- a location where eduroam is available, if you want to test your connection after setup
These instructions have been tested on Ubuntu 26.04. Settings and steps may differ for other versions of Ubuntu and alternative Linux distributions.
Most users can follow these instructions as written. If you have customised your Linux wireless networking configuration, for example by replacing wpa_supplicant with iwd, the eduroam installer may not work as expected.
The setup uses a Python script provided through the eduroam Configuration Assistant Tool (CAT). The script requires Python 3. If these instructions do not work for your device, use the generic eduroam settings instead.
Information about how the script works is available during the download process.
1. Connect to the internet
You need an internet connection while setting up eduroam.
Connect using:
- UniOfCam‑Guest
- another local wifi network
- your home wifi network
- a wired connection
2. Create a network access token
To connect your Linux device to eduroam, you need a network access token.
Create a network access token for your device and keep the token details available. You will need them later in the setup process.
See Create and manage network access tokens.
3. Download the eduroam installer
- Go to cat.eduroam.org.
- Select "Download your eduroam installer".
- Check that 'United Kingdom' is selected next to "Show organisations in".
- Search for "University of Cambridge" if it is not already listed.
- Select "University of Cambridge".
- Select "Download your eduroam installer Linux" and save the file. Make a note of where the file is saved.
4. Run the installer
- Open a terminal window. On many Linux systems you can use Ctrl + Alt + T.
Change to the directory where the installer was downloaded, for example:
cd ~/Downloads
- Install 'dbus-python' and its dependencies if they are not already installed. The installer requires dbus-python.
Ubuntu and other Debian-based distributions
Create a virtual environment and install the required packages:
mkdir -p ~/.virtualenvs
python3 -m venv ~/.virtualenvs/eduroam-installer
source ~/.virtualenvs/eduroam-installer/bin/activate
sudo apt-get install build-essential libpython3-dev libdbus-1-dev
python3 -m pip install dbus-python
Fedora and RHEL-based distributions
The required python3-dbus may already be installed. Fedora and AlmaLinux may include it by default.
If additional packages are needed, you may be able to install them using:
sudo dnf install dbus-devel
This has not been tested.
Other Linux distributions
Install the packages required for dbus-python using your distribution's package manager.
Run the eduroam installer.
If you created a virtual environment in the previous step, make sure it is activated:
source ~/.virtualenvs/eduroam-installer/bin/activate
Then run the eduroam installer:
python3 eduroam-linux-UoC-eduroam_public_CA.py
- When the pop-up information window appears, select "OK".
- When prompted, select "Yes" to continue.
Enter the username from the network access token you created earlier.
Your username should be in the format CRSid+device@cam.ac.uk, for example abc123+laptop2024@cam.ac.uk.
Enter the password for your network access token.
Some browsers can add extra spaces when you copy and paste. If your password does not work, try typing it instead.
- Re-enter your password and select "OK".
- When you see the message 'Installation successful', select "OK".
5. Check that you can connect to eduroam
The exact steps vary depending on your Linux distribution and desktop environment.
On Ubuntu:
- open Settings
- select "Wi‑Fi"
- turn Wi‑Fi on if it is disabled
- check that eduroam appears in the list of available networks
- if eduroam is not already connected, select it
- check the connection using the settings icon next to eduroam
6. Remove UniOfCam‑Guest
If you used UniOfCam‑Guest or another local wifi network during setup, remove it from your saved networks. This helps ensure your device connects to eduroam whenever it is available.
- Open the Activities overview and search for "Wi‑Fi".
- Find "UniOfCam‑Guest" and select the cog icon next to it.
- Select "Forget Connection".
Reinstall eduroam
If you are setting up eduroam again, remove the existing eduroam configuration and any previously downloaded copy of the CAT python script before starting again.
Once you have removed it, follow the instructions on this page to set up eduroam again.
See Fix your wifi connection for more information.
If you cannot connect
See Fix your wifi connection or contact the Service Desk.