Installing the driver for TP-LINK TL-WN727N on Ubuntu 14.04

74,032

Here is how you install it in about five minutes.

Krato: "Hey, friend, can I borrow your ethernet connection for just a few minutes? I brought along six of your favorite beverage."

Friend: "Sure, Krato, glad to help you! Let me put a couple of those beverages on ice."

You then open a terminal and do:

sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/porjo/mt7601.git 
cd mt7601/src
make
sudo make install
sudo mkdir -p /etc/Wireless/RT2870STA/
sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/
sudo modprobe mt7601Usta

Your wireless should now be working. Detach the ethernet, thank the friend and enjoy!

Here is how to do it in about five days...maybe.

Go here: http://packages.ubuntu.com/

Select Trusty in the drop-down box. Search for linux-headers-generic and build-essential. Be sure to locate their dependencies and the dependencies of the dependencies. Be sure to download the correct version, either 32- or 64-bit. Once you've download about fifteen or so packages on another computer, transfer them with a USB stick or similar to the desktop of your Ubuntu computer. Open a terminal and install them:

cd ~/Desktop
sudo dpkg -i *.deb

It may complain that a package is missing a dependency. If so, download that and add it to the desktop and try again.

Write many posts on the forum to tell old Chili how you're stuck. Rinse and repeat.

Once that's all done, get this: https://github.com/porjo/mt7601/archive/master.zip Download it and then transfer it to your desktop, too. Right-click it and select 'Extract Here.' Now, back to the terminal.

cd ~/Desktop/mt7601/src
make
sudo make install
sudo mkdir -p /etc/Wireless/RT2870STA/
sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/
sudo modprobe mt7601Usta

Your wireless should now be working.

In either event, when Update Manager installs a later kernel, known as linux-image, after the requested reboot, you must recompile:

cd ~/mt7601/src
make clean
make
sudo make install
sudo modprobe mt7601Usta

Please retain the files and these instructions for that time.

Share:
74,032

Related videos on Youtube

krato
Author by

krato

I'm a computer science student and I love programming.

Updated on September 18, 2022

Comments

  • krato
    krato over 1 year

    I am new to Ubuntu and I have problems with my Ubuntu 14.04. I plugged my wifi adapter but it did not work so I guess I need to install the driver manually but I don't know how to do it. I currently don't have an internet connection in that PC since the wifi adapter does not work and I cannot connect through ethernet cable.

    These are the things I've tried so far (still did not work):

    • Installing the ath9k driver from a tar.gz. I followed this
    • Following this for installing the rt2800usb. I had errors on sudo modprobe -v rt2800usb saying "error could not insert rt2800usb invalid argument"

    I appreciate your suggestions

    EDIT: Here is what my wifi adapter looks like for reference.

    EDIT2: Output of lsusb

    • chili555
      chili555 over 9 years
      Please edit you question to add the result of this terminal command: lsusb Welcome to askubuntu!
    • chili555
      chili555 over 9 years
    • chili555
      chili555 over 9 years
      Please note the usb.id is the exact same as the duplicate.
    • krato
      krato over 9 years
      It still requires an internet connection. Do you have an idea how to do it without?
  • krato
    krato over 9 years
    Thanks man, you really know your thing! +1 for the "how to borrow tutorial", +1 for the options. I wanna try the 5 days but the dependencies might kill me. Gonna do the 5 minutes see if it works.
  • krato
    krato over 9 years
    it works now! ran ip link and there's ra0. lsmod also lists the driver. Would you know why this is still not part of the Linux kernel source tree?
  • chili555
    chili555 over 9 years
    Inclusion in the kernel and then inclusion in an Ubuntu LTS version is a long process, I believe two years or more. Please see my edit above. Glad it's working!
  • AgentLiquid
    AgentLiquid over 8 years
    Excellent - confirmed this on TP-LINK TL-WN727N on Ubuntu 15.10. What's confusing is that there is already an "mt7601u" driver running, but it seems like that's not enough: what's needed is the "mt7601Usta" (as shown above).
  • chili555
    chili555 over 8 years
    @AgentLiquid Please start your own new question. I suspect it needs firmware. Let's find out.
  • SashikaXP
    SashikaXP over 8 years
    Brilliant.. worked like charm in mint 17.2 (2016)
  • Piash Sarker
    Piash Sarker about 6 years
  • chili555
    chili555 about 6 years
    @PiashSarker I would expect so after three years! The driver is included in recent Ubuntu versions. Please start your own new question and we'll be glad to help.