Install a wireless network adapter using ndiswrapper and linux-wlan-ng in linux

Source: Internet
Author: User
In linux, use ndiswrapper and linux-wlan-ng to install the wireless network adapter-Linux general technology-Linux technology and application information. For more information, see the following. The key to installing a wireless network card in linux is whether the driver is correct. Here we will introduce two solutions, namely ndiswrapper or linux-wlan-ng.

The former virtualizes the windows api on the linux platform, and then uses the driver in windows to drive the NIC. The latter directly implements the driver.

1. ndiswrapper
See http://ndiswrapper.sourceforge.n... ex. php/Installation

1.1 preparations
-Install the source code of the kernel, under Redhat is the kernel-source.rpm package.

-Download the latest ndiswrapperpackage at http://sourceforge.net/projects/ndiswrapperto decompress the package.

-Prepare the driver for the NIC in win. The driver should be the latest, which is specified for XP. Here I use a linksys USB-wlancard. The driver is WUSB54AG. inf and WUSB54AG. sys.

1.2 Installation
-Compile and install ndiswrapper and use it directly.
Make install

You can.


-Add the driver, switch to the directory where the driver is stored, and run
Ndiswrapper-I WUSB54AG. inf

Pass
Ndiswrapper-l

Check that the drivers have been installed.

Load 1.3
Ndiswrapper is a module compiled into the kernel, so you need to load it to work.

Ndiswrapper-m

Only one execution is required.
Modprobe ndiswrapper

If no error message is displayed, you can view the wlan0 device through iwconfig. However, you cannot determine whether the NIC is correctly driven.

Must Pass
Iwlist wlan0 scan

Try it to see if you can find an Access Point nearby. If it can be found, it indicates that the NIC has been successfully driven, you can use it.

The subsequent configuration is similar to that of a common Nic.

2. linux-wlan-ng
Reference ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README

2.1 preparation
Download the latest package to ftp.linux-wlan.org/pub/linux-wlan-ngto decompress the package.

2.2 compile and install
Make all and make install directly.

Load 2.3
The loading method varies depending on the network card type you use. For details, refer to the README document.

The USB Nic is used.

Modprobe prism2_usb prism2_doreset = 1
Wlanctl-ng wlan0 lnxreq_ifstate ifstate = enable

You can also use iwlist wlan0 scan to test whether the installation is successful.
Related Article

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.