ALFA-AWUS036H - ALFA-AWUS050NH
Installing drivers RTL8187, r8187, rt2800usb on Ubuntu Jaunty and Lucid
(Default Kernel and fresh installation)
Note for Jaunty:- For surfing Internet with ALFA-AWUS050NH with rt2870sta driver, you must use the Kernel "2.6.28-11-generic #42-Ubuntu", without change or updates the drivers modules.
Note for Ubuntu Lucid:- For surfing Internet with ALFA-AWUS050NH on Lucid you must use the RT2870sta.
Driver RTL8187/Stacks-mac80211 (ref. ALFA-AWUS036h) - These drivers, for
surfing Internet, are more stable than r8187, and fully compatible with Network-Manager installed by default on Ubuntu 9.04/9.10 and 10.04.
- Supports all encryption without problems. (OPEN, WEP and WPA/WPA2)
- With Compat-Wireless, the "injection" working, but for support “Fragmentation attack” (opt. -5) you need to install mac-80211 fragmentation patch.
- The RX sensitivity and packets injection is less, related to drivers r8187.
Driver r8187/Stacks-ieee80211 (ref. ALFA-AWUS036h) - This driver is
recommended for use with the Suite of Aircrack-ng, but not particularly suitable for Internet connections, as less stable and discontinuous at regular intervals.
- The r8187 is compatible with Network-Manager 0.7, installed by default on Ubuntu 9.04/10.04, and supporting the encryption OPEN and WEP (not WPA/WPA2)
- To establish links with WPA/WPA2 encryption, require a manual set-up.
- The "injection" and all "attacks" of Aireplay-ng, are supported after installing the appropriate "patch".
(for other info read the Wiki:
http://aircrack-ng.org/doku.php?id=r8187)
IMPORTANT NOTE related to Ubuntu Lucid: at the moment a new bug does not allow Internet connections; when acquired the IP address the System freezes. (for surfing Internet use RTL8187 driver)
Driver rt2800usb/Stacks-mac80211 with Kernel 2.6.28-11-generic (ref. ALFA-AWUS050NH)- This driver is
NOT fully supported but with Compat-Wireless, the "injection" work partially and supported 4 "attacks" of Aireplay-ng.
- Compatible with "Macchanger".
- The RX sensitivity and packets injection
is less, related to ALFA-AWUS036H.
- The rt2800usb at the moment do not allow Internet connection. (for this purpose use latest RT2870sta driver)
Update your OS and install these ESSENTIAL and recommended package BEFORE proceedingsudo dpkg --configure -a && sudo apt-get install -f && sudo apt-get update
sudo apt-get install linux-headers-$(uname -r) build-essential make patch gettext python-psyco autoconf subversion tcl8.5 openssl libssl-dev libnl1 libnl-dev cracklib-runtime python-scapy macchanger-gtk tshark
Upgrading/installing tool "IW" (necessary for use Stacks-mac80211 interface management)sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://wireless.kernel.org/download/iw/iw-0.9.20.tar.bz2
sudo tar jxvf iw-0.9.20.tar.bz2
cd iw-0.9.20
sudo make
sudo make install
Step ONLY for ALFA-AWUS050NH NOT present the RT2870 Firmware.(
not necessary on Jaunty/Karmic/Lucid because is already installed)
For check Firmware:jano:~$ ls -l /lib/firmware/rt2870.bin
-rw-r--r-- 1 root root 4096 2009-04-02 23:46 /lib/firmware/rt2870.bin
For Installing Firmware:sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://www.jano.netsons.org/wardriving/driver-patch/RT2870_Firmware_V8.zip
sudo unzip RT2870_Firmware_V8.zip
sudo cp RT2870_Firmware_V8/rt2870.bin /lib/firmware/$(uname -r)
Installing Compact-Wireless + patch mac-80211 on Ubuntu Jaunty
(for use ALFA-AWUS050NH with rt2800usb and ALFA-AWUS036H with RTL8187 driver)
NOTE: this version of Compat-Wireless is compatible only on Ubuntu Jaunty or BackTrack 4.echo "blacklist rtl8187" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist mac80211" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist r8187" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist rt2870sta" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist rt3070sta" | sudo tee -a /etc/modprobe.d/blacklist.conf
echo "blacklist rt2800usb" | sudo tee -a /etc/modprobe.d/blacklist.conf
----------------------------------------------------------------------------------------------
sudo rmmod rtl8187 mac80211
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://download.aircrack-ng.org/drivers/compat-wireless-aircrack-alfa036h-050nh.tar.bz2
sudo tar jxvf compat-wireless-aircrack-alfa036h-050nh.tar.bz2
cd compat-wireless-aircrack-alfa036h-050nh
sudo wget http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
cat mac80211_2.6.28-rc4-wl_frag+ack_v3.patch | patch -p1
sudo make
sudo make install
sudo make unload
New package already patched for Ubuntu Jaunty:
(for drivers rtl8187, zd1211rw, iwl3945, ath5k, rt73usb, partially injection for rt2800usb)http://jano.homelinux.net/wardriving/driver-patch/compat-wireless-aircrack-jaunty-patched.tar.bz2Here are the tests: http://forum.aircrack-ng.org/index.php?topic=5755.msg38387#msg38387sudo rmmod rtl8187 zd1211rw mac80211 cfg80211
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://jano.homelinux.net/wardriving/driver-patch/compat-wireless-aircrack-jaunty-patched.tar.bz2
sudo tar jxvf compat-wireless-aircrack-jaunty-patched.tar.bz2
sudo make
sudo make install
sudo make unload
Installing Compact-Wireless patched on Ubuntu Lucid
(for drivers rtl8187, zd1211rw, iwl3945, ath5k, rt73usb, rt2800usb)
New package already patched for Ubuntu Lucid:
(for drivers rtl8187, zd1211rw, iwl3945, ath5k, rt73usb, partially injection for rt2800usb)
(include the patch to fix the problem in Airodump-ng --> "mon0 fixed channel: -1")http://jano.homelinux.net/wardriving/driver-patch/compat-wireless-aircrack-lucid-patched.tar.bz2Here are the tests: http://forum.aircrack-ng.org/index.php?topic=5755.msg39141#msg39141sudo rmmod rtl8187 zd1211rw mac80211 cfg80211
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://jano.homelinux.net/wardriving/driver-patch/compat-wireless-aircrack-lucid-patched.tar.bz2
sudo tar jxvf compat-wireless-aircrack-lucid-patched.tar.bz2
sudo make
sudo make install
sudo make unload
- At this point, to use the driver RTL8187 with [b]ALFA-AWUS036H, load the appropriate module with this command:
sudo modprobe rtl8187
- While, for use of the new
ALFA-AWUS050NH, load driver RT2800usb:
sudo modprobe rt2800usb
TEST ALFA-AWUS036H driver RTL8187/Stacks-mac80211
TEST ALFA-AWUS036H driver r8187/Stacks-ieee80211
TEST new ALFA-AWUS050NH driver RT2800usb for use Aircrack-ng.
TEST new ALFA-AWUS050NH and driver rt2870sta for Internet connections.
UPDATE (15/Jul/09)Ref. ALFA-AWUS050NH on Ubuntu Jaunty -- It was released Kernel 2.6.30 and 2.6.31, and when there are some bugs related to the Ralink driver.
- The injection works well, but if you can not surf the Internet, you can alternatively use the Ralink utility.
(Ralink Wireless Driver Station RT2870sta use)
UPDATE (03/Nov/09)Ref. ALFA-AWUS050NH on Ubuntu KarmicFor surfing in Internet use New driver rt3070sta or rt2870sta. (already included in Lucid)
UPDATE (04/Jul/010)Ref. ALFA-AWUS050NH on Ubuntu Lucid- The driver rt2800usb, at the moment NOT supports more correctly Aircrack-ng. (the injection not work fine)
Intalling driver r8187/Stacks-ieee80211 on UBUNTU
(only for ALFAAWUS036H)
Installing driver r8187NOTE:
Do not make any changes to the package/driver downloaded because is already modified and patched.Step for Ubuntu Jaunty - (or until kernel 2.6.30) sudo rmmod r8187 rtl8187 mac80211 cfg80211
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://jano.homelinux.net/wardriving/driver-patch/rtl8187_linux_26.1010-intrepid-jaunty.zip
sudo unzip rtl8187_linux_26.1010-intrepid-jaunty.zip
cd rtl8187_linux_26.1010-intrepid-jaunty
sudo make
sudo make install
Alternative link for download driver:
http://jano.netsons.org/wardriving/driver-patch/rtl8187_linux_26.1010-intrepid-jaunty.zipStep for Ubuntu Karmic and Lucid - (Kernel 2.6.31 or higher) sudo rmmod r8187 rtl8187 mac80211 cfg80211
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
sudo unzip rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006/
sudo wget http://patches.aircrack-ng.org/rtl8187_2.6.27.patch
sudo wget http://patches.aircrack-ng.org/rtl8187_2.6.32.patch
sudo tar xzf drv.tar.gz
sudo tar xzf stack.tar.gz
sudo patch -Np1 -i rtl8187_2.6.27.patch
sudo patch -Np1 -i rtl8187_2.6.32.patch
sudo make
sudo make install
For loaded/use your ALFA-AWUS036H, use this command:
sudo modprobe r8187
IMPORTANT NOTE related to Ubuntu Lucid: at the moment a new bug does not allow Internet connections; when acquired the IP address the
System freezes. (for surfing Internet use RTL8187 driver)
IMPORTANT NOTE FOR THE PROPER USE
- The drivers RTL8187 and r8187 used by ALFA-AWUS036H, works using different Stacks, (mac80211 and ieee80211)
CAN NOT be used in the same time. (cause System crash/Kernel panic)
- Remove and insert the "modules" with the appropriate commands.
For unload driver RTL8187/Stacks-mac80211 sudo rmmod rtl8187 mac80211 cfg80211
For unload driver r8187/Stacks-ieee80211 sudo sh /usr/src/drivers/rtl8187_linux_26.1010-intrepid-jaunty/wlan0rmv
NOTE: Before using the script make the file executable with this command, making sure to indicate the correct name of the folder and version --> "Jaunty" or "Lucid".
sudo chmod +x /usr/src/drivers/rtl8187_linux_26.1010-intrepid-jaunty/wlan0rmv
For unload driver RT2800usb, used only by ALFA-AWUS050NHsudo rmmod rt2800usb rt2x00usb rt2x00lib mac80211 cfg80211
TIPS & TRICKS
SET SHORTCUTS- For convenience, I suggest you to create command "aliases"
sudo gedit .bashrc
And copy&paste this text to end of file:
alias nup='sudo modprobe rt2800usb'
alias nstaup='sudo modprobe rt2870sta'
alias hup='sudo modprobe r8187'
alias hrtup='sudo modprobe rtl8187'
alias ndown='sudo rmmod rt2800usb rt2x00usb rt2800lib rt2x00lib crc_ccitt mac80211 cfg80211'
alias nstadown='sudo rmmod rt2870sta'
alias hdown='sudo rmmod r8187'
alias hrem='sudo sh /usr/src/drivers/rtl8187_linux_26.1010-intrepid-jaunty/wlan0rmv'
alias hrtdown='sudo rmmod rtl8187 mac80211 cfg80211 eeprom_93cx6'
- Now you can use these shortcuts (alias) to remove or load the drivers
nup
nstaup
hup
hrtup
ndown
nstadown
hdown
hrtdown
Additional documentation for management the Tx-Power with drivers mac-80211 http://forum.aircrack-ng.org/index.php?topic=7177.0Enjoy, Jano
File PDF - English -http://jano.homelinux.net/wardriving/tutorial/alfa-awus036h-awus050nh-installing-drivers.pdfFile PDF - Italian -http://jano.homelinux.net/wardriving/tutorial/alfa-awus036h-awus050nh-installazione-driver.pdf