I've downloaded latest Kali Linux (amd64) and installed it on VMware Workstation 10.
After installation I upgraded Kali's kernel headers to the latest version (now I have v3.16).
apt-get update && apt-get install build-essential linux-headers-$(uname -r)
Now I want to install my Alfa-AWUS036H wireless USB device to Kali.
My device chipset is: rt3070. -> ralink (mediatek) company.
I went to MediaTek | RT3070 to download latest version of this chip.
When you check the extracted files of the downloaded driver you see many conditions for kernel 2.4 or 2.6 versions (meaning that it's an old driver and I think should change some code in that project).
Please help me step by step to install my wireless USB device on Kali.
I also found this thread with no help: How do I install the Ralink RT3070 wireless driver?
When should I run this command (and why rt5370sta
instead of rt3070
):
modprobe rt5370sta
What I did
apt-get update && apt-get install build-essential linux-headers-$(uname -r)
I went to this path
/os/linux/config.mk
and changed these lines:HAS_WPA_SUPPLICANT=y HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
I went to this file
/os/linux/rt_linux.c
and changed these lines:/* pOSFSInfo->fsuid = current_fsuid(); */ /* pOSFSInfo->fsgid = current_fsgid(); */ pOSFSInfo->fsuid = *(int *) & current_fsuid(); pOSFSInfo->fsgid = *(int *) & current_fsgid();
I did these changes because of some errors during the
make
command. Did I do that right?make
and its result: http://textuploader.com/o49y
make install
and its result : http://textuploader.com/o49b
My Problems:
After updating Kali's kernel headers and connecting the USB device to Kali I have ERROR for 802.11g WLAN usb wireless driver and nothing happens.
After these commands
make && make install
a file is copied to
/etc/Wireless/RT2870STA/RT2870STA.dat
. WhyRT2870
instead ofRT3070
?
Also I had many warnings about unsigned variable and some errors during installation (before step 3) and because of those warnings and errors I did step 3 and after rebooting and connecting the USB device to Kali I still have ERROR for 802.11g WLAN USB wireless driver and nothing happens.
- Which parts of the driver's project should I change and how can I load the driver?
- Should I load driver manually, or after connecting does it load automatically?
- Should I use x86 OS and change my OS?