@archangel.amael: I was thinking about doing that before I threw up my post, but I knew somewhere, somehow someone would copy the commands line by line and ask why they were not working.
Anyways, here is how I installed everything for my Alfa AWUS050NH on my BackTrack 4 Pre Release persistent USB stick. Make sure to replace the hxxp's with http's in the wget commands!
First I updated the IW package following Jano's tutorial and taking some backup advice from fnord0's guide:
Make sure to double check that IW updated properly!
mv /usr/bin/iw /usr/sbin/OLDiw--OGbt4beta
tar jxvf iw-0.9.18.tar.bz2
cp -p iw /usr/sbin
Next, I installed the rt2870sta firmware directly from RealTek's website (The link is posted by fnord0 on the first page of this thread and is titled "Ralink corp. | Linux"). You will get some weird errors unzipping this file as mentioned by fnord0, but it does seem to be working perfectly fine:
iw version 0.9.18
This next part requires a little bit of knowledge from the user(s) and understanding which wireless drivers they actually have loaded. Generally, if you think you don't have any wireless drivers loaded and running and "rmmod mac80211" returns an error and lists dependencies, those are probably the drivers that are currently loaded and you will probably want to blacklist and unload those drivers temporarily for the compat wireless install. After I did this, I installed the compat wireless package suggested by Jano:
mv RT2870_Firmware_V8/rt2870.bin /lib/firmware
# Double check that the firmware was properly moved
ls -al /lib/firmware/rt2870.bin
After the compat wireless package finished compiling and installing I loaded up the new rt2800usb driver:
echo "blacklist mac80211" | tee -a /etc/modprobe.d/blacklist
echo "blacklist rt2870sta" | tee -a /etc/modprobe.d/blacklist
echo "blacklist rt2800usb" | tee -a /etc/modprobe.d/blacklist
tar jxvf compat-wireless-aircrack-alfa036h-050nh.tar.bz2
And voila, I had a working rt2800usb driver that works completely with aircrack-ng, kismet, and all the other devices I use for my wireless penetration tests. Again, "works completely" as far as I have tested and can tell. The only thing that is semi-annoying is that the rt2800usb driver does *NOT* work for actually connecting to an AP directly for an internet connection. For that, you have to unload the rt2800usb driver and load the rt2870sta driver that is pre-installed with BT4.
Also, if you want to change the MAC address while using the rt2870sta driver, you cannot use macchanger. I have been looking for a solution everywhere to get macchanger working with this driver, but have come up empty handed. However, you can edit /etc/modeprobe.d/options and change the MAC address by using a new "option":
# Add the following line at the bottom and change "MAC Address" to the mac address you want!
# ie; options rt2870sta mac="01:23:45:67:89:AB"
options rt2870sta mac="MAC Address"
ifconfig ra0 down
You can easily bash script that for convenience if you really wanted to.
# ifconfig ra0
ra0 Link encap:UNSPEC HWaddr 01-23-45-67-89-AB
inet6 addr: fe80::ee65:59ff:feaa:5db0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5472 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:822994 (822.9 KB) TX bytes:6640 (6.6 KB)
I would like to thank fnord0 and Jano for their great tutorials on this subject. If anything I posted helps you, don't bother thanking me, thank them!
EDIT: Oops, just realized I forgot to add a link to Jano's tutorial!
fnord0's is located, well, on the first page of this thread.