Disclaimer: I am a complete beginner and raspberry pi is the first time I've used 'real' Linux
I have a raspberry pi zero 2 W running Raspberry Pi OS Lite (32bit) and the only way I have of communicating with it is through SSH (I tried using USB and gadget mode, couldn't figure it out/didn't work). Currently I'm connected to it with my iPhone hotspot and that works fine but what I need to do is I need to connect it to my university's eduroam network, I just can't get it to work. Eduroam is a network used by many universities across the world, it uses a username and password instead of just a password. Here's a list of things I've tried:
- Changing wpa_supplicant.conf
I added the following
network={
ssid="eduroam"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="youridentity@youridentitydomain"
password="yourpassword"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
from this thread and then restarted the network interface (sorry if I'm talking with my ass, I got this next step from ChatGPT) using
sudo wpa_cli -i wlan0 reconfigure
and I was met with "FAIL" from the Raspberry Pi. I suspected this wouldn't work since I didn't even see the current network in wpa_supplicant (my iPhone hotspot) nor even a country code.
- Stop network manager and manually starting wpa_supplicant (after editing it) I asked ChatGPT about this since I couldn't find anything on google and it recommended the following steps:
- sudo pkill wpa_supplicant
- sudo rm /var/run/wpa_supplicant/wlan0
- sudo systemctl stop NetworkManager
- sudo systemctl disable NetworkManager
- sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Since I would be disconnected from the network (my only mode of communication) I put this into a .sh file and ran it. I waited a while and connected to the eduroam network on my laptop (windows 11) and tried connecting to the pi both with ssh in command prompt and putty using raspberrypi.local as the host name (same hostname as I used to connect through my hotspot) but no such host was found.
- Steps taken in this post
I really don't know what to do anymore, google gives me nothing and ChatGPT goes in circles. I would really appreciate if anybody has encountered a similar problem and knows of a solution :)
Please let me know if there is anything I should add/change/remove about this post
P.S. There might be some other smaller things I've tried, I can't remember since I've been all over the place with this problem for a couple of days so I apologize if you post a solution I've already tried
TLDR;
-Raspberry Pi zero 2 W
-Raspberry Pi OS lite 32bit
-Only way of current communication is ssh through my iPhone hotspot
-I need to connect to 'eduroam' university network.
-wpa_supplicant doesn't seem to be used.