Raspberry Pi Ubuntu Server 20.04 LTS wifi setting
1. network device list
Ubuntu@ubuntu$ ls /sys/class/net
eth0 lo wlan0
2. network setting file edit
Ubuntu@ubuntu$ sudo vi /etc/netplan/50-cloud-init.yaml
before
=======================================================================================
network:
ethernets:
dhcp4: true
optional: true
=======================================================================================
add
=======================================================================================
network:
ethernets:
dhcp4: true
optional: true
wifis:
wlan0:
optional: true
access-points:
"SSID_NAME":
password: "PASSWORD"
dhcp4: true
=======================================================================================
3. netplan apply
$ sudo netplan apply
or
debug mode apply
$ sudo netplan --debug apply
4. confirm
$ ip a
참조 : https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line