Installation

Instructions for more CDN:

user:~$ sudo apt install openresolv
user:~$ sudo vim /etc/resolvconf.conf
name_servers=127.0.0.1
# Prevent override by other daemons
resolvconf=NO

Wi-Fi

user:~$ sudo apt install wpasupplicant
user:~$ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
update_config=1
user:~$ wpa_supplicant -B -i wlp3s0 -c wpa_supplicant.conf
user:~$ wpa_cli
wpa_cli v2.10
Copyright (c) 2004-2022, Jouni Malinen <j@w1.fi> and contributors
 
This software may be distributed under the terms of the BSD license.
See README for more details.
 
 
Selected interface 'wlp3s0'
 
Interactive mode
 
> scan
OK
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-NETWORK-NOT-FOUND 
> scan_result
bssid / frequency / signal level / flags / ssid
60:45:cb:8f:82:64	5180	-69	[WPA2-PSK-CCMP][ESS]	sts-0205-5g
a4:b2:39:7f:3d:ee	5540	-58	[WPA2-EAP-CCMP][ESS]	NUS
a4:b2:39:7f:3d:ea	5540	-58	[WPA2-EAP-CCMP][ESS]	eduroam
a4:b2:39:7f:3d:ef	5540	-58	[WPA2-EAP-CCMP][ESS]	NUS_STU
a4:b2:39:61:9f:ea	5320	-60	[WPA2-EAP-CCMP][ESS]	eduroam
a4:b2:39:61:9f:ee	5320	-60	[WPA2-EAP-CCMP][ESS]	NUS
a4:b2:39:61:9f:ef	5320	-60	[WPA2-EAP-CCMP][ESS]	NUS_STU
a4:b2:39:61:d1:4a	5680	-69	[WPA2-EAP-CCMP][ESS]	eduroam
a4:b2:39:61:d1:4e	5680	-69	[WPA2-EAP-CCMP][ESS]	NUS
a4:b2:39:61:d1:4f	5680	-69	[WPA2-EAP-CCMP][ESS]	NUS_STU
a4:b2:39:7f:45:2e	5280	-72	[WPA2-EAP-CCMP][ESS]	NUS
a4:b2:39:7f:14:8c	5260	-73	[WPA2-EAP-CCMP][ESS]	NUS_STU
60:45:cb:8f:82:60	2427	-58	[WPA2-PSK-CCMP][ESS]	sts-0205-24g
a4:b2:39:7f:3d:e5	2412	-70	[WPA2-EAP-CCMP][ESS]	eduroam
> quit
 
user:~$ cat nus.conf
ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="NUS_STU"
    key_mgmt=WPA-EAP
    eap=PEAP
    phase2="auth=MSCHAPv2"
    identity="e01234567"
    password="mypassword"
}
user:~$ cat /etc/network/interfaces
# Wi-Fi network interface
auto wlp3s0
iface wlp3s0 inet dhcp
    wpa-conf /etc/wpa_supplicant/nus.conf

Helpful: