Target audience: McGill students, faculty and staff, researchers
When you boot a Raspberry PI and click on the WiFi logo to connect to the McGill network, you will see that wpa.mcgill.ca
is greyed out.
Follow the steps below to connect to the McGill WiFi. To run these commands, open a terminal window.
sudo nmcli dev wifi
sudo nmcli connection add \
type wifi \
connection.id wpa.mcgill.ca \
wifi.ssid wpa.mcgill.ca \
wifi.mode infrastructure \
wifi-sec.key-mgmt wpa-eap \
802-1x.eap peap \
802-1x.identity firstname.lastname@mail.mcgill.ca \
802-1x.phase2-auth mschapv2 \
802-1x.password <mcgill password>
sudo nmcli dev wifi connect wpa.mcgill.ca
sudo nmcli connection show --active
sudo nmcli connection modify wpa.mcgill.ca connection.autoconnect-priority 100
echo -n plaintext_password_here | iconv -t utf16le | openssl md4
(stdin)= 6602f435f01b9173889a8d3b9bdcfd0b
/etc/wpa_supplicant/wpa_supplicant.conf
. You will have to manually add the WiFi credentials to this file by adding the following:network={
ssid="wpa.mcgill.ca"
scan_ssid=1
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP
eap=PEAP
identity=firstname.lastname@mail.mcgill.ca
password=hash:6602f435f01b9173889a8d3b9bdcfd0b
phase1="peaplabel=0"
phase2="MSCHAPV2"
id_str="mcgill"
}
chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf
chown root:root /etc/wpa_supplicant/wpa_supplicant.conf
cat << EOF >> /etc/dhcpcd.conf
interface wlan0
env ifwireless = 1
env wpa_supplicant_driver = wext , nl80211
EOF
/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
. You will have to search for the one instance of nl80211,wext
and replace it with wext,nl80211
.