Trouble installing wifi driver

If it doesn't relate to Debian, but you still want to share it, please do it here

Trouble installing wifi driver

Postby Archer23 » 2017-04-05 04:58

Super new to Kali Linux.

I'm trying to get a driver installed for a USB Wifi adapter. I unpacked the file and try to
make clean
make
then this:

Code: Select all
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make clean
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# sudo m-a prepare
Getting source for kernel version: 4.9.0-kali1-686-pae
apt-get install linux-headers-4.9.0-kali1-686-pae
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-kali1-686-pae
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali1-686-pae'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali1-686-pae'
apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.9.0-kali1-686-pae/build M=/root/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51  modules
make[1]: *** /lib/modules/4.9.0-kali1-686-pae/build: No such file or directory.  Stop.
Makefile:1529: recipe for target 'modules' failed
make: *** [modules] Error 2
Archer23
 
Posts: 1
Joined: 2017-04-05 04:53

Re: Trouble installing wifi driver

Postby Dai_trying » 2017-04-05 05:39

This post should help you, it's a sticky on the Kali linux forum.
Dai_trying
 
Posts: 193
Joined: 2016-01-07 12:25

Re: Trouble installing wifi driver

Postby steve_v » 2017-04-05 06:28

Archer23 wrote:Kali Linux.
Kali != Debian. :roll:
At a guess, Kali does something stupid with their kernel headers.
I hope you know what you are doing, Kali is not a desktop distro, and certainly not meant for noobs.

Dai_trying wrote:This post should help you.
You are far more charitable than I. :twisted:
I thought we sent all the Kali users back to the appropriate forum some time ago. Yet still they come.
steve_v
 
Posts: 437
Joined: 2012-10-06 05:31
Location: New Zealand

Re: Trouble installing wifi driver

Postby dasein » 2017-04-05 13:12

steve_v wrote:I thought we sent all the Kali users back to the appropriate forum some time ago. Yet still they come.

Two words: Mister Robot
User avatar
dasein
 
Posts: 7379
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Trouble installing wifi driver

Postby stevepusser » 2017-04-05 17:34

And the moderators of the Kali forum often don't even let questions like this get posted there. We could be nice and see if our Debian knowledge works to help this poster.

So Archer, you don't have the headers for your kernel installed. Perhaps Kali has updated their kernel and no longer have the older headers in their repo. Could you try

Code: Select all
apt update
apt upgrade


and see if that fixes the "m-a prepare" issue?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.4, Pale Moon 27.3.0, Liquorix kernel 4.11-4, mpv 0.25.0, Kodi 17.1, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8231
Joined: 2009-10-06 05:53

Re: Trouble installing wifi driver

Postby GarryRicketson » 2017-04-05 19:37

At least Stevepusser, seems to know the answer, if it was Debian,
and it might work, but I wonder if the OP is aware of this,:
http://docs.kali.org/introduction/should-i-use-kali-linux
2.Network services disabled by default: Kali Linux contains systemd hooks that disable network services by default. These hooks allow us to install various services on Kali Linux, while ensuring that our distribution remains secure by default, no matter what packages are installed. Additional services such as Bluetooth are also blacklisted by default.

and the link: disable network services
Kali Linux is a penetration testing toolkit, and may potentially be used in “hostile” environments. Accordingly, Kali Linux deals with network services in a very different way than typical Linux distributions. Specifically, Kali does not enable any externally-listening services by default with the goal of minimizing exposure when in a default state.

It seems to me like the OP would be better off asking them at the kali forum, to get the details, on this , because, "Kali Linux deals with network services in a very different way than typical Linux distributions."
So there may be some other "hoops" to jump through even if the OP manages to
install the driver.
The link Dai_trying posted, looks like they do accept questions on this, :
But they expect the person to read another "tutorial" first,..the link is on
the stickied thread.
To read the full document, check our Troubleshooting Wireless Drivers article.

If you have any issues with this procedure, please post them in this thread.

Not trying to tell anybody what to do or not to do, but if it was me, I would be asking them, if I could not figure it out on my own.
=====
Disclaimer: If any body is offended in some way by my post, or something I said,
I apologize, I do not intend to do that. In any event , if anyone has a problem with my post, please use the report button, or PM me, instead of disrupting the thread.
Thank you
User avatar
GarryRicketson
 
Posts: 3870
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Trouble installing wifi driver

Postby Bulkley » 2017-04-05 20:36

Kali use comes under the category of if you have to ask you shouldn't be using it. Kali is aimed at elite troubleshooters who already know how to use all the tools. For the rest of us it is way too much trouble.
Bulkley
 
Posts: 5104
Joined: 2006-02-11 18:35


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable