#!/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