Try   HackMD

Enable Wi-Fi hotspot in Ubuntu 20.04

System information

System: Ubuntu 20.04.4 LTS
Device: Archer T2U Nano AC600 Nano Wireless USB Adapter
Desktop: xfce

Network interface controller (NIC) driver

# download and install driver $ sudo apt-get install dkms $ git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git $ cd rtl* $ sudo make dkms_install # show searched Wi-Fi $ sudo nmcli device wifi list

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Wi-Fi configuration

  1. Open Network Connections
    • GUI: Setting
      β†’
      Advanced Network Configuration
    • Terminal
    ​​​​username@hostname:~$ nm-connection-editor
  2. Press Ethernet
    β†’
    Add a new connection
    β†’
    select Wi-Fi
    β†’
    Create
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More β†’

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More β†’
  3. Editing Wi-Fi connection
    • Connection Name: Wi-Fi name (display on network connections)
    • SSID: Wi-Fi name (display on available networks)
    • Mode: Hotspot
    • Band: Automatic
    • Device: select available one (default is eth0)
    • Cloned MAC address: Preserve
    • MTU: automatic
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More β†’
  4. Wi-Fi Security (set up password)
    • Security: WPA & WPA2 Personal (select available one)
    • Password: your password
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More β†’
  5. IPv4 Setting
    • Method: Shared to other computers
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More β†’
  6. Enable/Disable Wi-Fi hotspot
$ sudo nmcli connection up/down <SSID>

Other GUI software: Linux Wifi Hotspot

$ sudo add-apt-repository ppa:lakinduakash/lwh $ sudo apt install linux-wifi-hotspot

Connect to Wi-Fi via adaptor

# check Wi-Fi device is enabled or not $ nmcli radio wifi # if Wi-Fi device isn't enabled $ nmcli radio wifi on # show Wi-Fi access points $ nmcli device wifi list # connect to Wi-Fi $ nmcli device wifi connect <Wi-Fi name> password <Wi-Fi password> # connect to Wi-Fi (password won't store in your computer) $ sudo nmcli --ask dev wifi connect network-ssid # disconnect to Wi-Fi $ nmcli con down <Wi-Fi name>

Reference

Ref: Archer T2U Nano AC600 Nano Wireless USB Adapter
Ref: RTL8812AU/21AU Wireless drivers
Ref: TP-Link AC600 Archer T2U Plus driver for Ubuntu 20.04
Ref: Turn on Wi-Fi hotspot using command line on Ubuntu 18.04
Ref: Linux Wifi Hotspot