Ubuntu Install Portable WiFi Drive

Source: Internet
Author: User






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 *) &current_fsuid ();



posfsinfo->fsgid=* (int *) &current_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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.