How to connect to eduroam wifi?

Post Reply
Message
Author
endaoggl
Posts: 1
Joined: Sun 21 Sep 2014, 15:46

How to connect to eduroam wifi?

#1 Post by endaoggl »

Hello, I am a beginner in Lucid Puppy. Recently I have been trying different solutions on the web to connect to eduroam wifi. Usually when connecting to eduroam it requires a username and a password. Does anyone have any experience in connecting to eduroam? Thank you. :D

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

The alternate connection manager here supports eduroam. You will create a profile using PEAP, then manually edit it to insert your username and password.

stemsee

#3 Post by stemsee »

Try this yad gui for eduroam

Code: Select all

#!/bin/sh
# Script by stemsee, connects a linux system to dual phase security wifi
# network, and retains details across reboots of last used network.
# Developed on puppy linux which is always root.
# [ /tmp/wpa_supplicant.conf ] && rm -f /tmp/wpa_supplicant.conf
connectfn () {
. $HOME/.eduwifi
echo "ctrl_interface=/var/run/wpa_supplicant
update_config=1
fast_reauth=1
ap_scan=1

network={
    ssid='$ssid'
    proto=RSN
    key_mgmt=WPA-EAP
    pairwise=CCMP
    eap=PEAP
    phase2='auth=MSCHAPV2'
    identity='$identity'
    password='$password'
}
" > /etc/network-wizard/wireless/wpa_profiles/eduroam.conf
cat /etc/network-wizard/wireless/wpa_profiles/eduroam.conf | tr "'" '"' > /etc/network-wizard/wireless/wpa_profiles/eduroam.conf1
mv /etc/network-wizard/wireless/wpa_profiles/eduroam.conf1 /etc/network-wizard/wireless/wpa_profiles/eduroam.conf
[[ /var/run/wpa_supplicant/"$interf" ]] && rm -r /var/run/wpa_supplicant/"$interf"
wpa_supplicant -Dwext -i "$interf" -c /etc/network-wizard/wireless/wpa_profiles/eduroam.conf -B
sleep 1
dhcpcd -L &
exit 0
}

killall dhcpcd
sleep 1yt
if [ -e $HOME/.eduwifi ]; then
. $HOME/.eduwifi
input=`yad --title "Eduroam University WiFi Connection Tool:" \
 --text="Your University id:=$identity
 Your University password:=$password
 Interface:=$interf
 Use these settings: yes or no" --entry`
echo $input
fi
reuse=`echo $input | cut -f4 -d '|'`
case $reuse in
	yes) connectfn;;
	no) input=`yad --title "Eduroam University WiFi Connection Tool:" \
--form --field="Your University id:" -text "abc123" -entry \
--field="Your University password" -text "aBcD3210" -entry --field="Interface:" -text "wlan0" -entry`
ssid=eduroam
identity=`echo "$input" | cut -f1 -d '|'`
password=`echo "$input" | cut -f2 -d '|'`
interf=`echo "$input" | cut -f3 -d '|'`
echo "ssid=$ssid
identity=$identity
password=$password
interf=$interf" > $HOME/.eduwifi
connectfn
;;
esac

if [ ! -e $HOME/.eduwifi ]; then
input=`yad --title "Eduroam University WiFi Connection Tool:" \
--form --field="Your University id:" -text "abc123" -entry \
--field="Your University password" -text "aBcD3210" -entry --field="Interface:" -text "wlan0" -entry`
ssid=eduroam
identity=`echo "$input" | cut -f1 -d '|'`
password=`echo "$input" | cut -f2 -d '|'`
interf=`echo "$input" | cut -f3 -d '|'`
echo "ssid=$ssid
identity=$identity
password=$password
interf=$interf" > $HOME/.eduwifi
connectfn
fi
Last edited by stemsee on Mon 21 Mar 2016, 22:27, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

There are many different ways to authenticate to an Eduroam server, so there are many variations of the wpa_supplicant.conf. The script locks you into just one permutation. The more flexible solution is PWF. See above.

Post Reply