# 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 ```bash= # 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 ```  ### Wi-Fi configuration 1. Open `Network Connections` - GUI: `Setting`$\rightarrow$`Advanced Network Configuration` - Terminal ```bash= username@hostname:~$ nm-connection-editor ``` 2. Press `Ethernet`$\rightarrow$`Add a new connection`$\rightarrow$ select `Wi-Fi`$\rightarrow$`Create`   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`  4. Wi-Fi Security (set up password) - Security: `WPA & WPA2 Personal` (select available one) - Password: `your password`  5. IPv4 Setting - Method: `Shared to other computers`  6. Enable/Disable Wi-Fi hotspot ```bash= $ sudo nmcli connection up/down <SSID> ``` ### Other GUI software: Linux Wifi Hotspot ```bash= $ sudo add-apt-repository ppa:lakinduakash/lwh $ sudo apt install linux-wifi-hotspot ``` ### Connect to Wi-Fi via adaptor ```bash= # 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](https://www.tp-link.com/us/home-networking/usb-adapter/archer-t2u-nano/) > Ref: [RTL8812AU/21AU Wireless drivers](https://github.com/aircrack-ng/rtl8812au) > Ref: [TP-Link AC600 Archer T2U Plus driver for Ubuntu 20.04](https://askubuntu.com/questions/1376835/tp-link-ac600-archer-t2u-plus-driver-for-ubuntu-20-04) > Ref: [Turn on Wi-Fi hotspot using command line on Ubuntu 18.04](https://askubuntu.com/questions/1164673/turn-on-wi-fi-hotspot-using-command-line-on-ubuntu-18-04) > Ref: [Linux Wifi Hotspot](https://github.com/lakinduakash/linux-wifi-hotspot)
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.