Driver RTL8187/Stacks mac80211 (ref. ALFA-AWUS036h WiFi card)
These wireless 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 WiFi 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 mac80211 fragmentation patch.
The RX sensitivity and packet injection is less, related to drivers r8187/ieee80211.
This wireless driver is recommended for use with the Suite of Aircrack-ng, but not particularly suitable for ADSL 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 Wireless encryption OPEN and WEP (not WPA/WPA2)
To establish Internet connections with your WiFi Access Point (ADSL router) using WPA/WPA2 encryption, require manual configuration of Wpa_Supplicant.
The "injection" and all "attacks" of Aireplay-ng, are supported after installing the appropriate "patch".
IMPORTANT NOTE related to Ubuntu Lucid, Maverick and NattyAt the moment does not allow Internet connections; when acquired the IP address the System freezes. (for surfing Internet use RTL8187 driver)
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 wirless card.
Note to Ubuntu Lucid referring to the usb WiFi card ALFA-AWUS050NH & ALFA-AWUS036NHTo establish WiFi Internet connection and surfing Internet on Ubuntu Lucid you must use the RT2870sta.
NOTE: Before continuing, make sure NOT to be active in Synaptic the Repositories "Proposed" and "Backports"
sudo dpkg --configure -a && sudo apt-get install -f && sudo apt-get update
Copy
sudo apt-get install linux-headers-$(uname -r) build-essential make patch subversion openssl libssl-dev zlib1g zlib1g-dev libssh2-1-dev libnl1 libnl-dev gettext autoconf tcl8.5 libpcap0.8 libpcap0.8-dev python-scapy python-dev cracklib-runtime macchanger-gtk tshark ethtool
sudo apt-get install iw
sudo mkdir /usr/src/drivers && cd /usr/src/drivers/
Copy
sudo wget http://kernel.org/pub/software/network/iw/iw-3.11.tar.bz2 -O - | sudo tar -jxv
Copy
cd iw* && sudo make && sudo make install
ls -l /lib/firmware/rt2870.bin
(example: -rw-r--r-- 1 root root 4096 2010-11-18 22:20 /lib/firmware/rt2870.bin )
sudo unzip RT2870_Firmware_V22.zip && sudo mv RT2870_Firmware_V22/rt2870.bin /lib/firmware
NOTE:
Before proceding, if installed, uninstall the previous version of Compat-Wireless or linux-backports-modules/linux-backports-modules-compat-wireless-Your_installed_version" using Synaptic or Terminal:
sudo apt-get remove --purge linux-backports-modules-compat-wireless-Your_installed_version
NOTE: this version of Compat-Wireless is compatible on Ubuntu Lucid or BackTrack 4 Final
In this list are included the old driver ieee80211, new mac80211 and STA drivers, but you can/need to change it depending on your wireless card used.
REMEMBER:
that when you reboot your PC, to use your internal/usb wireless card will need to manually reload the driver using the "modprobe" command.
echo "blacklist r8187" | sudo tee /etc/modprobe.d/blacklist_r8187.conf
Copy
echo "blacklist rt2870sta" | sudo tee /etc/modprobe.d/blacklist_rt2870sta.conf
Copy
echo "blacklist rtl8187" | sudo tee /etc/modprobe.d/blacklist_rtl8187.conf
Copy
echo "blacklist mac80211" | sudo tee /etc/modprobe.d/blacklist_mac80211.conf
- If not use the old r8187/stacks-ieee80211 driver not put in blacklist the mac80211 and rtl8187 drivers.
Package already patched for Ubuntu Lucid default Kernel:NOTE:
Before removing the modules with "modprobe -r" command download the files needed, as during the installation should not be connected to the Internet or have any other card active
sudo modprobe -r rtl8187 zd1211rw iwl3945 ath5k rt73usb rt2800usb
Copy
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
Copy
sudo tar -xjvf compat-wireless-aircrack-lucid-patched.tar.bz2
Copy
cd compat-wireless-aircrack-lucid-patched
Copy
sudo make && sudo make install && sudo make unload && sudo shutdown -r now
- The installation process takes about 5/10 minutes, do not interrupt.
- After restarting your computer, if not loaded during startup, loaded the preferred driver using "modprobe" command:
sudo modprobe Driver_Name
- Include patch to fix problem in Airodump-ng and Aireplay-ng --> "fixed channel mon0: -1", and injection/fragmentation patches.
Not use this package on Ubuntu Natty because it do not build correctly with Kernel 2.6.38.
(whith Natty, use the new package "compat-wireless-aircrack-natty-patched")
sudo modprobe -r rtl8187 zd1211rw iwl3945 ath5k rt73usb rt2800usb
Copy
sudo mkdir /usr/src/drivers
cd /usr/src/drivers
Copy
sudo tar -xjvf compat-wireless-aircrack-maverick-patched.tar.bz2
Copy
cd compat-wireless-aircrack-maverick-patched
Copy
sudo make && sudo make install && sudo make wlunload
After you have successfully completed the installation (5/10 minutes) to use the driver RTL8187/mac80211 with ALFA-AWUS036H, load module with this command:
sudo modprobe -r r8187 && sudo modprobe rtl8187
And check with Airmon-ng or new Airmon-zc present in the latest version of Aircrack-ng SVN
sudo airmon-ng | grep "rtl8187
While, for use ALFA-AWUS050NH or ALFA-AWUS036NH, load driver rt2800usb:
sudo modprobe -r rt2870sta && sudo modprobe rt2800usb
sudo modprobe -r r8187 rtl8187
Copy
sudo mkdir /usr/src/drivers && cd /usr/src/drivers
Copy
sudo wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
Copy
sudo unzip rtl8187_linux_26.1010.zip && cd rtl8187_linux_26.1010.0622.2006
Copy
sudo tar -xzf drv.tar.gz && sudo tar -xzf stack.tar.gz
Copy
sudo wget http://patches.aircrack-ng.org/rtl8187_2.6.27.patch -O - | sudo patch -Np1
Copy
sudo wget http://patches.aircrack-ng.org/rtl8187_2.6.32.patch -O - | sudo patch -Np1
Copy
sudo sed -i 's/-depmod -ae/-depmod -a/' Makefile
Copy
sudo make && sudo make install
sudo modprobe -r r8187 rtl8187
Copy
sudo mkdir /usr/src/drivers && cd /usr/src/drivers
Copy
sudo wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
Copy
sudo unzip rtl8187_linux_26.1010.zip && cd rtl8187_linux_26.1010.0622.2006
Copy
sudo tar -xzf drv.tar.gz && sudo tar -xzf stack.tar.gz
Copy
sudo wget http://patches.aircrack-ng.org/rtl8187_2.6.35-monitor_only.patch -O - | sudo patch -Np1
Copy
sudo sed -i 's/-depmod -ae/-depmod -a/' Makefile
Copy
sudo make && sudo make install
sudo modprobe -r rtl8187 && sudo modprobe r8187
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.
sudo modprobe -r rtl8187
sudo modprobe -r r8187
sudo sh /usr/src/drivers/rtl8187_linux_26.1010.0622.2006/wlan0rmv
sudo chmod +x /usr/src/drivers/rtl8187_linux_26.1010.0622.2006/wlan0rmv
sudo modprobe -r rt2800usb