In step 1, let’s check the existing network hardware and find out its name.
$ ls /sys/class/net
eth0 lo wlan0
- Let’s check the network config file
$ ls /etc/netplan
50-cloud-init.yaml
- Let’s register the wifi network
$ sudo edit /etc/netplan/50-cloud-init.yaml
addition to file content
network:
wifis:
wlan0:
optional: true
dhcp4: true
access-points:
"<WIFI SSID>":
password: "<WIFI Password>"
We apply the settings
$ sudo netplan apply
$ sudo reboot
After restarting, if your wifi information is correct and wifi access point is on, the connection will be established.