Install a Wireless NIC driver using ndiswrapper in Linux

Source: Internet
Author: User
Article title: Linux uses ndiswrapper to install a Wireless NIC driver. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification installation methods and steps:
 
I. preparations
 
1. install the source code of the kernel, in the Redhat is the kernel-source.rpm package. // I am using the FC8 kernel and have not upgraded it.
 
2. to begin
 
3. prepare the driver for the NIC in Winxp. The driver should be the latest, which is specified for XP. I am using a PCI wireless network card (dwl-g520) of D-Link, whose drivers are ar5211.sys, ar52119x. sys, and net5211.inf.
 
II. installation and configuration
 
1. Installation
 
(1) Unzip: tar-zxvf ndiswrapper-1.52.tar.gz
 
(2) into the ndiswrapper-1.52: cd ndiswrapper-1.52
 
(3) compile: make // you must set up the compiling environment before this operation, that is, install the development environment.
 
(4) installation: make install // if the default installation path is not used, it can be used. Configure -- prefix = "/etc/local" to specify the installation directory. // This directory is self-built.
 
(5) check the installed version ndiswrapper-v | grep // which does not seem correct. If the installation is successful, version: 1.51 is displayed.
 
(6) to get the Windows XP driver of the wireless network card, I have obtained ar5211.sys, ar52119x. sys, and net5211.inf.
 
(7) go to the drive directory: cd/home/tsm/dwl_g520
 
(8) install the Wireless NIC driver: ndiswrapper-I net5211.inf
 
(9) check whether the driver is installed: ndiswrapper-l // for example, net5211 (driver name): driver installed
 
(10) write the configuration file: ndiswrapper-m
 
Ndiswrapper-ma
 
Ndiswrapper-mi
 
(11) automatically loaded modules after startup: modprobe ndiswrapper
 
2. configuration
 
(1) configure the wpa_supplicant.conf file:
 
  
Vi/etc/wpa_supplicant/wpa_supplicant.conf
Ctrl_interface =/var/run/wpa_supplicant
Ctrl_interface_group = wheel
Network = {
Ssid = "any"
Key_mgmt = NONE
}

 
(2) configure the wpa_supplicant file:
 
Vi/etc/sysconfig/wpa_supplicant
 
Set the file content:
 
  
# Wlan0 and wifi0
# INTERFACES = "-iwlan0-iwifi0"
INTERFACES = "-iwlan0"
# Ndiswrapper and prism
# DRIVERS = "-Dndiswrapper-Dprism"
DRIVERS = "-Dndiswrapper"
 
(3) iwlist scanning: scan your AP. // The operation is unsuccessful. The problem is unknown.
 
(4) after system-> Management-> service-> NetworkManager starts it, its icon is displayed in the upper right corner.
 
(5) click this icon to list your AP and select it for connection. during the connection process, enter the encryption password of the AP (sometimes twice ).
 
This is complete. The encryption type of your AP is automatically detected. If WEP is used, select a few more options for wireless security.
 
In addition, automatic activation of the NIC or wireless Nic will slow down when the NIC is not connected. The best way is to cancel automatic activation when the computer is started. In this way, it will inevitably be too slow to enable.
 

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.