How to Configure Raspberry PI for Wifi Edimax USB

When you first open /etc/network/interfaces, you should see this configuration:

# sudo nano /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

First, update the raspberry
Launch the repository update

# sudo apt-get update

Run the system updat

# sudo apt-get upgrade

Make sure that the latest Raspberry Pi firmware version is installed

# sudo apt-get install raspberrypi-bootloader

Install the wpa_supplicant utility

# sudo apt-get install wpasupplicant

You can now generate the PSK version of your password :

wpa_passphrase yourssid#1 youpassword#1

If should generate something like:

network={
    ssid="yourssid#1"
    #psk="yourpassword#1"
    psk=7f99a0cf3a3435db41ee50a93b27303b9a492f2389347e1aaf83317a4080902f
}

Replace by

auto lo
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B

Edit /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2

network={
       ssid="yourssid#1"
       scan_ssid=1
       proto=WPA RSN
       key_mgmt=WPA-PSK
       pairwise=CCMP TKIP
       group=CCMP TKIP
       psk="yourgeneratedpsk#1"
}

network={
       ssid="yourssid#2"
       scan_ssid=1
       proto=WPA RSN
       key_mgmt=WPA-PSK
       pairwise=CCMP TKIP
       group=CCMP TKIP
       psk="yourpasswordpsk#2"
}

Start wlan0

sudo ifdown wlan0; sudo ifup wlan0

Raphaël has written 45 articles

2 thoughts on “How to Configure Raspberry PI for Wifi Edimax USB

  1. Shawn says:

    Worked like a charm! Tried several other solutions on the net, but none worked.

    I’m guessing the second example in wpa_supplicant.conf should have:
    “yourgeneratedpsk#2” rather than the, “yourpassword#2” you have there now.

    Thanks for providing this!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>