Skip to content

Instantly share code, notes, and snippets.

@mdrxy
Last active July 31, 2024 02:48
Show Gist options
  • Save mdrxy/ddb2ad2b958e5a3266d7cc05cf93c3e3 to your computer and use it in GitHub Desktop.
Save mdrxy/ddb2ad2b958e5a3266d7cc05cf93c3e3 to your computer and use it in GitHub Desktop.
Getting a Raspberry Pi on a College / University WiFi Network

Getting a Raspberry Pi on a College / University WiFi Network

There are many solutions online that require modifying a Pi's wpa_supplicant configuration manually to connect to WPA2-Enterprise networks (which is what Bowdoin College uses - where I am), but this is pretty complex, hard to get right and inflexible when the configuration changes.

The "greyed out" network issue is because the Raspbian desktop comes with its own network managing service that does not support more complex WiFi setups used in enterprise/college/university networks.

There is a simple way to fix this though: instead of using the Raspbian’s integrated network manager, use NetworkManager, which is what's used in most Desktop Linux environments. Get connected to the internet either via hotspot or ethernet and install it by running the following in terminal:

sudo apt update && sudo apt full-upgrade -y
sudo apt install network-manager network-manager-gnome -y
sudo systemctl disable --now dhcpcd

Next, for a Raspberry Pi 4, run:

sudo systemctl enable --now network-manager
sudo reboot

Or alternatively, a Raspberry Pi Zero W 2:

sudo raspi-config nonint do_netconf 2
sudo reboot

It is necessary to disable dhcpcd because it conflicts with NetworkManager (otherwise you’d get a "device not ready" message instead of a list of WiFi networks).

This should now show a new tray icon (to the left of bluetooth) where you can connect to any advanced encryption network, like BOWDOIN. (You should now also remove the old network manager from the menu bar - right click the icon and then select Remove "Network Mananger" From Panel. To be even more precise, remove the spacer after Bluetooth under Panel Settings > Panel Applets).

To connect to BOWDOIN, Use PEAP (Protected EAP) authentication instead of Tunneled TLS, leave anonymous identity and domain empty, check the box for "no CA certificate is required", leave PEAP version as automatic and inner auth as MSCHAPv2. Type in your Bowdoin username and password. (These parameters will likely be different depending on your network configuration).

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