script added
This commit is contained in:
parent
271e018e88
commit
0414705216
24
eduroam.sh
Executable file
24
eduroam.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# inspired by: https://gist.github.com/AntonFriberg/d1d028c66082889878f1987118a2d251/raw/30b0bad2d133359fadb3f41280094a1c8e26112c/eduroam.sh
|
||||
|
||||
read -p "Enter your student_id (ISIC): " user_id
|
||||
read -sp "Enter your eduroam password: " password
|
||||
|
||||
echo ""
|
||||
|
||||
sudo nmcli connection add \
|
||||
type wifi \
|
||||
con-name "eduroam" \
|
||||
ifname "wlp7s0" \
|
||||
ssid "eduroam" \
|
||||
wifi-sec.key-mgmt "wpa-eap" \
|
||||
802-1x.identity "$user_id@cuni.cz" \
|
||||
802-1x.password "$password" \
|
||||
802-1x.system-ca-certs "yes" \
|
||||
802-1x.domain-suffix-match "cuni.cz" \
|
||||
802-1x.eap "peap" \
|
||||
802-1x.phase2-auth "mschapv2"
|
||||
|
||||
sudo nmcli connection up eduroam
|
||||
|
Loading…
Reference in New Issue
Block a user