wpa_supplicant and WPA enterprise (like eduroam)

Like as wiki (WPA supplicant - ArchWiki) says, anyway you need to install wpa_supplicant.

Then, because Networkmanager can’t handle with eduroam, you’ll start to thinking about connecting to it by hand in midnight.

Write a configration file (eg: /etc/wpa_supplicant/wpa_supplicant.conf) like below:

network={
    ssid="eduroam"
    scan_ssid=1
    key_mgmt=WPA-EAP
    eap=PEAP
    identity="foo"
    password="bar"
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"
}

OK, configuration is done. Let’s up wpa_supplicant.

% wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

… and connect a client to wpa_supplicant.

% wpa_cli
:
:
blah
blah
blah
:
:

You will get a prompt where you put a command.

> list_networks                               # [list_network] is your input
network id / ssid / bssid / flags

0   eduroam any 
> enable_network 0
OK
:
:
blah
blah
:

If you have some configuration other than eduroam in wpa_supplicant.conf, it’s ok. Then you’ll see some networks on list_networks. Disable unneeded one with disable_network m and choose eduroam with enable_network n(if needed).