How to install TP-Link Archer T2U mini wireless adapter on Ubuntu 20.043 min read

In

I haven’t had  a PC for the last 10 years. I’ve always used laptops because it’s much easier and they give you freedom to work everywhere without almost no limitation except the battery life.
Last week, I got a PC, and I have installed it in my workroom where I work, study and make music (I have been working from home just like everyone else in the world since the outbreak of COVID-19).
The internet modem is a bit far from my room, so it’s not really a solution to use any cables!
I have two laptop and both of them have buit-in WiFi (dual band) which delivers a decent internet speed (check the screenshot):
speedtest-peshmerge-ioIt may not be fast enough for you, but for me, it’s good enough, especially because it’s a wireless connection! My internet subscription from Tele2 is 100Mbps, so getting 95Mbps over WiFi is really good ^_^

Let’s go back to the PC. The PC has no WiFi-adapter, so I had to order a new one. I have ordered TP-Link AC600 (ARCHER T2U, V3) from CoolBlue which is dual band WiFi-adapter! That means it can operate on 5GHz and 2.4GHz networks, and that’s great!

The adapter works fine and doesn’t require any driver installation on Windows 10. Unfortunately, that was not the case on Ubuntu 20.04. Since I use Ubuntu as well on that PC, I also need internet on Ubuntu. The adapter didn’t work out of the box just like it did on Windows 10! To make it even worse, the adapter doesn’t come with any driver installation for Linux. Although CoolBblue claims on their site that it’s compatible with Windows and Linux, I couldn’t find any driver files on the CD that it’s delivered with the adapter. You will find only drivers for Windows and MacOs!

Unfortunately, you won’t find the Linux driver or any other helpful information on the site of TP-Link except a user-guide (Ubuntu 16.04) on how to compile the driver, which is already outdated (palmface).

Here how you can install the driver for your TP-Link Archer T2U mini WiFi-adapter to be able to use it!
Within your Ubuntu terminal (Alt+Ctrl+T) execute following commands:

Install dkms 
sudo apt install dkms 

Clone the repository of RTL8812AU/21AU and RTL8814AU
git clone https://github.com/aircrack-ng/rtl8812au.git

Navigate to the repo’s folder
cd rtl8812au

Install the driver using the following command
sudo make dkms_install
Previously the installation was performed using dkms_install.sh
sudo ./dkms-install.sh

At the end reboot your computer, after that you will see the WiFi icon next the sound volume icon in the upper-right side of your screen! Enjoy 🙂

To ensure the driver is loaded and running. Execute this command from your terminal
dkms status you must rtl8812au there alongside other modules. In my case, I got the following output:
rtl8812au, 5.6.4.2, 5.4.0-37-generic, x86_64: installed

You can remove the folder of the downloaded repo, but you may need it in the future if you want to remove the driver from your pc!
To remove the driver from your pc just execute the following command within the repo folder
sudo make dkms_remove

References:

https://github.com/aircrack-ng/rtl8812au

