How to Install WiFi on Ubuntu-Server 20.04



  Environment
    Device : ONDA V80Plus
      CPU: Intel Z3800
      RAM : 2G
      WiFi Interface : wlan0
    OS : Ubuntu-Server 20.04
    Host : test(192.168.101.99/24)
    AP
      SSID : test
      PW : testtest



1. Install WPA

$ sudo apt install wpasupplicant -y

2. Generate WiFi Setting


$ sudo cp /usr/share/doc/netplan/examples/wireless.yaml /etc/netplan/99_config.yaml
$ sudo nano /etc/netplan/99_config.yaml
Change Configuration
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b1:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.0.99/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [192.168.0.1, 8.8.8.8]
      access-points:
        "network_ssid_name":
          password: "**********"
==>
network:
  version: 2
  renderer: networkd
  wifis:
    wlan0:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.101.99/24]
      gateway4: 192.168.101.1
      nameservers:
        addresses: [192.168.0.210, 8.8.8.8]
      access-points:
        "test":
          password: "testtest"
$ sudo netplan apply