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:
- 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 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.
- Analysis of Open-source Cisco router virtual machines in Linux
- 30 Linux releases
- Learning Experience: Linux File lock
- Linux Extension File System
- Easily create a file system in Linux