48 responses

  1. This worked flawlessly, thank you!

    1. Great to hear! Thanks for passing by!

    2. Gaurav Das Avatar
      Gaurav Das

      Help really helped out Thank You! Also the repos rtl8821au and rtl8814au are not available on github, but it didn’t matter in my case I have an archer t2u plus wifi adapter and it worked just fine with rtl8812au.

  2. […] the website is listed below. I used the guide provided in their GitHub page together with a post in peshmerge blog that showed how the adapter can be installed for Ubuntu […]

  3. This was really helpful and got me up and running after banging my head against the driver compilation for several hours. Thanks!

  4. Thanks for the tutorial. I’m trying to do this on an Ubuntu 20.04 installation and I got stuck at “sudo ./dkms-install.sh’. The terminal returns “command not found”. Checking the rtl8812au directory in my home, I can see there is no dkms-install.sh file in there. What am I doing wrong?

    In an effort to try alternatives, I read the instructions on the git page and ran this command: “make && make install”, which is supposed to compile the driver. I don’t know what this did but I don’t have a driver an there still is no “dkms-install.sh” file in that directory. I hope I haven’t made things worse. I really don’t know my way around these commands. Please help.

    1. Hi ANCA,

      I will check it tonight and I’ll return back to you!

      1. Hello Peshmerge,
        Thank you for the post. I’m getting the same problem that ANCA: command not found when “sudo ./dkms-install.sh” is executed

        Please helps!

        1. Hi @RICARDO
          Please check the post again, I have updated it.
          It seems the maintainers of the script have changed the way of installing and removing from .sh file to make files.

          For installing use:
          sudo make dkms_install
          for removing use:
          sudo make dkms_remove

          1. Thanks, @PESHMERGE, working now.

  5. Dude, you simply deleted my comment? Somebody could have helped with an answer. I followed your tutorial and got stuck. Is there something wrong with simply posting my comment?

    1. There is nothing wrong with your comment dude, I was just too busy to look at my blog! My fault 😛

    2. ANCA, please check the updated version of the post!

  6. Thank you very much, this worked for me!

  7. Thanks so much.
    I was stuck for a while using the older instructions.
    Your instructions are clear and showing the previous install command helped .. the lights suddenly went on for me.

    1. Hi Sly,

      I’m glad it helped you 🙂

      Regards,
      Peshmerge

  8. ReginoldA Avatar
    ReginoldA

    @peshmerge! Thanks a lot for this this post. I was wondering how to return this device which I got. But you post saved it! Thanks Mate.

  9. Winston Antony Avatar
    Winston Antony

    @Peshmerge – Thanks a lot for this post. Worked wonderful.

    Only question that I have is that will the driver installation have impact if I update ubuntu os?

    1. Hi Winston Antony,

      What do you exactly mean by “if I update Ubuntu os?” Do you mean upgrading your whole Ubuntu system from for example 18.4 to 20.04?

      Regards,
      Peshmerge

      1. Winston Antony Avatar
        Winston Antony

        @Peshmerge – I meant the regular rolling updates that happen to Ubuntu 20.04, new kernel version updates and also the LTS version upgrade like 20.10 etc

        1. It doesn’t matter! It must continue working as usual! No worries!

  10. Peshmerge, thanks for your post. Since my TP Link connection to Wifi does not currently work, I’m not able to do this step:

    git clone https://github.com/aircrack-ng/rtl8812au.git

    Can I do this on another linux computer and then bring in the driver in on a USB?

    1. Hi Gicky,

      Yes you can do it on another pc and then put it on your machine using a usb flashdrive!

  11. Thank you for providing these instructions. I’ve had times that my WiFi keeps asking me to reauthenticate, it seems like after I restart though it is good for a while. Has anyone else had this? Any troubleshooting tips to try?

    1. Hi JON,

      I’ve had that! Maybe removing it completely and reinstalling it could solve your problem? Honestly, I have no idea :(.

      Good luck with troubleshooting!
      If you found a solution, would you please post it here? I will update my post then with your solution/workaround?

  12. works incredible! thx so much dude!
    Just be careful to maintance about git clone link

  13. christina Avatar
    christina

    This was super helpful. I got this working for my nephew in no time thanks to your help.

  14. Kim Letkeman Avatar
    Kim Letkeman

    Very good post. The instructions work perfectly and I get great speeds on Ubuntu 20.04. Many thanks!

    1. Hi Kim, I am glad to hear that 🙂

  15. thank you! works perfectly!

  16. Bo Madsen Avatar

    Hi
    Thanks for sharing.
    It can’t locate the package/file

    “bo@bo-ThinkCentre-E73:~git clone https://github.com/aircrack-ng/rtl8812au.git  Kommandoen "git" blev ikke fundet, men kan installeres med:  sudo apt install git  bo@bo-ThinkCentre-E73:~ sudo apt install git clone https://github.com/aircrack-ng/rtl8812au.git
    Indlæser pakkelisterne… Færdig
    Opbygger afhængighedstræ
    Læser tilstandsoplysninger… Færdig
    E: Kunne ikke lokalisere pakken clone
    E: Kunne ikke lokalisere pakken https://github.com/aircrack-ng

    Best regards

    Bo

  17. Bo Madsen Avatar

    Hey

    It worked for me too when I used the link to repository and downloaded the zipfile

    Thanks a lot

  18. Great stuff!

    I haven’t a clue what I just did, but I followed the instructions and now I have WiFi! Amazing!

    I totally feel like a hacker now hehe.

    One thing that I had to google was the git clone command, which didn’t work for me, but I found that I had to install git first, with this command – sudo apt-get install git – I’m guessing that it’s a thing that most terminal users already have done, but I said I’d add it here in case there is any other total noobs like me who run into the same issue.

    I bookmarked this page for the next time I reinstall everything.

    Thanks a million.

    1. Hi Steve,

      Your comment makes me very happy! I am very glad this post helped you 🙂

  19. Francisco Avatar
    Francisco

    This fucked my pc!

    1. Hi Francisco, what’s happened?

  20. It worked! Thank you so much for this!

  21. Having just acquired the Archer T2U, for a dual-boot Windows10 and Ubuntu system here in Montana, USA, I’d like thank you for the well-written and organized material you posted. Worked fine for the Ubuntu side of things. Although TN-Link now has the same code posted, yours was better annotated. While I mostly use my Mac/Apple technology, keeping an older HP useful makes this 70 year old feel just a bit less out-of-date.

    1. Hi Mr.Ross,

      I am very happy to hear that I could help you 🙂

      Regards,
      Peshmerge

  22. Tomas Koreiva Avatar
    Tomas Koreiva

    This is just save my life in ubuntu OS i was just about to give up!! Thank you so hard for this article!

    1. Hi Thomas, I am glad it helped you 🙂

  23. Thanks for the article, it’s to the point and has helped me to set-up wifi (2.4 Ghz networks). But, I have a encountered an issue – that 5GHz wifi networks are not visible and hence I am unable to connect.
    Any insights as to what might have happened would be helpful!

    1. Hi Hemant,

      That’s really weird because I am only using the 5GHz wifi network! It works flawlessly with both types!

      Is your 5GHz visible to your smartphone? Check your modem settings, maybe it’s set to be hidden?!

  24. Gregor Avatar
    Gregor

    Hi, followed the instruction and got the WiFi settings option but cannot find any available networks.

    Any idea what needs to be done?

    1. Hi Gregor,
      Glad to hear the blog post helped get things up and running!
      That’s weird! If the adapter is recognized and the driver is installed, it should be able to find all networks! Make sure your network is visible! Or try to remove everything again and reinstall it!
      I have done the process many times on multiple computers, and it has always worked perfectly!

      Would you let me know if you have solved the problem? I like to know what it’s!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.