Skip to content

Instantly share code, notes, and snippets.

@AlexLamson
Last active July 8, 2024 05:50
Show Gist options
  • Save AlexLamson/b6812a4e0c3434901750661514a6f9fc to your computer and use it in GitHub Desktop.
Save AlexLamson/b6812a4e0c3434901750661514a6f9fc to your computer and use it in GitHub Desktop.
How to connect to UMass Eduroam wifi with a Raspberry Pi running Raspbian

How to connect Raspberry Pi to UMass Eduroam

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!

@sdub18
Copy link

sdub18 commented Sep 7, 2018

This is great thanks so much

@wong-umass
Copy link

I tried everything and only this one works. Thankyou!!

@Zhaojie-Zhang
Copy link

This is so useful. Thanks a lot!

@suobset
Copy link

suobset commented Mar 8, 2023

This works omg thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment