LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-22-2014, 04:09 AM   #1
evansd321
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Rep: Reputation: 0
Exclamation TP-Link WN725N not working in Kali Linux, ndiswrapper


Please can someone help me, I purchased a USB wireless (TP-Link WN725N) so I can attach it to my virtual box image of Kali Linix.

I know that Kali sees the device because if I run 'dmesg | grep -i usb' when I plug it in, I see this ...

[ 1775.416492] usb 1-1: new full-speed USB device number 6 using ohci-pci
[ 1775.622213] usb 1-1: New USB device found, idVendor=0bda, idProduct=8179
[ 1775.622221] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1775.622226] usb 1-1: Product: 802.11n NIC
[ 1775.622230] usb 1-1: Manufacturer: Realtek
[ 1775.622234] usb 1-1: SerialNumber: 00E04C0001

So I have downloaded and successfully installed ndiswrapper, I have drivers for my usb wireless adaptor, all the windows versions 86 and 64 bit, but whenever I try install the driver it seems to install but I get an error when I run 'ndiswrapper -m', see below ...

$:/usr/src/ndiswrapper-1.59.tar/Windows/RTWLANE_Driver/Win8X64# ndiswrapper -i netrtwlane.inf

installing netrtwlane ...

$:/usr/src/ndiswrapper-1.59.tar/Windows/RTWLANE_Driver/Win8X64# ndiswrapper -m

adding "alias wlan0 ndiswrapper" to ...
sh: 1: Syntax error: end of file unexpected
couldn't add module alias: at /usr/sbin/ndiswrapper line 825.

Any help would be great
 
Old 02-22-2014, 12:56 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
some questions
What version of Kali?
the current 64 bit is "kali-linux-1.0.6-amd64.iso"
have you read through the kali web site?
Also gone through the "offensive Security " training classes to learn how to use Kali ?

remember that this is a VIRTUAL install and that will be a VIRTUAL !!! wireless and not the REAL WIRELESS hardware
also something to think about with a VM install
a lot of the tools use OpenCL for CPU or CUDA for GPU
so there will be NO support for that

that makes a big difference
something that only takes 15 Min. using 2048 CUDA cores
will take YEARS to run on one cpu

Last edited by John VV; 02-22-2014 at 01:02 PM.
 
Old 02-22-2014, 01:43 PM   #3
evansd321
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 0
Hi there,

The version is kali-linux-1.0.6-amd64.iso

I have been on the Kali website and I could not find anything that helped, I installed the GUI version of ndiswrapper that didnt help.

As for training classes to learn how to use Kali, I have purchased the Kali Linux Cookbook by Willie Pritchett, it's great for training and this is why I want the USB Wireless to work.

What would you recommend I try?

Thanks in advance.
 
Old 02-22-2014, 03:04 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
using the MICROSOFT hardware driver( with ndiswrapper) for real hardware on a VIRTUAL install using VIRTUAL hardware
will not work

set up the bridge in your VM

i would recommend INSTALLING it to the hardware
and not in a VM

vm's are good for somethings but USING something like Kali is NOT one of them

do a real install to the hard drive
 
Old 02-22-2014, 04:43 PM   #5
evansd321
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 0
Ok, that make sense to me, thanks for the advice
 
Old 02-22-2014, 04:53 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867
Quote:
Originally Posted by John VV View Post
using the MICROSOFT hardware driver( with ndiswrapper) for real hardware on a VIRTUAL install using VIRTUAL hardware
will not work

set up the bridge in your VM

i would recommend INSTALLING it to the hardware
and not in a VM

vm's are good for somethings but USING something like Kali is NOT one of them

do a real install to the hard drive
The OP is using an USB device that is passed though to the VM, which means that the OS accesses the real hardware, not virtual hardware.

evansd321, why are you trying to use the Windows driver with ndiswrapper? Usually Realtek provides Linux drivers.
 
Old 02-23-2014, 04:54 AM   #7
evansd321
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks TobiSGD,

I found this driver below for the chipset thats in the USB Wireless device.

http://www.realtek.com.tw/downloads/...Downloads=true

I downloaded it and unzipped it, in the extracted folder containing a file called install.sh, I ran 'chmod a+x install.sh' and ran it but there are some errors at the end, see below, is there another way to install the drivers or have I missed a step?

cc1: some warnings being treated as errors
make[4]: *** [/usr/src/Wireless/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/cmd/rtl871x_cmd.o] Error 1
make[3]: *** [_module_/usr/src/Wireless/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################


Thanks in advance.

EvansD
 
Old 02-23-2014, 11:36 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
did you install all the software needed to build the driver ?

there will be two files called
README and INSTALL
or a folder called "doc"

with the build instructions
also for kernels newer than the older 3.0.2 there might be problems
that driver is for kernels
Quote:
Linux Kernel 2.6.18~2.6.38 and Kernel 3.0.2
Kali 1.0.6 uses the 3.12 kernel

also did you fallow the basic guide on the kali site
http://docs.kali.org/troubleshooting...-driver-issues

Last edited by John VV; 02-23-2014 at 12:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TP-LINK TL-WN725N and Debian Wheezy? dsl_ Linux - Networking 3 12-15-2013 04:51 AM
Wifi Help: Debian 7 and USB TP-Link TL-WN725N lukasbradley Linux - Hardware 2 05-04-2013 11:01 AM
[SOLVED] Ndiswrapper not working on D-Link DWL-G510 on Damn Small Linux LexMK Linux - Wireless Networking 1 11-29-2012 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration