From 0414705216683be541d69f146048b9930613e1c6 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Thu, 8 Dec 2022 17:39:16 +0000 Subject: [PATCH] script added --- eduroam.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 eduroam.sh diff --git a/eduroam.sh b/eduroam.sh new file mode 100755 index 0000000..11e98b9 --- /dev/null +++ b/eduroam.sh @@ -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 +