Getting the RT3070 USB wifi adapter working in linux

Ralink must be one of the shittiest Linux supported network cards ever. I have a friend who’s not so good on computers, to the point where after reinstalling every  week for 3 weeks i suggested linux.

That sure saved me a lot of long drives to fix whatever went one, i could fix it with SSH. This has worked out great for both of us, especially since i moved 200 km away. She began on linux and is used to how it works, she loved it when we moved to ubuntu and she could install and remove things herself, and run updates.

Anyway, i digress, shes moving house on the coming weekend, and has a few coins leftover, and she wants to move to a wireless network. I thought “great! Linux support for most usb wifi isn’t too shabby, ill get something that works ‘out of the box’ if i can”. I went to ascent.co.nz and found this cheap card that said ‘Linux Compatible”. Well, I guess it was hoping for too much , but wasn’t expecting the problems i had.

The drivers on the cd wouldn’t compile because of the age/code/dependencies. I went to the ralink website and downloaded the latest drivers ( DPO_RT3070_LinuxSTA_V2.3.0.2_20100412 ). I ran into problems right away compiling for various reasons. Eventually i followed the following recipe to get this going.

unpackage it ;

cd DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/
vi os/linux/usb_main_dev.c

Look for the following line
MODULE_DESCRIPTION(“RT2870 Wireless Lan Linux Driver”);
And add this one below it
MODULE_LICENSE(“GPL”);

Exit the editor, then do the following

sudo make
sudo cp RT2870STACard.dat RT3070STACard.dat
sudo cp RT2870STA.dat RT3070STA.dat
sudo make install
cd /etc/Wireless/
sudo ln -s RT3070STA RT2870STA
cd RT3070STA
sudo ln -s RT3070STA.dat RT2870STA.dat
sudo modprobe rt3070sta

if that works, throw the module in /etc/modules  (just the name rt3070sta ) so it loads on boot.

Now the key to all this is that ralink are cheap. They give a chip a new name, even though its clearly the same as previous ones. They do a quick run over the code to change all instances of 2870 to 3070 and of course forget half them, this is why there are odd cp’s and having to link thinks to work.

It seems that debian based distros like/need the GNU in the file, which seems to have been moved into another file in these drivers and its not registering. By adding it in it will load and work.

Let me know if this has helped you 🙂

Refs : http://www.linuxforums.org/forum/wireless-internet/161550-rt3070sta-module-license-unspecified-taints-kernel-solved.html

Faces of Meth Addiction – Before and after

If you ever were tempted to try hard drugs, even just the once, and didn’t, then be glad – you may have looked like the people below. Pictures provided by friends at https://brcrecovery.com/

Second pic was taken4 years, 5 months later on the above photo

Second pic was taken 5 years later on the above photo

Second pic was taken 11 months later on the above photo

Second pic was taken 1 year later on the above photo

Second pic was taken 1 year later on the above photo

Second pic was taken 2.5 years later on the above photo

Second pic was taken 8 months later on the above photo

Second pic was taken 4 months later on the above photo

Second pic was taken 2.5 years later on the above photo

Second pic was taken 1.5 years later on the above photo

Second pic was taken 4 years later on the above photo

Second pic was taken 3 months later on the above photo

Second pic was taken 2 years later on the above photo

Second pic was taken 6 months later on the above photo

Second pic was taken 7 months later on the above photo

Second pic was taken 2 months later on the above photo.
Here is the direct link to book a Sacramento treatment consultation, if you or any of your friends are in danger of addiction.

Photos Courtesy: Multnomah County Sheriff, Ore.

Found at http://www.kdvr.com/news/kswb-pg-faces-of-meth,0,3049043.photogallery and re-displayed here without all the confusion of poor webdesign 🙂

Recently, I was diagnosed with A.A.A.D.D.

Got this in an email – thought I’d share the awesomeness of it 🙂
Recently, I was diagnosed with A.A.A.D.D. –
Age Activated Attention Deficit Disorder.
This is how it manifests itself:
I decide to water my garden.
As I turn on the hose in the driveway, I look over at my car and decide it needs washing.
As I head towards the garage, I notice post on the porch table that I picked up from the postman earlier.
I decide to go through it before I wash the car.
I put my car keys on the table, put the junk mail in the recycling box under the table, and notice that the recycling box is full.

So, I decide to put the bills back on the table and take out the recycling first.
But then I think, since I’m going to be near the post-box when I take out the recycling paper anyway, I may as well pay the bills first.
I take my cheque book off the table and notice that there is only one cheque left.
My extra cheques are in the desk in my study, so I go into the house to my desk where
I find the cup of coffee I’d been drinking.

I’m going to look for my cheques but first I need to push the coffee aside so that I don’t accidentally knock it over.
The coffee is getting cold, and I decide to make another cup..
As I head toward the kitchen with the cold coffee, a vase of flowers on the worktop catches my eye – the flowers need water.

I put the coffee on the worktop and discover my reading glasses that I’ve been searching for all morning.
I decide I better put them back on my desk, but first I’m going to water the flowers..
I put the glasses back down on the worktop, fill a container with water and suddenly spot the TV remote control. Someone left it on the kitchen table.

I realise that tonight when we go to watch TV,I’ll be looking for the remote, but I won’t remember that it’s on the kitchen table, so I decide to put it back where it belongs, but first I’ll water the flowers.

I pour some water in the flowers, but quite a bit of it spills on the floor.
So, I put the remote back on the table, get some towels and wipe up the spill.

Then, I head down the hall trying to remember what I was planning to do.
At the end of the day:
The car isn’t washed
The bills aren’t paid
There is a cold cup of coffee sitting on the kitchen work-surface
The flowers don’t have enough water,
There is still only 1 cheque in my cheque book,
I can’t find the remote,
I can’t find my glasses,
And I don’t remember what I did with the car keys.

Then, when I try to figure out why nothing got done today, I’m really baffled because I know I was busy all bloody day and I’m really tired.
I realise this is a serious problem, and I’ll try to get some help for it, but first I’ll check my e-mail…..
Do me a favour.
Forward this message to everyone you know, Because I can’t remember who the hell I’ve sent it to.
Don’t laugh – if this isn’t you yet, your day is coming!!