How to install TP-LINK Archer T4U driver?

Please download this file on some other computer and transfer it to the desktop of the subject computer: https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip Right-click it and select 'Extract Here.' Now, in a terminal:

cd ~/Desktop/rtl8812AU_8821AU_linux-master
make
sudo make install
sudo modprobe rtl8812au

Now that we have the wireless working correctly, we'll refine this a bit.

sudo apt-get update
sudo apt-get install dkms
cd ~/Desktop/rtl8812AU_8821AU_linux-master
sudo cp -R . /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms add -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms build -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0

This driver can be installed from the official Ubuntu repositories by

sudo apt install rtl8812au-dkms

Works on Ubuntu 18.04.4 LTS with kernel head v5.3.xxx using this repo. which you will need to git clone into a local folder

https://github.com/EntropicEffect/rtl8822bu

git clone https://github.com/EntropicEffect/rtl8822bu

Make sure you have build-essentials and dkms

sudo apt-get install build-essential dkms

After cloning, cd into that folder and run

cd rtl8822bu
make
sudo make install
sudo modprobe 88x2bu

Then connect to your Wi-Fi (Hopefully, both 2.4GHz and 5GHz should be detectable now)

Next, follow these steps to refine the installation and for an automatic rebuild on Ubuntu kernel image updates

sudo dkms add .
sudo dkms install -m 88x2bu -v 1.1