Connect WN727N WiFi adapter to Ubuntu / Mint

I have a problem connecting wn727n wifi adapter to ubuntu / mint. I googled for a long time, but did not find a solution. Having solved the problem, I decided to write it myself. Everything that is written below is designed for beginners.

ATTENTION! THE AUTHOR OF THE ARTICLE DOES NOT RESPONSIBLE FOR ANY DAMAGES!

But, if you do everything right, there will be no consequences. Even if something goes wrong, nothing bad will happen. Let's get started.

First of all, open the terminal using the keys Ctrl + Alt + T and enter the following command:

lsusb



We see our adapter Ralink RT7601 (highlighted). You may have a Ralink RT5370 adapter. Drivers on different adapters are installed differently. I will describe how to do this for two cases.

Manual for Ralink RT5370


We pass on the link and choose the RT8070 / RT3070 / RT3370 / RT3572 / RT5370 / RT5372 / RT5572 USB USB. Download the archive with the driver.

Open the folder where the driver was saved and unpack the bz2 archive. To do this, right-click on the file and click on “Extract here”.

After that, the tar archive will appear. Unpack it again. Right-click on the file and click on “Extract here”.

Next, change the name of the folder to something shorter, since we still have to write its path to the console. For example, I called it Driver.

We go into the unpacked folder and open the file /os/linux/config.mk in a text editor.

We find the following lines and change the letter n to y:

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT = y

# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT = y


After that, save the file. Open the terminal and go to the unpacked folder. Attention! I have a sergey username. You enter your username! In the future, change sergey to your username.

cd /home/sergey/загрузки/driver/

Next, execute the commands:

sudo make
sudo make install
sudo modprobe rt5370sta

And that’s all! Oh miracle! WIFI works, enjoy your health.

Manual for Ralink RT7601


In order to get this adapter (Ralink RT7601), you need to have a kernel version 3.19 or higher. if necessary - update the kernel (if you do not know how - google will help).

Next, follow the link and download the driver:



Next, we move the downloaded archive to the home folder and unpack it (right-click, “extract here”). Rename the resulting mt7601-master folder simply to mt7601.

After that, enter the command:

cd mt7601/src

Now we are in the right directory. You can build the driver, run the command:

sudo make

The system will ask for a password - enter (password is not displayed).

Next, enter the commands:

sudo mkdir -p /etc/Wireless/RT2870STA/
cp RT2870STA.dat /etc/Wireless/RT2870STA/

And the last command that will enable our adapter:

insmod os/linux/mt7601Usta.ko

All!!! Now ubuntu sees wifi.

But that is not all! Now, after each reboot, you must enter the last command, otherwise the system will not see the adapter (specifically for Ralink RT7601). But there is a way out! You can create a script and add it to startup. Below is written how to do it.

First of all, we need to make sure that the system does not ask for a password when using sudo. To do this, enter the command:

sudo gedit /etc/sudoers

This window opens:



Search for the line:

% sudo ALL = (ALL: ALL) ALL

And change it to:

% sudo ALL = (ALL: ALL) NOPASSWD: ALL

Save the changes - click "Save".

Enter the command:

sudo cp -R mt7601 /etc/Wireless/RT2870STA/

After that, enter the command:

sudo gedit /etc/Wireless/RT2870STA/autowifi.sh

An empty text editor opens. We write or copy in it:

#! / Bin / bash
insmod /etc/Wireless/RT2870STA/mt7601/src/os/linux/mt7601Usta.ko


Click "Save" and close.

We enter the commands:

cd /etc/Wireless/RT2870STA/
sudo chmod +x autowifi.sh

Next, go to the Dash menu and look for the program as in the picture below:



Open it. Click "Add."



A window will open. Opposite the "Name" field, write:

autowifi

Opposite the "Command" field, write:

sudo sh /etc/Wireless/RT2870STA/autowifi.sh

Click the "Add" button and close the program. Reboot. After reboot, everything works. Now you can select a network in the tray.



This completes the “small” instructions for the Ralink RT7601 adapter.

Have fun on the net!

Also popular now: