It was done on the following environment:
- Raspberry Pi 3 Model B
- OS: Ubuntu Core
- Pi is connected to internet via Ethernet
Here are the overview of the steps:
- Install Network Manager using Snap
- Enable the WiFi interface
- Connect to Wifi network WPA2/WEP
- Connect to Wifi network WPA2 EAP
snap install network-manager
Turn on the WiFi interface
network-manager.nmcli r wifi on
And verify the WiFi is on
network-manager.nmcli r
List the available network
network-manager.nmcli d wifi list
Connect to a network
network-manager.nmcli d wifi connect <ssid> password <password>
Verify it is connected to WiFi
network-manager.nmcli c
$ network-manager.nmcli connection edit type 802-11-wireless
nmcli> goto 802-11-wireless
nmcli 802-11-wireless> set ssid <your_ssid>
nmcli 802-11-wireless> back
nmcli> goto 802-11-wireless-security
nmcli 802-11-wireless-security> set key-mgmt wpa-eap
nmcli 802-11-wireless-security> set auth-alg open
nmcli 802-11-wireless-security> back
nmcli> goto 802-1x
nmcli 802-1x> set eap peap
nmcli 802-1x> set identity <your_identity>
nmcli 802-1x> set password <your_password>
nmcli 802-1x> set phase2-auth mschapv2
nmcli 802-1x> back
nmcli> verify
nmcli> save
Saving the connection with 'autoconnect=yes'. That might result in an immediate activation of the connection.
Do you still want to save? (yes/no) [yes] yes
Connection 'wifi' (20e7bab0-6780-45a7-b650-eafb28e7912a) successfully saved.
[Ubuntu Core Documentation]Install NetworkManager
[Ubuntu Core Documentation]Configure WiFi Connections