Skip to content

Instantly share code, notes, and snippets.

@primaryobjects
Last active April 4, 2024 14:27
Show Gist options
  • Star 48 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save primaryobjects/f723b966d5f42094619f9c1048c7838b to your computer and use it in GitHub Desktop.
Save primaryobjects/f723b966d5f42094619f9c1048c7838b to your computer and use it in GitHub Desktop.
Steps to Install the TP-Link Archer T4U Plus AC1300 USB WiFi Adapter on Linux Mint
@primaryobjects
Copy link
Author

primaryobjects commented Mar 1, 2021

archer-t4u-plus

@sztomczyk
Copy link

Amazing work! Works also on Ubuntu 20.04.2 x86_64 LTS :)

@jimsoffers
Copy link

Great instructions; clear and concise. FWIW, I had to restart my PC for the change to take effect. Thank you for sharing your work!

@jimsoffers
Copy link

I'm new to Linux... am running Linux Mint 19.3 with kernel 4.15.0-159.167. There is an updated kernel available. Will I have to redo these same steps after updating the kernel?

@primaryobjects
Copy link
Author

I believe updating the kernel is fine. I've gone through several updates already and did not have to reinstall drivers.

@mekanixms
Copy link

great, works on Manjaro 20 as well

@cpsneto
Copy link

cpsneto commented Oct 28, 2021

Hello, thanks for the instructions. Do you know if there is an update for kernel 5.13?

I tried to install following the instructions above and I got the following output after step 2:

"Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=5.13.0-20-generic..............(bad exit status: 2)
ERROR (dkms apport): binary package for 88x2bu: 1.1 not found
Error! Bad return status for module build on kernel: 5.13.0-20-generic (x86_64)
Consult /var/lib/dkms/88x2bu/1.1/build/make.log for more information."

@BryanAlexis19
Copy link

How do I uninstall it? My PC crashed after installing the driver. I use Ubuntu 20.04 kernel 5.11... Now, I have problems to boot my computer :(

@boaz32
Copy link

boaz32 commented Mar 2, 2022

Install Failed:
boaz@ubpc:~/rtl8822bu$ sudo dkms install -m 88x2bu -v 1.1

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=5.13.0-30-generic.............................(bad exit status: 2)
ERROR (dkms apport): binary package for 88x2bu: 1.1 not found
Error! Bad return status for module build on kernel: 5.13.0-30-generic (x86_64)
Consult /var/lib/dkms/88x2bu/1.1/build/make.log for more information.
boaz@ubpc:~/rtl8822bu$

I have no idea what to do or how to find the /var/
Please tell what I need to do to install the driver.

@sztomczyk
Copy link

@boaz32 check this repo and use instructions for kernel 5.11 or later.

repo: https://github.com/fastoe/RTL8812BU

@Ukieman
Copy link

Ukieman commented Mar 13, 2022

I have an Tp-Link Archer T4U running on windows 10 laptop but I'd like to try to use it on my Chromebook. My Chromebook has an Linux development environment where you can run Linux tools, editors, and IDEs. Do you think I can just type your commands in the terminal on my Chromebook to activate the USB adapter?

@primaryobjects
Copy link
Author

primaryobjects commented Aug 26, 2022

Update: for Linux kernel 5.15.0.58-generic and Linux Mint 21 Venessa / Vera

Linux Mint Kernel Cap

Install Steps

Option 1

git clone https://github.com/morrownr/88x2bu-20210702.git
cd 88x2bu-20210702
./cmode-on.sh
sudo ./install-driver.sh
sudo service NetworkManager restart

Option 2

git clone https://github.com/cilynx/rtl88x2bu.git
sudo dkms add ./rtl88x2bu
sudo dkms install rtl88x2bu/5.8.7.1 
sudo service NetworkManager restart

Option 3

sudo git clone 'https://github.com/RinCat/RTL88x2BU-Linux-Driver.git' 
cd RTL88x2BU-Linux-Driver
sudo dkms add .
sudo dkms autoinstall
sudo reboot

After reboot, you should see the TP-Link Archer T4U Plus adapter light-up green and work successfully!

@elkcityhazard
Copy link

just a note for anyone who comes along later, I had to disable secure boot to get this working on 5.15.0-57-generic kernel

@primaryobjects
Copy link
Author

primaryobjects commented Jan 16, 2023

Tested and working on Linux kernel 5.15.0.97-generic and Linux Mint 21.1 Vera.

@themacboy
Copy link

themacboy commented Feb 19, 2023

Option 1:

./cmode-on.sh

not found.

probably current is:

./dkms-make.sh

Thx in advance

@ronlevy917
Copy link

Do you know where to find driver for T4U ac1300 version 5?
I can't find it any where, it will be very helpful if you do

@Catfish1210
Copy link

Just in case anyone needs this
Option 1:
$cd 88x2bu-20210702
$ls -la 88x2bu-20210702
$ ./install-driver.sh
After executing it driver is installed and you will be prompted to edit the config, after that reboot and it should work.

@201580ag
Copy link

Linux 5.15.0.70-generic 및 Linux Mint 21.1 Vera 에서 테스트 및 작업했습니다.

I am using KaliLinux version 2023.2 (kernel version 6.3.0-kali1-amd64)
) On the previously used KaliLinux, it was installed with the command mentioned above, and monitor mode was also activated. However, the KaliLinux 2023.2 (kernel 6.3.0-kali1-amd64) that I am currently using does not work. Please tell me another way
This sentence may be an unstable question using a translator.

@lerori
Copy link

lerori commented Nov 8, 2023

Thank you! Step 2 work fine on Linux Mint 21.2 with 5.15.0-88-generic and adapter Archer T4u V1

@BaGaZaS
Copy link

BaGaZaS commented Nov 24, 2023

It is working on Kernel 6.5.6 on POP OS 22.04
With Option 2

git clone https://github.com/cilynx/rtl88x2bu.git
sudo dkms add ./rtl88x2bu
sudo dkms install rtl88x2bu/5.8.7.1
sudo service NetworkManager restart

Thank you very much

@jbbd2222
Copy link

jbbd2222 commented Jan 2, 2024

Has anyone gotten this to work for Linux Mint 21.2 Cinnamon 5.15.0-91-generic? Mine stopped working after it updated.

@Bec-k
Copy link

Bec-k commented Mar 7, 2024

It is working on Kernel 6.5.6 on POP OS 22.04 With Option 2

git clone https://github.com/cilynx/rtl88x2bu.git sudo dkms add ./rtl88x2bu sudo dkms install rtl88x2bu/5.8.7.1 sudo service NetworkManager restart

Thank you very much

Thank you, this is working on my Raspberry Pi 4 with kernel 6.1.0-rpi7-rpi-v8

@maravento
Copy link

does not work on ubuntu 22.04, Linux 5.17.0-1019-oem x86_64. Thanks for the attempt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment