Adding wifi to Raspberry Pi with Edimax EW-7811UN dongle

Tiny USB wifi adaptor for Raspberry Pi
After a lot of huffing and puffing and making things over-complicated, I got my Raspberry Pi on the internet by wifi with the miniscule £8.27 EdimaxEW-7811UN WiFi dongle. Here’s how I set it up. NB: I’m using a Kindle power supply, which seems to provide enough current to run this tiny wifi adaptor plugged straight into the Pi’s USB socket (which will be important for FridgeGizmo). I am also using Raspbian wheezy 2012-08-16 as my OS.

1) I updated my firmware by installing and running rpi-update: – new firmware includes drivers needed by this wifi dongle.

2) I followed these instructions:
specifically the bit where you go to the root terminal and type:

nano /etc/network/interfaces

and add the below text to the end of the file:

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf

Then in the terminal type:

nano /etc/wpa.conf

and add the below text replacing NETWORK_SSID with my wifi network name and NETWORK_PASSWORD with my wifi password:

pairwise=CCMP TKIP

Then at the command line I typed

sudo ifup wlan0

and my wifi dongle lit up blue, and I got on t’internet. Phew!

This entry was posted in computers, Debian, Linux, Raspberry Pi, Raspbian and tagged , , , , , . Bookmark the permalink.

8 Responses to Adding wifi to Raspberry Pi with Edimax EW-7811UN dongle

  1. blogmywiki says:

    I’m now getting Apache and PHP installed on the Pi using this tutorial:

  2. Alan says:

    this dongle worked out of the box for me with no installs, just added my network to wifi config in the os gui

  3. Edward Hammock says:


    I am going to install my Edimax later this week. What distro are you using on your pi? Mine is quite an early one and may be out of date by now.



  4. Poster says:

    i cant seem to figure out how this edimax wlan stick works.
    sometimes when i restart it works, sometimes not. -.-
    but thanks for the article…. it helped kinda ^^

  5. Frode B. says:

    Thanks. FYI, this works with 2012-12-16-wheezy-raspbian too.

  6. RaspiWanabe says:

    Hello there, i’ve tried doing what you posted here following the exact same steps in this post and can’t get my dongle to work :S i have the exact same model.

    Any ideas what might be missing here? My Wlan encription is WPA2 btw, not sure if that makes a difference here.

  7. blogmywiki says:

    Really sorry for late moderation of comments – email notifications from my own blog weren’t reaching me. They are now. Catching up!

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=""> <strike> <strong>