Configuring DietPi on Raspberry Pi 4 for Eduroam Wi-Fi in a New Country

Hey everyone, I’m new to the DietPi community. I’ve set up a Raspberry Pi 4 (headless) at home with DietPi, running containers on a fixed IP over a wired connection through my Wi-Fi router. Accessing it via SSH was easy, especially after changing the SSH port to 1111 for internet exposure.

Recently, I moved abroad for Erasmus, taking my Pi but leaving behind any displays or keyboards. Now, I’m facing challenges configuring it to connect to Eduroam Wi-Fi, as it requires pre-setup (Eduroam setup guide). I managed a temporary connection by linking the Pi directly to my laptop via an Ethernet cable and setting up a hotspot with my phone. However, I’m unsure how to add the Eduroam network to the Pi and maintain access through my computer once it’s connected to Eduroam.

I aim to configure the Pi as a Wi-Fi router to bypass Eduroam’s restrictions. Any advice or steps on how to achieve this would be greatly appreciated!

TL;DR: Moved abroad for Erasmus, need to connect my headless Raspberry Pi 4 running DietPi to Eduroam without direct access to peripherals. Managed a temporary fix using a phone hotspot. Looking for help to connect to wired Eduroam and then configure the Pi as a Wi-Fi router to use instead of direct Eduroam access.

So you need to decide, do you want connect the Pi to the eduroam Wifi or to the hotspot from your phone (which get’s internet from mobile network).

If you want to get around the restrictions off Eduroam you would need to connect to the phone’s hotspot and you don’t need to config Eduroam. So the phone is the AP and the Pi the client.

If you connect your Pi via wire to eduroam and then make a hotspot - to where your phone connects then - you will still get restricted by eduroam?!
The Pi is the AP and the phone the client.

1 Like

Thanks for the quick reply.
I do not want to use my mobile data from phone, because I do not have that many.

The main thing I want to get around is, that I have to power down my computer every time I do not use the Eduroam WiFi for more than 15 min, otherwise the computer goes to sleep, the Eduroam connection drops and does not get back up for at least 5-10min after trying to again use the internet.

So in short, I do not have any other option than to use the Eduroam wired/wi-fi network, but, I want to make my life easier by bypassing the “no hibernation” rule. But that is only the bonus, the main thing I want is to even connect the PI to the Eduroam network via cable and have access to it.

1 Like

This is a bit independent from dietpi. You’d have to add the necessary configuration in the network file. Change the interface name.
Then edit the wpa-supplicant.

You could also try to use NetworkManager.

2 Likes

Ok, I found a thread in ubuntu forums where they directly apply a config for PEAP auth directly into /etc/network/interfaces, without network manager etc.
https://askubuntu.com/questions/682135/how-to-connect-to-protected-eap-peap-wifi-via-terminal

only difference is, that they use wlan interface instead of eth.

2 Likes

I though this is a WiFi standard for authentication and should not impact Ethernet. Maybe I’m wrong.

Thank you everyone! I will first try the Network Manager way, and report if I have any success.

keep in mind NetworkManager is a conflicting tool for ifupdown we use on DietPi. Usually you should see a related message while installing NetworkManager.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.