TP-Link Archer T9UH on Manjaro Linux (Arch Linux)
07 Nov 2019, 01:14pm TZ +05:30
It was a Deepawali 2019 purchase for October. But finally arrived in November.
TP-Link Archer T9UH an Excellent low cost AC1900 Dual Band (2.4GHz and 5GHz) WiFi USB 3.0 Dongle
Mine was a V2 version, which I realized later.
Fig: TP-Link Archer T9UH WiFi Dual Band USB 3.0 Dongle
Source: TP-Link Archer T9UH
Let’s look how it faired for me! - without loosing my sleep of it.
May be it might help you in some way.
I had poor WiFi connection on my old Thinkpad W540
. Ya, Its a Thinkpad.
And, yes I am a fan of the old IBM Thinkpads.
In the past I had test out many TP-Link dongles.
There were not many working ones on Arch or even Linux.
One user had suggested on the forums of Manjaro about this. Hence my immediate impatient purchase. Well to my dismay it was not plug-n-play.
So, I found the way around and got it working. Let’s look at how to make this WiFi USB 3.0 dongle to work.
About TP-Link Archer T9UH WiFi USB Adapter #
Here is the Product Page for TP-Link Archer T9UH :
https://www.tp-link.com/in/home-networking/adapter/archer-t9uh/
In the support section we find a guide of linux. This was of no use since they don’t provide the driver source.
I really liked the performance of TP-Link Archer T9UH USB3.0 Dual Band WiFi USB Dongle. Here is a review of the TP-Link WiFi Dongles :
So, I decided to dig a bit deeper.
Note: In my case I had the V2 version of the dongle.
Found the Driver #
After a bit of digging(References below), I found the desired AUR
package.
https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git/
Well, this is a Driver hence we have some preparations that are in order.
1. Compiler and toolchain #
First, We need to have gcc
installed and a tail of tools to help compile drivers.
|
|
Recently I learned that we can do an repository update and install in same command.
Use this new command instead.
|
|
Note: The dkms
would help to dynamically load the new module.
Even though its not compiled into the kernel.
2. Kernel Headers #
Well, people might call it DARK Vooodo magic whenever use kernel
word.
But, thats not always true.
We compiling a Module a.k.a Driver for Windows folks.
Hence we need the OS Header files.
Lets first find out our kernel
:
|
|
This does identify my Manjaro Linux but where is the kernel
!!
Here you go:- 4.19.81-1-MANJARO
The LTS Kernel in November of 2019 = 4.19.81
.
I use the LTS Kernels only.
There is alternative way or GUI-way.
- Open
Manjaro Settings
from menu - Select
Kernel
- Here you can find the running kernel version.
Fig: Manjaro Settings Window
Source: My Thinkpad W540 Manjaro Install
Fig: Manjaro Settings -> Kernel Window
Source: My Thinkpad W540 Manjaro Install
Let’s install the Headers :
|
|
This would install the required Linux Headers.
3. Install AUR Package #
After a bit of hit and trial I found this package does the best.
https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git/
So, let’s do our usual steps:
|
|
Note: This package generation might require dkms
install in case it was missed earlier.
Now Reboot your PC and the TP-Link Archer T9UH WiFi USB 3.0 Dongle will become plug-and-play.
In fact if you carefully following earlier - we have installed rtl88xxau-aircrack-dkms-git
.
Well thats aircrack-ng
kernel.
Aircrack-ng kernel module for Realtek 88XXau (USB adapters only) network cards (8811au, 8812au, 8814au and 8821au chipsets) with monitor mode and injection support
Its an “Aircrack-ng kernel module”. You know what that brings in ;-) All types of Packet injection and penetration testing action is now enabled.
The Dark lord smiles down upon us !! May the Black hat be with you …
I don’t know much of the Security Theater. Those who have friends in this domain ask them
about aircrack-ng
. Best of luck with that !
Note: This installation works for TP-LINK Archer T4U V2. For older V1 use the References below.
References #
- In case you have TP-Link Archer T9UH V1 : Then this one is better
- This one actually lead me to this solution
- This one works for Ubuntu If you need -