RPi Ralink WLAN devices

How configure RALink based devices on Official Distro (Raspbian)
Source: mikma.eu

1) sudo apt-get install wpasupplicant

2) sudo apt-get install firmware-ralink

3) sudo wpa_passphrase NetworkEssid password

4) sudo joe /etc/wpa_supplicant.conf - paste text from step 3, remove the passkey line

network={ ssid="NetworkEssid" psk=945609a382413e64d57daef00eb5fab3ae228716e1e440981c004bc61dccc98c }

5) sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf - ctrl+c to stop

6) sudo joe /etc/network/interfaces - add:

auto wlan0 iface wlan0 inet dhcp wpa-driver wext wpa-conf /etc/wpa_supplicant.conf

7) sudo ifup wlan0

Useful tools: ifconfig iwconfig lsusb