Prepare before configuration:
Open the normal user command line, modify the root user password,
sudo passwd root
Then log in with the root user.
One: Plug in the wireless network card on the host, start the Ubuntu operating system, enter in the command line
Lsusb
To view basic information about the wireless card.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
By the above information can be known portable WiFi 2 generation chip information is: Ralink 148f:760b.
II: Download the driver source package
Dpo_mt7601u_linuxsta_3.0.0.4_20130913.tar.bz2.zip
After the download, the first decompression under Windows, the extracted files are placed in Ubuntu.
Three:
A. Modify the Os/linux/config.mk file under the source package (change the original n to y)
#support wpa_supplicant
Has_wpa_supplicant=y
#support Native wpasupplicant for Network Manager
Has_native_wpa_supplivant_support=y
B. Modify the USB port recognized file Rtusb_dev_id.c file, in the source package common/rtusb_dev_id.c, if you do not have your device ID number, you will add LSUSB to get the
ID Number:
#ifdef MT7601U
{Usb_device (0x148f,0x6370)},/*ralink 6370*/
{Usb_device (0x148f,0x7601)},/*ralink 6372*/
{Usb_device (0x148f,0x760b)},
#endif//rt7601u//
{}/*terminating entry*/
C. Modify in Os/linux/rt_linux.c in the source directory:
in rows 1121 and 1122 , the
Posfsinfo->fsuid=current_fsuid ();
Posfsinfo->fsgid=current_fsgid ();
Modified to:
posfsinfo->fsuid=* (int *) ¤t_fsuid ();
posfsinfo->fsgid=* (int *) ¤t_fsgid ();
Four:
To compile the source code again
Go to the driver's directory:
Get administrator status: sudo su
Compiling: Make
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Compiling and installing: Make install
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Automatic handling of loading modules: sudo modprobe mt7601usta
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Complete.
Check the network to see:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Then configure the network information and password to log in.
I can add my impressions. Note number: [Email protected]
This article is from the "Sea" blog, please be sure to keep this source http://lyinginsun.blog.51cto.com/11600060/1916671
Ubuntu Install Portable WiFi Drive