Skip to main content

TP-Link WN725N v2 WIFI on the Raspberry PI

TP-Link WN725N v2 on Raspberry Pi at N speeds (150 Mbps).

So I managed to get the wireless nano-dongle to work on one of my Raspberry Pi's. It's a TP-Link WN725N version 2. It has N capabilities, and it wasn't easy making sure I got N speeds either, more on that later.


To get the drivers into the kernel, I used the script downloadable in this forum post:

You might have to edit the script, basically change the part .../phpBB3/... to .../forums/...
Just run the script and reboot.

N-speeds and connecting it to your network 

Then we want to make sure we get the N-protocol up and running. The key to this lies in the security settings of the wireless, not the Raspberry Pi.
If you run

iwconfig wlan0

the output should look something like:

wlan0     IEEE 802.11bgn  ESSID:"SSID"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.437 GHz  
          Bit Rate:72.2 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-
          Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=100/100  

and some other things.
Here you can see I get all three, b+g+n. If it says "bg" you're doing it wrong, given that you have a N-capable router...

To get it working, you have to only have the AES (CCMP) security ONLY, i.e. NOT TKIP, TKIP is the older security protocol, and gives you only G-speeds, i.e. 54 Mbps. So to fix this, make sure the wireless is setup with WPA(2) AES security. NOTE: this dongle only has one (1) antenna, that's why the N-speed is 150 Mbps, you need an adapter with 2 antennae to get 300 Mbps, but then you probably need a powered USB-hub too.

Then in /etc/network/interfaces you can have (given that you have DHCP and not static IPs):

auto lo

# ethernet
iface lo inet loopback
iface eth0 inet dhcp

# The WLAN network interface
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet dhcp

and then for the important part, in /etc/wpa_supplicant/wpa_supplicant.conf

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


and then it should all be dandy. Some guides tell you to go with something else for "proto" and "pairwise" and don't include "group", these are the TKIP guides, giving G-speeds.

Note: If only get, ~72 Mbps, you should try to activate channel bonding, i.e. get the channel bandwidth of the wireless network (router, ap, etc) of 40 MHz, as opposed to 20 MHz (so it clumps two 20 MHz channels together). However, this can degrade the signal in crowded areas, that's why mine says 72 Mbps.

Reboot and enjoy!

Usefull links:
TKIP vs. AES and setup :
WPA2-PSK setup:


Popular posts from this blog

Screen brightness using Fn keys in i3wm on Lenovo Thinkpad X260

Screen brightness using Fn keys in i3wm

I got a new laptop for work, Lenovo Thinkpad X260. Installed Ubuntu 16.04 Xenial Xerus without much problem.
There are several Fn-hotkeys for the F1-F12 keys, most of them do not work out of the box in Ubuntu, at least not when running i3-window manager.
I managed to solve it in the end. This is how. Part of this solution is from
Thanks for that!

Changing the brightness I figured out that the brightness can be changed with

$ sudo echo VALUE > /sys/class/backlight/intel_backlight/brightness

where VALUE is between 0 and what is given by the output

$ cat /sys/class/backlight/intel_backlight/max_brightness

These paths might be different for you, so you have to figure it out, and edit the paths in the script below to fit your needs.
The script So I created a script that changes the brightness, as mentioned it borrows heavily from the above mentioned page, but there are some changes.

I save it a…

Installing IRAM GILDAS on Ubuntu

    Figure: Screenshot of GILDAS MAPPIN in action viewing an imported FITS spectral cube.

Fore information on IRAM GILDAS, see

NOTE: Updated for Ubuntu 16.04 Xenial Xerus and above.
Nowadays the readme file on the IRAM webpage gives pretty good instructions for Linux as well:

First download the source code from
named "gildas-src-mmmyya.tar.gz" where "mmm" is month e.g. Oct, and "yy" is year e.g. 16 and "a" is some letter which signifies the release number, starting with a.

Unpack and enter the directory (it will be installed in the same directory as the unpacked directory, but with "exe" instead of "src" in the name):
tar -xvzf gildas-src-mmmyya.tar
cd gildas-src-mmmyyaFor the new GNOME3 framework, we still need to download libgtk2.0. Hence the dependencies are (including optional dependencies):
sudo apt install gf…

Installing SMA MIRIAD on Ubuntu (2014/05)

What is MIRIAD? See for information.

Edit : Tested on the Ubuntu 13.04 Raring Ringtail
Edit2 : Tested on the Ubuntu 13.10 Saucy Salamander
Edit3 : Tested on the Ubuntu 14.04 Trusty Tahr

I am not 100% sure about the prerequisites, it should work with the ones below, however (especially after installing IRAM GILDAS).
sudo apt-get install build-essential pgplot5 gfortran libreadline-dev libforms-bin csh cvs Then go and grab the latest binary release from : Got into catalog with highest number. At time of writing this is "2014.7". Choose miriad_linux64_u14_gfortran.tar.gz for Ubuntu.
Unpack it where you want it to install:
tar zxf miriad_linux64_BINARY_gfortran.tar.gz where "BINARY" is your Ubuntu version i.e.  miriad_linux64_u14_gfortran.tar.gz for Ubuntu 14.04.

Enter the catalog and run the "install script":
cd miriad
install/make_miriad_starts then to source the miriad binari…