Giter Club home page Giter Club logo

archer-t2u-plus-linux's Introduction

TP-Link Archer T2U Plus a.k.a AC600 High-Gain

  Stargazers repo roster for @nlkguy/archer-t2u-plus-linux  

[Important] this repo is under scrutiny as the driver is not working properly , meantime this is working , this repo will be updated shortly

Table of contents

1) Driver for Debian Based Linux Distros (Ubuntu/Kali Linux)(x86_64
2) Driver for Raspberry Pi (Raspbian OS / Kali)(ARM)
3) Uninstall Driver in Linux
4) Troubleshooting

TP-Link Archer T2U Plus a.k.a AC600 High Gain is a very affordable dual band wireless adapter compatible with kali linux and supports monitor mode , soft AP mode,packet injection etc. it supports both 2.4 GHz and 5GHz band and has a 5dBi Antenna for better signal reception. 2357:0120

Retail Box

Why should i buy this adapter ?

This adapter has a Realtek RTL8821AU Chipset at its heart. RTL8821AU has plenty of developer support in linux community and has driver for Kali linux , Parrot OS .etc Archer T2U Plus is on sale under 15 USD ~ 1000 INR , which is a very affordable price for Beginners in Pentesting. 2357:0120 is the USB ID.

Where to buy

👉 Amazon
👉 Flipkart

Driver for Debian Based Linux Distros (Ubuntu/Kali Linux)(x86_64)

  1. Update the package information :

sudo apt update

  1. Install dkms and git :

sudo apt install dkms git

  1. Install Build Dependencies :

sudo apt install build-essential libelf-dev linux-headers-$(uname -r)

  1. Download the Driver files using git :

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

  1. Navigate to the Downloaded directory :

cd rtl88*

  1. Install the Driver

sudo make dkms_install

if the installation is aborted , check existing dkms modules and uninstall previously installed driver

👉 Uninstall Existing Driver

  1. Check the wireless interfaces by typing iwconfig.

lsusb&iwconfig_result

if you encounter any weird interface name , rename the Wireless interface by following below steps

👉 Change/Rename Network Interface

Driver for Raspberry Pi (Raspbian OS / Kali)(ARM)

  1. Update the package information :

sudo apt update

  1. Install dkms and git :

sudo apt install dkms git

  1. Install Build Dependencies :

For Raspbian OS

sudo apt-get install raspberrypi-kernel-headers

For Kali for ARM

sudo apt-get install build-essential libelf-dev kalipi-kernel-headers

  1. Download the Driver files using git :

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

  1. Navigate to the Downloaded directory :

cd rtl88*

For Raspberry (RPI)

  1. Then run this step to change platform in Makefile, For RPI 1/2/3/ & 0/Zero:

sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile

But for RPI 3B+ & 4B you will need to run those below which builds the ARM64 arch driver:

sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile

In addition, if you receive an error message about unrecognized command line option ‘-mgeneral-regs-only’ (i.e., Raspbian Buster), you will need to run the following commands, then retry building and installing:

export ARCH=arm
sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf

  1. Install the Driver

sudo make dkms_install

Kali-ARM-RPi-Installing

  1. Check the wireless interfaces by typing iwconfig.

👉 Change/Rename Network Interface

Uninstall Driver in Linux

  • check the module name and version using the command sudo dkms status.

    $ dkms status  
    8812au, 5.6.4.2_35491.20191025, 5.10.63+, armv6l: installed  
    rtl8188fu, 1.0, 5.10.63+, armv6l: installed.```  
    
    
  • here module name is 8812au and module version is 5.6.4.2_35491.20191025.

  • use sudo dkms remove <module>/<module-version>.

    $ sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all  
    
    Deleting module version: 5.6.4.2_35491.20191025 completely from the DKMS tree.  
    
    Done.  
    
  • delete this file using sudo rm -rf /var/lib/dkms/8812au/.

Troubleshooting

On Raspberry Pi 4 and Debian 10 image with kernel 5.10.103-v7l+, I get this error.

user@pc:~/rtl8812au $ sudo make dkms_install                    
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025                                        
1dkms add -m 8812au -v 5.6.4.2_35491.20191025                               
                                                                                        
Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
                 /usr/src/8812au-5.6.4.2_35491.20191025
                                               
DKMS: add completed.          
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! echo
Your kernel headers for kernel 5.10.103-v7l+ cannot be found at
/lib/modules/5.10.103-v7l+/build or /lib/modules/5.10.103-v7l+/source.
make: *** [Makefile:1786: dkms_install] Error 1

In my case, there is a build directory, but it was empty. I added a symbolic link in /lib/modules/$(uname -r) to the source files as follows:

rm -r /lib/modules/$(uname -r)/build
ln -s /usr/src/linux-headers-$(uname -r)/ /lib/modules/$(uname -r)/build
make dkms_install # now it works

References

DigitalOcean.com : Sed Stream Editor Basics

archer-t2u-plus-linux's People

Contributors

afeser avatar krishak15 avatar nlkguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archer-t2u-plus-linux's Issues

antiX which is debian based

$ sudo make dkms_install
mkdir: created directory '/usr/src/8812au-5.6.4.2_35491.20191025'
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
/usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' -j2 KVER=5.10.142-antix.2-amd64-smp KSRC=/lib/modules/5.10.142-antix.2-amd64-smp/build.......................(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.142-antix.2-amd64-smp (x86_64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
make: *** [Makefile:1784: dkms_install] Error 10

Adapter is not working on ubuntu 20.04 LTS

I have installed all the drivers for ubuntu 20.04 but it is not working on my system. I also reinstalled it but the same problem is happening. So, help me regarding this.

Unable to connect to Wifi

After the next Ubuntu 20.04 update, wifi no longer connects. There is a list of available wifi, there is a connection indication, but the connection itself does not occur. Everything works on windows 10. Please tell me what can be done

kernel headers not found on pwnagotchi

ERROR:
make dkms_install
mkdir: created directory '/usr/src/8812au-5.6.4.2_35491.20191025'
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
/usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! echo
Your kernel headers for kernel 5.15.44-Re4son+ cannot be found at
/lib/modules/5.15.44-Re4son+/build or /lib/modules/5.15.44-Re4son+/source.
make: *** [Makefile:1790: dkms_install] Error 1

tried the troubleshoot method mentioned but same issue

Memory Requirements

Hey, it looks like my raspberry pi 3b+ with 1 GB memory cannot build the driver because of memory issues.

It stays on overnight without luck, and freezes the ssh session etc.

Is there any other way that skips build stage and directly install the driver?

image

image

Resolution of Ubuntu changed for some reason

Hey, new ubuntu 20.4 user here!
So, Installed the Dirver but immedietly after the resolution changed and stuck at 1024X768 & no other options are available.
Please tell me how to fix this.
Thanks.

Supported OS and Kernel for TPlink t2u monitor mode

Hi,

this is not an issue, just want to seek information on which OS and kernel versions are best to run monitor mode for the TPlink archer t2u dongle.

I need to run monitor mode on VMware, I can run any OS or kernel versions that would suffice.

Thanks,
Shahab

USB Antenna not detected after power loss

Hi,
I use the archer t2u in an embedded application, in which I need to shutdown the Ubuntu 20.04 computer by cutting its power source.

If I cut power like this and then restart, the USB wifi dongle is not detected anymore. The LED of the antenna is not green. It is even not possible to make it work by unplugging and plugging it back. I need to perform several restart to recover it.

However if I do a clean reboot using shutdown/reboot commands, the driver is loaded and is able to detect the antenna successfully straight away.

Any idea of what could be wrong in the loading of the driver at boot ?

Other USB devices are always detected/working no matter how I reboot. Which makes me think it is related to Dmks

Thanks in advance,

Can't install the driver

Im on a kali linux virtual machine

"sudo make dkms_install" gives me this output

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:2303: dkms_install] Error 3

"sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all" gives me this

------------------------------
Deleting module version: 5.6.4.2_35491.20191025
completely from the DKMS tree.
------------------------------
Done.

"sudo make dkms_install" after running "sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all" gives this

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
                 /usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! echo
Your kernel headers for kernel 5.10.0-kali3-amd64 cannot be found at
/lib/modules/5.10.0-kali3-amd64/build or /lib/modules/5.10.0-kali3-amd64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
make: *** [Makefile:2304: dkms_install] Error 1

"sudo make dkms_install" again gives this

mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025
You cannot add the same module/version combo more than once.
make: *** [Makefile:2303: dkms_install] Error 3

"iwconfig" gives this

lo        no wireless extensions.

eth0      no wireless extensions.

Please Help me for this ..

using Kali Linux Nethunter in OnePlus Rooted Device , drivers are installed but not showing "wlan1", i thought kernal version issue can i get drivers for my kernal ?,
using these commands after updating and upgrading pakages ..
Screenshot_20221107-092847

sudo apt install dkms git

preciso baixar 0 B/94,3 MB de arquivos.
Depois desta operação, 325 MB adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] -> clico em sim e e trava em 91%

Media change: please insert the disc labeled
'Ubuntu 22.04.2 LTS Jammy Jellyfish - Release amd64 (20230223)'
in the drive '/media/cdrom/' and press [Enter] clico em enter e fica repetindo para clicar em [Enter]

Sudo make dkms_install error

Error ! DKMS Tree Already contains : 8812au-5.6.4.2_35491.20191025
you cannot add the same module/version combo more than once .
make : *** [ Makefile : 2316 : dkms_install ] error 3

Unable to locate package linux-headers-6.1.0-kali7-amd64

┌──(kali㉿kali)-[~]
└─$ sudo apt install build-essential libelf-dev linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-6.1.0-kali7-amd64
E: Couldn't find any package by glob 'linux-headers-6.1.0-kali7-amd64'

How to fix this? I followed the guide step by step

How can I remove this driver after installing it?

Hi, i have successfully installed this driver in Raspberry Pi 4 running Ubuntu 20.10 64-bit.
But I don't have the wifi adapter, since I decided to go for a later model, (Archer T3U plus).
So i was wondering if i should to prevent any conflict, delete this driver for T2U plus before I install anything else.

Thank you guys... u made the steps very easy to follow..

5.17 Ubuntu Kernel

The drivers don't work for 5.17 kernel is it possible to update to match with upcoming kernels

Monitor mode on TPlink t2u only captures 11bg rates and not 11n

Hi,

I have tried using the Linux driver from this repo on Ubuntu 22 on VMWare with host running Windows 10 and it only captures 11bg rates. I don't even see Beacons coming.
Is there anything wrong in the hardware I have received?
I have also configured the monitor mode in channel-36, still see only 6 mbps packets in 5 GHz.

I have also tried with Kali-22 which comes with default driver for TPlink t2u on VMware, the behavior is identical and it only captures 11bg packets.

Any help here is much appreciated!

Here is a screenshot of the capture
image

Thanks,
Shahab

Error on make install

Error! Bad return status for module build on kernel: 5.15.30-v8+ (aarch64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
make: *** [Makefile:2304: dkms_install] Error 10

Kernel Version 5.10.xx - Driver not working (ARM)

the driver is not working in kernel v5.10.xxx for ARM despite using correct kernel headers
the DKMS install is completed successfully, but the driver refuses to load on startup.
tried in both kali and raspbian (buster).

Connect to network

How do I set the SSID and password for it in my terminal? This is with a raspberry pi 3 with inbuilt WiFi as well as my to link adapter.

Thanks in advance.

kali on raspbi 3 b

I finished the process but know what do I do, I dont see my adapter necessarily

Running into an error after installing driver

When I type: "sudo make dkms_install", I get this:
mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
/usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! echo
Your kernel headers for kernel 5.10.17-v7+ cannot be found at
/lib/modules/5.10.17-v7+/build or /lib/modules/5.10.17-v7+/source.
make: *** [Makefile:2304: dkms_install] Error 1

Where can I find the correct kernel headers?

Is it possible to compile this driver on Android?

Since Android is technically Linux, could you compile this driver on a rooted device and use it with a USB-A to USB-C adapter?

The only thing stopping you is the lack of kernel headers, which I'm not sure where to get. But Raspberry Pi and Kali ARM have their own compatible kernel headers, so could this be possible?

No Support for 5ghz networks?

I've been trying to figure this out for a while and i can't find a solution, my router ONLY has 5ghz support and has zero way of changing it to 2.4ghz is there anything that can be done to fix this or do i need to find a new WIFI adapter?

Orange Pi 3 LTS

Does this adapter work with Orange PI 3 LTS running armbian os? I have already ordered it, so I hope it will also work.

error in make dkms_install

how to fix this??
I can't figure this out, I'm going to explode, please help.
El error viene al hacer el comando make dkms_install
imagen

first I get error 6 but if I repeat the execution of the command I get error 3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.