I had a problem with the wn727n WiFi adapter connecting to ubuntu / mint. I googled for a long time, but I could not find a solution. Having solved the problem, I decided to write it myself. Everything that is written below is intended for beginners.
ATTENTION! THE AUTHOR OF THE ARTICLE IS NOT RESPONSIBLE FOR ANY RESPONSIBILITY FOR DAMAGES!
But, if you do it right, there will be no consequences. Even if something goes wrong, nothing terrible will happen. Let's start.
First of all, open the terminal using the Ctrl + Alt + T keys and enter the following command:
lsusb
')
We see our adapter Ralink RT7601 (highlighted). You may have an Ralink RT5370 adapter. Drivers for different adapters are installed differently. I will describe how to do this for two cases.
Instructions for Ralink RT5370
Follow the
link and select RT8070 / RT3070 / RT3370 / RT3572 / RT5370 / RT5372 / RT5572 USB USB. Download the archive with the driver.
Open the folder in which you saved the driver, and unpack the archive bz2. To do this, right-click on the file and click “Extract here” (“Extract here”).
After that, the tar archive will appear. Once again, unpack it. Click the right mouse button on the file and click “Extract here” (“Extract here”).
Next, we change the name of the folder to something shorter, since we still have to write its way to the console. For example, I called it Driver.
Go to the unpacked folder and open the file /os/linux/config.mk in a text editor
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 username sergey. You enter your username! In the future, change the sergey in the name of your user.
cd /home/sergey//driver/
Next, execute the commands:
sudo make sudo make install sudo modprobe rt5370sta
And that's it! Oh, miracle! WIFI works, enjoy health.
Instructions for Ralink RT7601
In order to get this adapter (Ralink RT7601), you need to have a kernel version 3.19 or higher. if necessary, upgrade your kernel (if you don’t know how, google will help).
Next, follow the
link and download the driver:
Next, the downloaded archive is moved to the home folder and unpacked (right click of the mouse, “extract here”). Rename the resulting folder mt7601-master simply to mt7601.
After that enter the command:
cd mt7601/src
Now we are in the right directory. You can assemble the driver, execute the command:
sudo make
The system will ask for the password - enter (the password is not displayed).
Next, enter the command:
sudo mkdir -p /etc/Wireless/RT2870STA/ cp RT2870STA.dat /etc/Wireless/RT2870STA/
And the last command to turn on our adapter:
insmod os/linux/mt7601Usta.ko
Everything!!! 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 (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 request a password when using sudo. To do this, enter the command:
sudo gedit /etc/sudoers
This window will open:
Looking 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. In it we write or copy:
#! / bin / bash
insmod /etc/Wireless/RT2870STA/mt7601/src/os/linux/mt7601Usta.ko
Click "Save" and close.
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:
We open it. Click "Add".
A window will open. Opposite the "Name" field we write:
autowifi
Opposite the “Team” field we write:
sudo sh /etc/Wireless/RT2870STA/autowifi.sh
Press the button "Add" and close the program. Reboot. After rebooting, everything works. Now you can select the network in the tray.
This completes the “small” instruction for the Ralink RT7601 adapter.
Enjoy your time online!