I use netctl
and netctl-auto
on Arch Linux and I spent a while getting my
university’s WiFi to connect, so I’m sharing my config here.
- Create this file in
/etc/netctl
.
Description='VIT WiFi'
Interface=wlp2s0
Connection=wireless
IP=dhcp
Security=wpa-configsection
WPAConfigSection=(
'ssid="VITC-HOS2-4"'
'key_mgmt=WPA-EAP'
'eap=PEAP'
'ca_cert="/home/user/.certs/certificate.pem"'
'phase2="auth=MSCHAPV2"'
'identity="YOUR_USERNAME"'
'password="YOUR_PASSWORD"'
)
- Start it with
netctl start <profile name>
.
References: