Logo for Fars Robotics WebsiteFars Robotics Website


Configuring your wifi network for Raspbian Jessie.

Default /etc/network/interfaces file as supplied in the raspbian jessie image - do not edit /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

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

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


Edit the file /etc/wpa_supplicant/wpa_supplicant.conf and add the network={.....} section. Use the command sudo nano /etc/wpa_supplicant/wpa_supplicant.conf to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Your-Network-Name"
    psk="Your-Network-Password"
}

You may add additional network={.....} sections defining different networks if your Pi is mobile and you carry it around with you. This will allow you to connect to these other networks at various different locations without needing to change your set up.


Configuring your wifi network for Raspbian Wheezy using wpa_supplicant.

Default /etc/network/interfaces file as supplied in the raspbian wheezy image - do not edit

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


Edit the file /etc/wpa_supplicant/wpa_supplicant.conf and add the network={.....} section. Use the command sudo nano /etc/wpa_supplicant/wpa_supplicant.conf to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Your-Network-Name"
    psk="Your-Network-Password"
}

You may add additional network={.....} sections defining different networks if your Pi is mobile and you carry it around with you. This will allow you to connect to these other networks at various different locations without needing to change your set up.


Configuring your wifi network for Raspbian Wheezy without using wpa_supplicant.


Networks using WPA/WPA2 security

Edit the file /etc/network/interfaces using the following format for networks with WPA/WPA2 security. Use the command sudo nano /etc/network/interfaces to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter.  Enclose Your-Network-Name and Your-Network-Password within quotation marks as in the example below.

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "Your-Network-Name"
wpa-psk "Your-Network-Password"


Networks using WEP security

Edit the file /etc/network/interfaces using the following format for networks using WEP security. Use the command sudo nano /etc/network/interfaces to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter. Do not use quotation marks around Your-Network-Name and Your-Network-Password.

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid Your-Network-Name
wireless-key Your-Network-Password


Networks using no security

Edit the file /etc/network/interfaces using the following format for networks using no security. Use the  command sudo nano /etc/network/interfaces to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter. Do not use quotation marks around Your-Network-Name.

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid Your-Network-Name



Installing the rtl8188eu based wifi adaptor driver for Raspbian.

For those using the TP-LINK TL-WN725N V2 WiFi adaptor which uses the rtl8188eu chip set you will need to install the driver as it is not included as standard in Raspbian.

Driver files currently available for the TP-LINK TL-WN725N V2 and similar wifi dongles using the 8188eu driver module for systems using the Raspbian image are in the following list.

IMPORTANT: First check the version of Linux you have. Use the command uname -a to find the version of Linux.

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.10.24+ #614 PREEMPT Thu Dec 19 20:38:42 GMT 2013 armv6l GNU/Linux
pi@raspberrypi ~ $

The important part is 3.10.24+ #614. This is just an example and your version may be different. Select the right driver for the version you have from the list below.

NOTE: I have changed the driver I use and there is no need to install a seperate firmware file.

rtl8188eu drivers for 3.6.11+

3.6.11+ #371 up to #520 inclusive    - 8188eu-20130209.tar.gz
3.6.11+ #524, #528, #532             - 8188eu-20130815.tar.gz
3.6.11+ #538, #541, #545, #551, #557 - 8188eu-20130830.tar.gz

rtl8188eu drivers for 3.10.xx+

3.10.18+ #577       - 8188eu-20131105.tar.gz
3.10.18+ #579, #585 - 8188eu-20131106.tar.gz
3.10.18+ #587       - 8188eu-20131110.tar.gz
3.10.18+ #590, #592 - 8188eu-20131111.tar.gz
3.10.18+ #594, #596 - 8188eu-20131113.tar.gz

3.10.19+ #600       - 8188eu-20131113.tar.gz

3.10.21+ #602, #604 - 8188eu-20131113.tar.gz

3.10.22+ #606       - 8188eu-20131206.tar.gz

3.10.23+ #608       - 8188eu-20131209.tar.gz

3.10.24+ #610       - 8188eu-20131209.tar.gz
3.10.24+ #614       - 8188eu-20131219.tar.gz

3.10.26+ #628       - 8188eu-20140110.tar.gz

3.10.27+ #630       - 8188eu-20140117.tar.gz

3.10.28+ #632, #634 - 8188eu-20140117.tar.gz

3.10.29+ #636, #638 - 8188eu-20140117.tar.gz

3.10.30+ #640, #642 - 8188eu-20140117.tar.gz

3.10.32+ #646, #648 - 8188eu-20140117.tar.gz

3.10.33+ #654, #656 - 8188eu-20140117.tar.gz

3.10.33+ #658       - 8188eu-20140117.tar.gz

3.10.34+ #660, #661 - 8188eu-20140117.tar.gz

3.10.36+ #662, #664 - 8188eu-20140117.tar.gz
3.10.36+ #665, #666 - 8188eu-20140117.tar.gz

3.10.37+ #667, #669 - 8188eu-20140117.tar.gz

3.10.38+ #675       - 8188eu-20140117.tar.gz

rtl8188eu drivers for 3.12.xx+

3.12.18+ #673, #677 - 8188eu-20140425.tar.gz
3.12.18+ #679, #680 - 8188eu-20140501.tar.gz

3.12.19+ #681, #682 - 8188eu-20140509.tar.gz
3.12.19+ #684       - 8188eu-20140509.tar.gz

3.12.20+ #685, #686 - 8188eu-20140509.tar.gz
3.12.20+ #687       - 8188eu-20140509.tar.gz

3.12.21+ #688, #689 - 8188eu-20140509.tar.gz

3.12.22+ #690, #691 - 8188eu-20140616.tar.gz

3.12.23+ #692       - 8188eu-20140626.tar.gz

3.12.24+ #693, #694 - 8188eu-20140705.tar.gz

3.12.25+ #698, #700 - 8188eu-20140705.tar.gz
3.12.25+ #701       - 8188eu-20140705.tar.gz

3.12.26+ #702, #703 - 8188eu-20140705.tar.gz
3.12.26+ #704, #707 - 8188eu-20140705.tar.gz
3.12.26+ #708       - 8188eu-20140705.tar.gz

3.12.28+ #709, #710 - 8188eu-20140908.tar.gz
3.12.28+ #712, #713 - 8188eu-20140908.tar.gz

3.12.29+ #714, #715 - 8188eu-20140908.tar.gz

3.12.30+ #717       - 8188eu-20141017.tar.gz

3.12.31+ #718, #720 - 8188eu-20141026.tar.gz

3.12.32+ #721       - 8188eu-20141107.tar.gz

3.12.33+ #722, #724 - 8188eu-20141107.tar.gz

3.12.34+ #725, #727 - 8188eu-20141107.tar.gz

3.12.35+ #730, #733 - 8188eu-20141107.tar.gz

3.12.36+ #737       - 8188eu-20141107.tar.gz

rtl8188eu drivers for 3.18.xx+.  For the Pi 2B see the list further below.

3.18.3+ #739, #740  - 8188eu-20150120.tar.gz
3.18.3+ #741, #742  - 8188eu-20150120.tar.gz

3.18.5+ #744, #746  - 8188eu-20150130.tar.gz
3.18.5+ #748        - 8188eu-20150130.tar.gz

3.18.6+ #753, #754  - 8188eu-20150208.tar.gz

3.18.7+ #755, #756  - 8188eu-20150212.tar.gz
3.18.7+ #757        - 8188eu-20150212.tar.gz

3.18.7+ #758, #759  - 8188eu-20150223.tar.gz

3.18.8+ #761, #763  - 8188eu-20150227.tar.gz
3.18.8+ #764, #765  - 8188eu-20150227.tar.gz

3.18.9+ #767, #768  - 8188eu-20150307.tar.gz
3.18.9+ #772,       - 8188eu-20150307.tar.gz

3.18.10+ #774, #775 - 8188eu-20150325.tar.gz

3.18.11+ #776, #777 - 8188eu-20150406.tar.gz
3.18.11+ #780, #781 - 8188eu-20150406.tar.gz

3.18.12+ #782, #783 - 8188eu-20150428.tar.gz

3.18.13+ #784, #785 - 8188eu-20150509.tar.gz

3.18.14+ #792, #793 - 8188eu-20150523.tar.gz
3.18.14+ #794       - 8188eu-20150523.tar.gz

3.18.16+ #795       - 8188eu-20150617.tar.gz

3.18.16+ #796       - 8188eu-20150619.tar.gz

rtl8188eu drivers for 4.0.xx+.  For the Pi 2B see the list further below.

4.0.5+ #797         - 8188eu-20150621.tar.gz

4.0.6+ #798, #799   - 8188eu-20150623.tar.gz

4.0.7+ #801, #802   - 8188eu-20150630.tar.gz

4.0.8+ #803, #804   - 8188eu-20150713.tar.gz
4.0.8+ #805         - 8188eu-20150713.tar.gz

4.0.9+ #807         - 8188eu-20150724.tar.gz

rtl8188eu drivers for 4.1.xx+.  For the Pi 2B see the list further below.

4.1.4+ #808         - 8188eu-20150806.tar.gz

4.1.5+ #809         - 8188eu-20150813.tar.gz

4.1.6+ #810, #811   - 8188eu-20150818.tar.gz
4.1.6+ #812         - 8188eu-20150818.tar.gz

4.1.7+ #813, #815   - 8188eu-20150914.tar.gz

4.1.8+ #818         - 8188eu-20150929.tar.gz

4.1.9+ #819         - 8188eu-20151002.tar.gz

4.1.10+ #820, #821  - 8188eu-20151004.tar.gz

4.1.11+ #822        - 8188eu-20151023.tar.gz

4.1.12+ #824, #825  - 8188eu-20151028.tar.gz

4.1.13+ #826, #827  - 8188eu-20151113.tar.gz

4.1.14+ #828        - 8188eu-20151210.tar.gz

4.1.15+ #829        - 8188eu-20151215.tar.gz

4.1.15+ #830        - 8188eu-20151216.tar.gz

rtl8188eu drivers for the Pi 2B  3.18.xx-v7+.

3.18.5-v7+ #746, #748  - 8188eu-v7-20150202.tar.gz

3.18.6-v7+ #753, #754  - 8188eu-v7-20150208.tar.gz

3.18.7-v7+ #755, #756  - 8188eu-v7-20150212.tar.gz
3.18.7-v7+ #757        - 8188eu-v7-20150212.tar.gz

3.18.7-v7+ #758, #759  - 8188eu-v7-20150223.tar.gz

3.18.8-v7+ #761, #763  - 8188eu-v7-20150227.tar.gz
3.18.8-v7+ #764, #765  - 8188eu-v7-20150227.tar.gz

3.18.9-v7+ #767, #768  - 8188eu-v7-20150307.tar.gz
3.18.9-v7+ #772        - 8188eu-v7-20150307.tar.gz

3.18.10-v7+ #774, #775 - 8188eu-v7-20150325.tar.gz

3.18.11-v7+ #776, #777 - 8188eu-v7-20150406.tar.gz
3.18.11-v7+ #780, #781 - 8188eu-v7-20150406.tar.gz

3.18.12-v7+ #782, #783 - 8188eu-v7-20150428.tar.gz

3.18.13-v7+ #784, #785 - 8188eu-v7-20150509.tar.gz

3.18.14-v7+ #792, #793 - 8188eu-v7-20150523.tar.gz
3.18.14-v7+ #794       - 8188eu-v7-20150523.tar.gz

3.18.16-v7+ #795       - 8188eu-v7-20150617.tar.gz

3.18.16-v7+ #796       - 8188eu-v7-20150619.tar.gz

rtl8188eu drivers for the Pi 2B, 4.0.xx-v7+.

4.0.5-v7+ #797         - 8188eu-v7-20150621.tar.gz

4.0.6-v7+ #798, #799   - 8188eu-v7-20150623.tar.gz

4.0.7-v7+ #801, #802   - 8188eu-v7-20150630.tar.gz

4.0.8-v7+ #803, #804   - 8188eu-v7-20150713.tar.gz
4.0.8-v7+ #805         - 8188eu-v7-20150713.tar.gz

4.0.9-v7+ #807         - 8188eu-v7-20150724.tar.gz

rtl8188eu drivers for the Pi 2B, 4.1.xx-v7+.

4.1.4-v7+ #808         - 8188eu-v7-20150806.tar.gz

4.1.5-v7+ #809         - 8188eu-v7-20150813.tar.gz

4.1.6-v7+ #810, #811   - 8188eu-v7-20150713.tar.gz
4.1.6-v7+ #812         - 8188eu-v7-20150818.tar.gz

4.1.7-v7+ #813, #815   - 8188eu-v7-20150914.tar.gz

4.1.8-v7+ #818         - 8188eu-v7-20150929.tar.gz

4.1.9-v7+ #819         - 8188eu-v7-20151002.tar.gz

4.1.10-v7+ #820, #821  - 8188eu-v7-20151004.tar.gz

4.1.11-v7+ #822        - 8188eu-v7-20151023.tar.gz

4.1.12-v7+ #824, #825  - 8188eu-v7-20151028.tar.gz

4.1.13-v7+ #826, #827  - 8188eu-v7-20151113.tar.gz

4.1.14-v7+ #828        - 8188eu-v7-20151210.tar.gz

4.1.15-v7+ #829        - 8188eu-v7-20151215.tar.gz

4.1.15-v7+ #830        - 8188eu-v7-20151216.tar.gz


Link to driver files - use date code from list above to download required driver

https://dl.dropboxusercontent.com/u/80256631/8188eu-201xyyzz.tar.gz

NOTE: If updating firmware revisions, say from 3.10.23+ to 3.10.24+, and they use the same driver, in this case 8188eu-20131209.tar.gz, you will still need to reinstall the driver on the newer version of Linux, even though the driver has not changed as it will be loaded from a different director by the new Linux revision and you need to install it in the new directory.

The driver installation instructions expect you to be using Raspbian, either installed from a basic rasbian image or installed using NOOBS.

If you have a wired internet connection install the driver with the following commands

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-201xyyzz.tar.gz <--set driver data code
tar -zxvf 8188eu-201xyyzz.tar.gz                                         <--set driver data code
sudo install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a

If you do not have an internet connection the driver file will need to be downloaded on another computer and copied to the SD card. I use a Windows laptop and will use that as an example of how to copy and install the wifi driver.

Open a web browser on your Windows computer and download the driver. Check the name of the driver file before saving it and correct it if necessary. I have sometimes found Windows tries to save the driver file as 8188eu-201xyyzz.tar.tar when it should be 8188eu-201xyyzz.tar.gz. Substitute the correct file name for "xyyzz".

Take the SD card and load it into an SD card reader on your Windows computer. Copy the driver file, 8188eu-201xyyzz.tar.gz, from your Windows computer to the SD card. Safely remove the SD card from the card reader by clicking the safe removal icon in the task bar and install the SD card in your Raspberry Pi and power on and login.

After logging in you will need to copy the driver file to your home directory. How you do this is dependent on whether you installed rasbian using NOOBS or directly from a Rasbian image. If you are running raspbian installed using NOOBS you need to run the following commands to copy the driver file to your home directory

sudo mount /dev/mmcblk0p1 /mnt
sudo mv /mnt/8188eu-201xyyzz.tar.gz .
sudo umount /dev/mmcblk0p1

You will need the period, full stop (.), after the filename in the sudo mv command. The mount/umount commands are required as the driver file is in the NOOBS boot directory, not the rasbian boot directory, so the NOOBS boot directory needs mounting to be able to access the driver file.

If you installed raspbian directly from a rasbian image use the following command to copy the driver file to your home directory

sudo mv /boot/8188eu-201xyyzz.tar.gz .

Now the driver file has been moved to your home directory the driver installation can be completed using the following commands

tar -zxvf 8188eu-201xyyzz.tar.gz                        <--set data code for driver version above.
sudo install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a

Once the driver is loaded you will need to configure the network set up so the Pi will connect to your wifi network if it has not already been done.

To help in installing or updating the driver @LaFambe has produced a very simple script which is available here.

https://dl.dropboxusercontent.com/u/80256631/install-8188eu.tgz

which will automatically select and install the correct version of the driver for the version of Raspbian being used, and the firmware if necessary. I was quite impressed by it and it really does make life much simpler. To install the script look here.

http://www.raspberrypi.org/forum/viewtopic.php?p=479340#p479340

Thank you very much, LaFambe.


MrEngman