Skip to content

Instantly share code, notes, and snippets.

@mdrxy
Last active July 31, 2024 02:48
Show Gist options
  • Select an option

  • Save mdrxy/ddb2ad2b958e5a3266d7cc05cf93c3e3 to your computer and use it in GitHub Desktop.

Select an option

Save mdrxy/ddb2ad2b958e5a3266d7cc05cf93c3e3 to your computer and use it in GitHub Desktop.

Revisions

  1. mdrxy revised this gist Jul 31, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pi_university_wifi_network.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Setting up `apcupsd` on a Pi Zero 2 W with a `Back-UPS RS 1000MS`
    # 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.

  2. mdrxy revised this gist Jul 31, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pi_university_wifi_network.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Setting up `apcupsd` on a Pi Zero 2 W with a `Back-UPS RS 1000MS`

    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.
  3. mdrxy renamed this gist Jul 31, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. mdrxy created this gist Jul 31, 2024.
    29 changes: 29 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    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](https://networkmanager.dev/), 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:

    ```sh
    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:
    ```sh
    sudo systemctl enable --now network-manager
    sudo reboot
    ```

    Or alternatively, a Raspberry Pi Zero W 2:
    ```sh
    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).