How to setup a USB wlan connection on a Raspberry Pi – alternative method

Last week I received a new Raspberry PI model B with 512MB ram. I tried to enable WLAN using my own instructions for the Edimax WLAN Hi-Speed USB 2.0 EW-7811Un Nano and it didn’t work!?!? Huh?

Some how I got the following error message:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start

but after some google-ing I found a solution for the problem. In many posts on the web, it is suggested that the problem relates to a “lack of power” issue on the RPi USB. I found out that it is really a configuration issue. Here is how I solved it:

The setup assumes working from a clean Rasbian Wheezy image and applying the latest updates.

Configure the network adapter interface

sudo nano /etc/network/interfaces

you have to make the content of /etc/network/interfaces look like this:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp

wpa-ssid “YOUR NETWORK SSID HERE”
wpa-psk “YOUR NETWORK PASWORD HERE”

ctrl-x and Y to save the changes

Now just restart your network connections

sudo /etc/init.d/networking restart

or alternatively reboot

sudo reboot

That is it! You don’t have to use the  “/etc/wpa_supplicant/wpa_supplicant.conf” with this setup.

new RPi with Edimax EW-7811Un

Advertisements

3 thoughts on “How to setup a USB wlan connection on a Raspberry Pi – alternative method

  1. Pingback: How to setup a USB wlan connection on a Raspberry Pi | raspberrypi4dummies

  2. Kevin

    Thanks for this! I’d been banging my head with the supplicant daemon issue and found your post. Everything is up and running now.

    Reply
  3. martin

    I spent half a day on this before finding your solution… thanks so much! can’t believe the setup is such a pain!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s