Difference between revisions of "Installing EW-7811Un WifiDongle"

From SingletonMillerWiki
Jump to: navigation, search
m (added notes on optional software and firmware update and issues seen,)
Line 1: Line 1:
[[Category: RaspberryPi]]
[[Category: RaspberryPi]]
[[Category: RaspianRPi]]
[[Category: RaspianRPi]]
As of Feb '13 the EW-7811Un WifI Dongle is supported out of the box in Raspian and the installation process is obsolete.
== Installation Script ==
== Installation Script ==

Latest revision as of 06:30, 2 June 2013

As of Feb '13 the EW-7811Un WifI Dongle is supported out of the box in Raspian and the installation process is obsolete.

Installation Script

MrEngMan over at RaspberryPi Forums has developed a script to support the installation of all rtl8188 based Wifi devices. [1], this includes the EW-7811Un.

Ethernet / Internet Enabled

Requires an RPi with an existing wired LAN with internet available.

Do not plug in your dongle until instructed to do so by the script.

Access a command line window and run the following commands:

  • Download the install script
wget http://dl.dropbox.com/u/80256631/install-rtl8188cus-latest.sh
  • Execute the Script with superuser privileges
sudo bash install-rtl8188cus-latest.sh

you should be presented with the following:

This script will install the driver for Realtek RTL8188CUS based wifi adapters
and update the software to the latest version using apt-get and rpi-update.

1. It can install a new driver if you do not already have the rtl8188cus driver
   installed and have no other wifi adapter installed.
2. It can install a wifi adapter using the rtl8188cus driver if you have a wifi
   adapter using a different driver already installed.
3. If the driver is already installed it will update the driver and software, or
   allow you to add an different wifi adapter using the rtl8188cus driver so you
   can switch between them if you want to, e.g. unplug one and plug in another,
   or even connect two wifi adapters at the same time.
4. It can repair a broken driver. e.g. if you have updated the software and the
   wifi has stopped working it will update the driver to a working version if
   one is available.

If you are installing your first wifi adapter or adding a new one do not plug it
in until told to do so. If you have a wifi adapter already installed and now it
is not working due to a recent software update unplug it now and plug it back in
when the script tells you to.

If you don't have a working wifi adapter but do have a wired network with access
to the internet connect the internet cable. Files needed for the installation
will be downloaded from the internet.

If you have a working wifi adapter and it is plugged in do not unplug it. It
will be used to download files needed for the installation from the internet.

Press any key to continue... 

With access to the internet the script will attempt to download the required files and install the drivers and device firmware automatically.

Allow the script to proceed and enter your wifi 'SSID' and 'passphrase' and when prompted plug in your wifi dongle.

If the script errors out, read the notification and fix the problems before retrying. If the problems are unable to download the files, try getting the files manually (see below).

Once you Wifi is working and connected the script will offer you the possibility of updating the RPi software and Firmware. This is optional but you are encouraged to do so.

Update Issues

During update of the RPi the script notified

Unpacking replacement bash ...
Processing triggers for man-db ...
Setting up bash (4.2-4) ...
Installing new version of config file /etc/bash.bashrc ...

Configuration file `/etc/skel/.bashrc'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** .bashrc (Y/I/N/O/D/Z) [default=N] ? y

I selected Y and the script carried on without further issue.

What to do if your RPi doesn't have Internet

Requires a PC with SD card reader and access to the internet.

Under Linux

Mount your RPi SD card in your existing system and download the following files to /boot on the SD card.

Replace /media/sdcard with the appropriate mount point of your SD card.

cd /media/sdcard0/boot
sudo wget http://dl.dropbox.com/u/80256631/install-rtl8188cus-latest.sh
sudo wget http://dl.dropbox.com/u/80256631/8192cu-20120701.tar.gz
sudo wget ftp://ftp.dlink.com/Wireless/dwa130_revC/Drivers/dwa130_revC_drivers_linux_006.zip

Unmount the SD card, install it in your RPi and boot. Navigate to the /boot directory and run the script as per Installing_EW-7811Un_WifiDongle#Ethernet / Internet Enabled.

Windows Users

Windows occasionally has a few problems with text files and converts them to DOS format. Your RPi linux system won't understand the DOS file format (mostly line breaks) and will throw errors such as file not found.

Converting to DOS format seems to happen most often when moving files around from one device to another or when emailing files.

If you encounter problems try minimising the number of file copies by directly downloading to your SD boot folder.

Download the following files

Once you've got the files in the /boot directory of your SD card, proceed with the installation as per Installing_EW-7811Un_WifiDongle#Ethernet / Internet Enabled.


By default the installation script creates the correct entry in the /etc/network/interface file. If you look at the contents of the file you'll see that you secret wifi passphrase is included in plan text.

cat /etc/network/interfaces

shows (something like)

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp
wpa-ssid "<YOUR SSID>"

If multiple uses can access your RPi, you not wish to share your secret pass phrase, fortunately the tool wpa_passphrase is there to help, code:


and it will return

	ssid="<YOUR SSID>"

replace the line wpa-psk "<YOUR PASSPHRASE>" with wpa-psk 761f48b534c79fe2c7dv3c2305e25b9d4bdfd51166e73c95dd78e44fa742a2e4 , to mask your passphrase from anyone who gains access to the network config file.

Confirmed working with

  • 2012-07-15-wheezy-raspbian [2]


  1. Automatic setup for RTL8188CUS based wifi adapters
  2. 2012-07-15-wheezy-raspbian.zip
  3. EW-7811Un WifiDongle
  4. http://elinux.org/RPi_edimax_EW-7811Un
  5. http://elinux.org/RPi_VerifiedPeripherals#Working_USB_Wifi_Adapters
  6. raspberry-pi-meets-edimax-ew-7811un-wireless-ada.html