I'm having a problem connecting wn727n wifi adapter to ubuntu/mint. I googled for a long time, but I 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 IS NOT RESPONSIBLE FOR ANY DAMAGE CAUSED!
But, if you do everything right, there will be no consequences. Even if something goes wrong, nothing bad 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 Ralink RT7601 adapter (highlighted). You may have a Ralink RT5370 adapter. Drivers for different adapters are installed differently. I will describe how to do this for two cases.
Manual for Ralink RT5370
We pass on
Open the folder where you saved the driver and unzip the bz2. To do this, right-click on the file and click "Extract here".
After that, the tar archive will appear. Let's unpack it again. Right-click on the file and click "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 /os/linux/config.mk file 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, we save the file. Open the terminal and go to the unpacked folder. Attention! My username is sergey. You enter your username! In the future, change sergey to your username.
cd /home/sergey/Π·Π°Π³ΡΡΠ·ΠΊΠΈ/driver/
Next, we execute the commands:
sudo make
sudo make install
sudo modprobe rt5370sta
And that's it! Oh miracle! WIFI works, use it to your health.
Manual for Ralink RT7601
In order to run this adapter (Ralink RT7601), you need to have kernel version 3.19 or higher. if necessary, update the kernel (if you donβt know how, google will help).
Next we go to
Next, move the downloaded archive to your home folder and unpack (right-click, "extract here"). Rename the resulting folder mt7601-master simply to mt7601.
After that, enter the command:
cd mt7601/src
We are now in the correct directory. You can build the driver, run the command:
sudo make
The system will ask for a password - enter it (the 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 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
The following window will open:
Looking for a 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.
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:
We open it. Click "Add".
A window will open. Opposite the field "Name" we write:
autowifi
Opposite the field "Team" we write:
sudo sh /etc/Wireless/RT2870STA/autowifi.sh
Click the "Add" button and close the program. We reboot. After reboot everything works. Now you can select the network in the tray.
This completes the "small" instruction for the Ralink RT7601 adapter.
Have fun online!
Source: habr.com