Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Trying to install driver
Trying to install driver
I'm having nightmares trying to get my wireless USB installed. I'm following the Debian wiki here : https://wiki.debian.org/WiFi
I actually bought the one suggested as having tested drivers, TP-Link TL WN821N - ( that's how desperate i am!)
I've run the commands listed in the guide except apt-get install gcc-6 which is failing with 'Unable to locate package gcc-6' , BUT the 'make' command is working, as is 'make install' - I'm assuming gcc-6 package is there somehow already..?
Still no WiFi, forgive my utter newbieness but there is no modprobe in the guide, how does the module get loaded?
+ having run the 'make install', I'm assuming an executable file is created, which is the executable?
I actually bought the one suggested as having tested drivers, TP-Link TL WN821N - ( that's how desperate i am!)
I've run the commands listed in the guide except apt-get install gcc-6 which is failing with 'Unable to locate package gcc-6' , BUT the 'make' command is working, as is 'make install' - I'm assuming gcc-6 package is there somehow already..?
Still no WiFi, forgive my utter newbieness but there is no modprobe in the guide, how does the module get loaded?
+ having run the 'make install', I'm assuming an executable file is created, which is the executable?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Trying to install driver
Oh dear, bad choicesilas2 wrote:TP-Link TL WN821N
That needs proprietary drivers (which is why you're building them yourself) and it won't work unless the MAC address is randomised, which is just weird.
And the wiki page suggests running make as root, which is just stupid. Don't do that.
Anyway, are you sure the make & make install commands proceeded without error? Did you reboot after installing the new driver?
And are we sure the device needs that driver?
Code: Select all
lsusb
deadbang
- sunrat
- Administrator
- Posts: 6463
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 473 times
Re: Trying to install driver
Assuming 'make install' worked, switch to root with sudo or su - and load the driver with
It should load automatically if the device is detected on bootup. Don't forget to disable mac address randomisation.
That driver can be installed with dkms rather than make, which is better as it automatically rebuilds if a new kernel is installed.
That said, I have a similar TP-Link dongle (TL WN822N v5) which uses the same driver but I never got it to work properly. It would work fine for a while but drop out or disconnect regularly.
Code: Select all
modprobe rtl8192eu
That driver can be installed with dkms rather than make, which is better as it automatically rebuilds if a new kernel is installed.
That said, I have a similar TP-Link dongle (TL WN822N v5) which uses the same driver but I never got it to work properly. It would work fine for a while but drop out or disconnect regularly.
Last edited by sunrat on 2019-09-30 23:46, edited 1 time in total.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 71 times
Re: Trying to install driver
The problem is that there are several revisions of that device. The early ones that used Atheros chipsets worked just fine, but later ones have been real pains in the rear.
MX Linux packager and developer
Re: Trying to install driver
Thanks for all your help. Much appreciated.
I am getting modprobe not found, so I guess its not installed, how do I find out how to install it? I've googled but can't seem to find out - don't want to derail the thread but when you're a beginner nothing works!
Re Head_on_a_Stick : "....how do you know it made ok?..."
Sorry , trying to upload a screenshot but i'm getting "Sorry, the board attachment quota has been reached."
The last line of the 'make' is 'MODPOST 1 module' , is that an error or success? I'm not seeing anything resembling rtl8192eu though.
Re sunrat:
+ do you know how i can install with dkms?
I am getting modprobe not found, so I guess its not installed, how do I find out how to install it? I've googled but can't seem to find out - don't want to derail the thread but when you're a beginner nothing works!
Re Head_on_a_Stick : "....how do you know it made ok?..."
Sorry , trying to upload a screenshot but i'm getting "Sorry, the board attachment quota has been reached."
The last line of the 'make' is 'MODPOST 1 module' , is that an error or success? I'm not seeing anything resembling rtl8192eu though.
Re sunrat:
, I thought I was supposed to Enabled the mac radmonisation.?It should load automatically if the device is detected on bootup. Don't forget to disable mac address randomisation
+ do you know how i can install with dkms?
- sunrat
- Administrator
- Posts: 6463
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 473 times
Re: Trying to install driver
As this is Beginners Questions, you need to learn how to help us help you as so far this is hard to understand.
- post the exact commands you used and resulting terminal output, in a code box. Paraphrasing makes it guesswork for us.
- post the line from lsusb (as requested by HOAS) showing your device so we know your device ID. I assumed that it is a Realtek 8192EU chip as that is likely what a new one is, although they can change between versions.
- no screenshot necessary, copy/paste the text from terminal in a code box.
It's hard to say why you got "modprobe not found" without seeing the exact terminal text. I'm guessing you didn't switch to root correctly. Maybe driver didn't build correctly either.
There are a bunch of other things which may help. Disabling MAC address randomisation is one, blacklisting rtl8xxxu is another. You also need to install firmware-realtek package from non-free repo. See this page for more - https://github.com/Mange/rtl8192eu-linux-driver
The DKMS instructions on that page are for Ubuntu. Here's a quick edit for Debian:
Install DKMS and other required tools
Clone this repository and change your directory to cloned path.
Add the driver to DKMS. This will copy the source to a system directory so that it can used to rebuild the module on kernel upgrades.
Build and install the driver.
If you don't have sudo, use su -c instead.
Note those instructions are for Mange version of driver. I'm not sure of the difference from jeremyb31. Both haven't seen updates for a while.
As mentioned, this can be a bastard of a device to get working. It shouldn't be recommended in the wiki. I also have a TL WN822N V2 which has an Atheros chip and is really easy to get working although it still needs MAC address randomisation disabled.
- post the exact commands you used and resulting terminal output, in a code box. Paraphrasing makes it guesswork for us.
- post the line from lsusb (as requested by HOAS) showing your device so we know your device ID. I assumed that it is a Realtek 8192EU chip as that is likely what a new one is, although they can change between versions.
- no screenshot necessary, copy/paste the text from terminal in a code box.
It's hard to say why you got "modprobe not found" without seeing the exact terminal text. I'm guessing you didn't switch to root correctly. Maybe driver didn't build correctly either.
There are a bunch of other things which may help. Disabling MAC address randomisation is one, blacklisting rtl8xxxu is another. You also need to install firmware-realtek package from non-free repo. See this page for more - https://github.com/Mange/rtl8192eu-linux-driver
The DKMS instructions on that page are for Ubuntu. Here's a quick edit for Debian:
Install DKMS and other required tools
Code: Select all
$ sudo apt install git linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') build-essential dkms;
Code: Select all
$ git clone https://github.com/Mange/rtl8192eu-linux-driver;
Code: Select all
$ cd rtl8192eu-linux-driver;
Code: Select all
$ sudo dkms add .
Code: Select all
$ sudo dkms install rtl8192eu/1.0
Note those instructions are for Mange version of driver. I'm not sure of the difference from jeremyb31. Both haven't seen updates for a while.
As mentioned, this can be a bastard of a device to get working. It shouldn't be recommended in the wiki. I also have a TL WN822N V2 which has an Atheros chip and is really easy to get working although it still needs MAC address randomisation disabled.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Trying to install driver
Ok, followed your instructions, Here's lsusb:
Here's the install:
I just noticed the error but is it just saying the module is already installed? Should I run again with the -force?
I'm still getting no WiFi adapter found - I'm sure the device is alive as I can use it thru Windows (dual boot/multi hard disk machine)
I've still got the line about the MAC randomisation from the wiki
I'm not sure if that's what you think i should have there...?
Code: Select all
silas@debian:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros AR7010+AR9287]
Code: Select all
root@debian:/home/silas/Downloads/rtl8192eu-linux-driver# /usr/sbin/dkms add .
Creating symlink /var/lib/dkms/rtl8192eu/1.0/source ->
/usr/src/rtl8192eu-1.0
DKMS: add completed.
root@debian:/home/silas/Downloads/rtl8192eu-linux-driver# /usr/sbin/dkms install rtl8192eu/1.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' all KVER=4.19.0-6-amd64...............
cleaning build area...
DKMS: build completed.
8192eu.ko:
Running module version sanity check.
Error! Module version v4.4.1_17696.20160509_BTCOEX20160412-0042 for 8192eu.ko
is not newer than what is already found in kernel 4.19.0-6-amd64 (v4.4.1_17696.20160509_BTCOEX20160412-0042).
You may override by specifying --force.
depmod...
Backing up initrd.img-4.19.0-6-amd64 to /boot/initrd.img-4.19.0-6-amd64.old-dkms
Making new initrd.img-4.19.0-6-amd64
(If next boot fails, revert to initrd.img-4.19.0-6-amd64.old-dkms image)
update-initramfs......
DKMS: install completed.
I'm still getting no WiFi adapter found - I'm sure the device is alive as I can use it thru Windows (dual boot/multi hard disk machine)
I've still got the line about the MAC randomisation from the wiki
Code: Select all
sudo kate /etc/NetworkManager/NetworkManager.conf
Append the following:
[device]
wifi.scan-rand-mac-address=no
- sunrat
- Administrator
- Posts: 6463
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 473 times
Re: Trying to install driver
No wonder it's not working, it's an Atheros chip (same as my one actually) not Realtek. The driver for it is already included in the kernel but it needs firmware.
Install firmware-atheros from the Debian non-free repo, add that mac address tweak to Network Manager conf file, reboot and it should work.
Install firmware-atheros from the Debian non-free repo, add that mac address tweak to Network Manager conf file, reboot and it should work.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Trying to install driver
Yeah!!! Thank you very much, its working. I can now move out from the cupboard under the stairs which was as far as my Ethernet cable could reach.
- sunrat
- Administrator
- Posts: 6463
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 473 times
Re: Trying to install driver
Yay! Glad I could help.
It makes it much easier when we know exactly which device it is. You're fortunate to have the older V2 version.
It makes it much easier when we know exactly which device it is. You're fortunate to have the older V2 version.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!