DWL-G122, usb unlimited Nic Installation Method in linux
Source: Internet
Author: User
DWL-G122, usb unlimited Nic in linux below the installation method -- Linux general technology-Linux technology and application information, the following is read details. Beijing University of Technology, 20981 Chen Yu
Originally very happy thing, bought a DWL-G122 usb wireless network card, can be used to equipment even slackware v12.0 server (dream all want to lose those messy network cable ). Sorry, I don't know how this company is doing. You don't want to write the linux driver, but you don't even provide the available inf and sys, isn't it necessary to force these linuxer to death.
In this way, I am confused about the users who want to use ndiswrapper to call win32 drivers. I also had a hard time, and decided to install the driver in win32.pdf. Then I tried again and got it to setup.exe. After I installed it, I always wanted to solve it? As instructed by setup.exe, next, next...
Installed, it is indeed of good quality, can be quickly identified under win32, and the connection with my ap is also very smooth. All right, start preparing for linux. First, go to the control panel and choose system> hardware> Device Manager> network adapter, you should see a device named "D-Link xxxxx". Double-click it and select the "driver" tab and select "Driver Details, you can see what the current driver is. the driver at the end of sys.
Ha ha, DWL-G122 texture, look carefully Oh, if wrong I don't take responsibility!
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080114113050.jpg'); ">
On my machine (winxp + sp2), it is: dr71wu.sys, how to package the setup.exe, The. sys found here is the real driver used by the system.
Then, open/windows/system32/drivers to find the Dr71WU. sys, which can be easily found.
This is only the first step. After this step is found, an inf file is required to load this. sys file to be used in linux.
Then start searching. Select the/windows/inf directory, and right-click the Directory and choose search from the context menu. Enter "Dr71WU" for the text content. sys ", and then the search process. This step mainly checks whether there is a ready-made inf containing the configuration information of this sys file.
If you don't have one, you have to guess it and write an inf file manually.
Fortunately, the system found oem63.inf on my machine. Now, with these two files, everything is ready!
Copy oem63.inf and Dr71WU. sys to linux, for example (the operations on my machine are shown below ):
/Usr/local/wlan_drv directory
To start a linux journey, first log on:
Http://sourceforge.net/project/s... 8 & release_id = 562382 download the ndiswrapper source code at this address (note that the source code must be compiled with your Linux kernel code; otherwise, the driver cannot be mounted ), the latest stable version is 1.51. It supports smp multi-core and the basic usage remains unchanged.
After the download is complete, it is decompressed and compiled. Note that you must have the root permission:
# Mv./ndiswrapper-1.51.tar.gz/usr/local/
# Tar zxvf./ndiswrapper-1.51.tar.gz
Extract the ndiswrapper-1.51 directory, enter the directory, and then the general three axes, make, make install.
After these are completed, you can first experiment with the following input:
# Ndiswrapper [Press enter]
A bunch of ndiswrapper help prompts will be output. At this time, your ndiswrapper should have been installed.
Then is the installation of the driver process, pay attention to the first to unplug the dwl-g122:
# Cd/usr/local/wlan_drv/
# Ndiswrapper-I oem63.inf
This is the installation, and then make sure that it has been installed. You can run the following command to check it:
# Ndiswrapper-l [Press enter]
Xxxxx: driver installed
If you see this driver installed, it indicates that it has been installed.
Now it's time to insert the dwl-g122, the usb Nic.
After insertion, make sure that the driver has identified the hardware and still uses the following command:
# Ndiswrapper-l [Press enter]
At this time, you can see the following content:
Xxxxxx: driver installed
(Device id xxxx: xxxx) hardware present
Note that the hardware present here is crucial. This means that the driver has recognized the hardware.
Okay, and then the general operation is done. Set the ip address, essid, wep, route, and so on. If you don't know, please refer to other documents, I directly paste a batch processing script that I use for your convenience:
#! /Usr/bin/bash
Modprobe ndiswrapper
Ifconfig eth0 down
Ifconfig wlan0 down
Iwconfig wlan0 essid "tplink-router"
Iwconfig wlan0 key c2c4-5399-c894-b9fc-34eb-ed9b-3f open
Ifconfig wlan0 192.168.0.254 netmask 255.255.255.0
Ifconfig wlan0 up
Route add default gw 192.168.0.1
Echo "done ."
Exit 0
You need to modify the essid and wep encryption key value of your wireless router. Now, run this script. It should be ready for use.
After more than an hour, I was able to run the win32 Driver in linux. The speed is also very fast. You can completely discard the network cable.
Good luck!
Paste my driver file directly to save some time for your friends: file: wlan_drv.rar
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.