* ALFA-AWUS036H & ALFA-AWUS050NH *
INSTALLING/UPDATING DRIVERS RTL8187, r8187, RT2800usb on UBUNTU 8.10 & 9.04
(Kernel 2.6.28-11)
IMPORTANT NOTE: Tutorial partially not necessary on Ubuntu Karmic.Driver RTL8187/Stacks-mac80211 (for ALFA-AWUS036h) - These drivers are particularly suited for connections to the Internet, (more stable of r8187), and fully compatible with Network-Manager 0.7 installed by default on Ubuntu 9.04.
- Supports all encryption without problems. (open, WEP and WPA/WPA2)
- With Compact-Wireless, the "injection" and all "attack" of Aireplay-ng, are already supported without installing any "patch".
Driver r8187/Stacks-ieee80211 (for 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, and supporting the encryption OPEN and WEP (no WPA/WPA2)
- To establish links with WPA/WPA2 encryption, require a manual setup.
- 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=r8187Driver RT2800/Stacks-mac80211 (for ALFA-AWUS050NH)- Excellent stability of connection even with the lowest signals, and fully supported by Network-Manager with all encryption. (open, WEP and WPA/WPA2)
- With Compact-Wireless, the "injection" and all "attacks" of Aireplay-ng, are already supported natively without installing any "patch".
- For "spoffing" the mac-address with "macchanger" is needed the driver rt2800usb. (not possible with the driver rt2870sta installed by default on Ubuntu 9.04)
Update your OS and install these packages before continuingsudo 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 gcc python-psyco autoconf subversion tcl8.5 libssl-dev libnl1 libnl-dev
Upgrading the package "IW" (suggested for both models of ALFA card)sudo mkdir /usr/src/drivers
cd /usr/src/drivers
sudo wget http://wireless.kernel.org/download/iw/iw-0.9.17.tar.bz2
sudo tar jxvf iw-0.9.17.tar.bz2
cd iw-0.9.17
sudo make
sudo make install
- Step ONLY for ALFA-AWUS050NH - If NOT present, installing the RT2870 Firmware.
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: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 the Compact Wireless on UBUNTU 9.04
(necessary for both models of ALFA card)
sudo rmmod rtl8187
sudo rmmod mac80211
echo "blacklist rtl8187" | 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 mac80211" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo mkdir /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 make
sudo make install
sudo make unload
- At this point, to use the driver RTL8187 with
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/Stacks-mac80211
UPDATE (15/Jul/09)Ref. ALFA-AWUS050NH on Ubuntu Jaunty - It was released Kernel 2.6.30 and 2.6.31, and at the moment there are some Bug for same Ralink
drivers for Internet connections.
The injection work fine, but for surfing in Internet, at the moment use the Utility of Ralink
(Ralink Wireless Station use RT2870sta driver)
UPDATE (03/Nov/09)Ref. ALFA-AWUS050NH on Ubuntu Karmic -- For surfing in Internet use New driver
RT3070sta. (already included)
- For use with Aicrack-ng load
RT2800usb driver. (already included)
Ref. ALFA-AWUS036H + RTL8187/Stacks-mac80211 on Ubuntu Karmic -- For use Aicrack-ng and surfing in Internet, load driver
RTL8187. (already included)
INSTALLING DRIVER r8187/Stacks-ieee80211 on UBUNTU 8.10 & 9.04
(only for ALFA-AWUS036H)
Installing driver r8187NOTE: Do not make any changes to the package/driver. (is already changed)
IMPORTANT NOTE:
Ref. ALFA-AWUS036H + r8187/Stacks-ieee80211 on Ubuntu Karmic -- The driver r8187/Stacks-ieee80211at the moment is not compilable. (error with "make" command)
http://trac.aircrack-ng.org/ticket/650cd /usr/src/drivers
sudo wget http://repository.wifi-ita.com/src/rtl8187_linux_26.1010-intrepid-jaunty.zip
sudo unzip rtl8187_linux_26.1010-intrepid-jaunty.zip
cd rtl8187_linux_26.1010.0622.2006/
sudo tar xzf drv.tar.gz
sudo tar xzf stack.tar.gz
sudo patch -Np1 -i rtl8187_2.6.27.patch
sudo make
sudo make install
For loaded/use your ALFA-AWUS036H, use this command:
sudo modprobe r8187
Alternative link for download driver:
http://www.jano.netsons.org/wardriving/driver-patch/rtl8187_linux_26.1010-intrepid-jaunty.zipIMPORTANT 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 or Kernel PANIC)
- Remove and insert the "modules" with the appropriate commands.
For unload driver RTL8187/Stacks-mac80211 sudo rmmod rtl8187
sudo rmmod mac80211
For unload driver r8187/Stacks-ieee80211 sudo sh /usr/src/drivers/rtl8187_linux_26.1010.0622.2006/wlan0rmv
(make sure the file "wlan0rmw" is "executable", if it is not use this command)
sudo chmod +x /usr/src/drivers/rtl8187_linux_26.1010.0622.2006/wlan0rmv
For unload driver RT2800usb, used only by ALFA-AWUS050NHsudo rmmod rt2800usb
Tips & Tricks- For convenience, I suggest you to create command "aliases"
sudo gedit .bashrc
And copy&paste this text to end of file:
alias remn='sudo rmmod rt2800usb rt2x00usb rt2x00lib mac80211 cfg80211'
alias remh='sudo rmmod rtl8187 mac80211 cfg80211'
alias remhr='sudo sh /usr/src/drivers/rtl8187_linux_26.1010.0622.2006/wlan0rmv'
alias upn='sudo modprobe rt2800usb'
alias uph='sudo modprobe rtl8187'
alias uphr='sudo modprobe r8187'
- Now you can use these shortcuts (alias) to remove or load the drivers
remh
remhr
upn
uph
uphr
File PDF - English -http://www.jano.netsons.org/wardriving/tutorial/alfa-awus036h-awus050nh-installing-drivers.pdfFile PDF - Italian -http://www.jano.netsons.org/wardriving/tutorial/alfa-awus036h-awus050nh-installazione-driver.pdfEnjoy !!!
j4n0 ^_°