Describes how to install a wireless NIC Driver in Linux.

Source: Internet
Author: User

People who often use computers must be familiar with the relationship between Microsoft and Linux. For Linux, which Microsoft looks down upon, Microsoft can only look straight at it now. The development of Linux is very rapid, and there is a tendency to catch up with Microsoft. Here we will introduce the knowledge of Linux, so that you can learn how to use Linux. Today, we will talk about installing a wireless NIC Driver in the Linux operating system through ndiswrapper. I hope you will remember to install a wireless NIC Driver in the Linux operating system through ndiswrapper.


Installation method 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 from D-Link) with the drivers 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, you can use. 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 obtain 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, The net5211 driver name is displayed.): 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:

 
 
  1. vi /etc/wpa_supplicant/wpa_supplicant.conf   
  2. ctrl_interface=/var/run/wpa_supplicant   
  3. ctrl_interface_group=wheel   
  4. network={   
  5. ssid="any"   
  6. key_mgmt=NONE   
  7.  } 

2) configure the wpa_supplicant file:

Vi/etc/sysconfig/wpa_supplicant

Set the file content:

 
 
  1. # wlan0 and wifi0   
  2. # INTERFACES="-iwlan0 -iwifi0"   
  3. INTERFACES="-iwlan0"   
  4. # ndiswrapper and prism   
  5. # DRIVERS="-Dndiswrapper -Dprism"   
  6. DRIVERS="-Dndiswrapper" 

3) iwlist scanning: scan your AP. // The operation is unsuccessful. The reason 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, you can enter the encryption password of the AP 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.

In this way, you have completed the Linux operating system to install the wireless NIC Driver through ndiswrapper.

  1. Analysis of Open-source Cisco router virtual machines in Linux
  2. 30 Linux releases
  3. Learning Experience: Linux File lock
  4. Linux Extension File System
  5. Easily create a file system in Linux

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.