Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

RPi Ralink WLAN devices

Revision as of 08:50, 5 September 2012 by Cygnum (Talk | contribs)

Jump to: navigation, search

How configure RALink based devices on Official Distro (Raspbian) for a WPA-PSK/WPA2-PSK secured network


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


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

Alternative method of configuring a ralink network interface card for a WPA/WPA2 secured network (Somewhat simpler)

Install the wpasupplicant and the ralink firmware:

1) sudo apt-get install wpasupplicant

2) sudo apt-get install firmware-ralink

Restrict access to /etc/interfaces so only root can read it (in this method, this file will contain your network password):

3) sudo chmod 0600 /etc/network/interfaces

Edit you /etc/network/interfaces:

4) sudo nano /etc/network/interfaces

5) The file already contains the configuration for eth0 (your Ethernet port) and looks something like this:

auto eth0
iface eth0 inet dhcp

add the following lines below, enter you network name (ssid) and password:

iface wlan0 inet dhcp
   wpa-ssid <your network ssid here>
   wpa-psk <your network password>

6) save the file.

The network interface will connect every time the RPi boots up. To connect it now manually, run:

7) sudo ifup wlan0

Useful tools: