I am trying to use my raspberry pi 3 on the eduroam network. I found quite a few post on how to do this. The first step mentions editing /etc/network/interfaces Mine originally looked like:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
and I have added the following lines:
iface wlan0 inet dhcp
pre-up wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
post-down killall -q wpa_supplicant
Then I added my new network to /etc/wpa_supplicant/wpa_supplicant.conf
However I am unable to connect or restart wifi after this modification.
If I run
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
I get the following error:
Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Is wpa_supplicants not used anymore? What cleanup is required? Is there an easier way to connect to eduroam?
reading through the link on setting up WIFI it is mentioned:
wpa_supplicant-"$interface".conf in /etc/wpa_supplicant/ e.g. wpa_supplicant-wlan0.conf will only be used by wlan0
so I copied my wpa_supplicant.conf to wpa_supplicant-wlan0.conf and removed my modifications to
/etc/network/interfaces and after rebooting am able to automatically connect. This is a much simpler solution.