linux下无线网卡安装的关键在于能否正确的驱动,这里介绍两种方案,即通过ndiswrapper或者linux-wlan-ng。
前者在linux平台上虚拟windows的api,然后用windows下的驱动程序来驱动网卡。而后者直接实现驱动程序。
1. ndiswrapper
参考http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation
1.1 准备工作
- 安装kernel的源码,在Redhat下是kernel-source.rpm包。
- 到http://sourceforge.net/projects/ndiswrapper下载最新的ndiswrapper包,解压。
- 准备好网卡在win下的驱动程序。驱动程序最好是最新的,指定给XP用的。这里我用到的是
linksys的一款USB-Wlan卡。其驱动程序为WUSB54AG.inf和WUSB54AG.sys。
1.2 安装
- 首先编译安装ndiswrapper,直接使用
make install即可。
- 再来是添加驱动程序,切换到存放驱动程序的目录,执行
ndiswrapper -i WUSB54AG.inf通过
ndiswrapper -l查看有那些驱动已经被安装。
1.3 加载
ndiswrapper是被编译成内核的一个模块,所以你需要加载它才能起作用。
ndiswrapper -m只需执行一次。
modprobe ndiswrapper如果没有错误提示,则可以通过iwconfig看到wlan0设备。但此时还不能确定网卡是否被正确驱动。
必须通过
iwlist wlan0 scan试一试,看能否搜索到附近存在的Access Point。如果能找到才说明网卡已经成功驱动,可以使用了。
接下来的配置工作同普通网卡类似,不再复述。
2. linux-wlan-ng
参考ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README
2.1 准备
到ftp.linux-wlan.org/pub/linux-wlan-ng下载最新的包,解压。
2.2 编译安装
很简单,直接make all, make install。
2.3 加载
加载方式依你使用的网卡类型有所不同,具体可以参考附带的README文档。
这里因为用的是USB网卡,所以按照要求执行
modprobe prism2_usb prism2_doreset=1
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable同样可以通过iwlist wlan0 scan测试是否成功安装。
求助thinkpad r400 744511c在fedora中无线网卡安装
求助无线网卡安装:系统为fedora 8
Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux
开机时显示:Wlan0: Error for wireless request“Set Mode”(8B06):SET failed on device wlan0: invalid argument.
激活无线时显示:Wlan0: Error for wireless request“Set Mode”(8B06):SET failed on device wlan0: invalid argument.
正在决定 wlan0 的 IP 信息...SIOCSIFFLAGS: 不支持的操作
SIOCSIFFLAGS: 无效的参数
机器型号:Thinkpad r400 744511c 配置:
处理器名称 Mobile DualCore Intel Core 2 Duo P8400, 2400 MHz (9 x 267)
主板名称 Lenovo ThinkPad R400
总线类型 DDR3 SDRAM
北桥 Intel Cantiga GM45
Intel 平台 Montevina
芯片类型 Mobile Intel(R) 4 Series Express Chipset Family
显示器名称 Lenovo LTN141W1-L05
Conexant Cx20561 @ Intel 82801IB ICH9 - High Definition Audio Controller [A-3] PCI
设备描述 Intel 82801IB ICH9 - High Definition Audio Controller [A-3]
设备描述 (Windows) Microsoft 用于 High Definition Audio 的 UAA 总线驱动程序
无线网卡:Atheros AR5006X(5413) Wireless Network Adapter
有线网卡:Intel 82567LM ICH9M Gigabit Network Connection PCI
用lspci -b命令显示信息如下:
[root@localhost etc]# lspci -b
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 07)
00:03.0 Communication controller: Intel Corporation Unknown device 2a44 (rev 07)
00:19.0 Ethernet controller: Intel Corporation Unknown device 10f5 (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation Mobile 2 port SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
03:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
[root@localhost ~]# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
无线网卡在windows下显示为:Atheros AR5006X(5413)
linux下显示为: Atheros Communications, Inc. AR5006EG 802.11 b/g
网上有的说是驱动不对或者是fireware没有安装。但我已安装。也用ndiswrapper
安装,但还是报如上错误。请各位帮一下忙。
高手请进 USB无线网卡不能正常使用
为什么我的无线网卡,刚开机可以识别,用iwconfig 进行某些配置后,再用iwconfig 就找不到无线网卡了,lsusb也不见有反应,识别不到USB设备ID, 这是什么原因啊,无线网卡驱动还是USB Host 驱动原因 ? (网卡我在同一部电脑上XP系统中试过,是可用的)(LINUX系统为FC8,无线网卡:VNT6656,驱动版本为1.18)
kernel boot option
本人刚安装fedora,正在解决无线网卡的问题,上述步骤已经完成,但是根据网上一篇专门针对我的网卡的文章,我需要在kernel boot option里设置acpi=noirq。
本人是新手,请问如何设置kernel boot option,多谢!
make install的时候就出错啊
我想在FC5下安装TP-LINK W321G无线网卡,按照上面的步骤,在make install的时候就出错了。看网上有些文章说要编译内核什么的。
我该怎么做啊?
使用ndiswrapper 安装完无线网卡驱动后,接下来如
网卡:Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
用命令iwlist wlan0 scan 已经找到Access Point.
请问然后如何配置IP......................
另外重启机器后用iwconfig无法找到wlan0,重新执行modprobe ndiswrapper 这个才可以找到,如何让开机就自动驱动无线网卡?
我是新手,请说得具体些
谢谢。
编译内核费了2G空间,我要减肥
今天为了配无线网卡,编译了内核结果硬盘少了2G多造成空间紧张,有办法删掉点东西马?我的usr目录有6G 多,lib下1.7G,share下.2..2G,src下1.5G。我只是想配个无线网卡这个结果太恐怖了,有节约点的方法马?我用的是madwifi,虽然是配出来了但是很郁闷。高手来说说。
好像不灵
我安装上面的方法做了,开始用2.6.17的内核编译,生成模块后用modprobe ndiswrapper时告诉我模块格式不正确。
后用fedora core5本身的内核编译顺利通过,modprobe ndiswraaper时无线网卡灯亮,但系统死机,无法重启只好强行关机。
我装的kingnet的w510c
我装的kingnet的w510c 无线网卡 用ndiswrapper加载后,能正常使用一小会,然后就会死机(freeze).后来到洋文网站上看了看,说是和bios的post(开机自检)有关。如果自检选择最大化(也就是完全自检),那么就不会出现死机的情况。
我的是明基的笔记本 ,用的是insyde software bios。这个bios没法设置,所以我也没能试验一下。如果各位遇到同样的问题,可以试验一下,看看是不是管用
我编译出来的 ndiswrapper 模块不能加载?
按文中所述方法,进行到 modprobe ndiswrapper 时,出现这样的错误:
ndiswrapper: disagrees about version of symbol struct_moduleFATAL: Error inserting ndiswrapper (/lib/modules/2.6.11-1.1369_FC4/misc/ndiswrapper.ko): Invalid module format
不知如何解决,找到 http://ndiswrapper.sourceforge.net/ ,居然说偶无权访问。郁闷死。
这是因为内核版本与下载的 ndiswrapper 需要的内核
呵呵,偶来自问自答好了。下载的 ndiswrapper 需要的内核版本是 2.6.16,而我用的是 2.6.11,所以……
不过,后来偶一咬牙换了核,结果还是不行,据说是缺省设备块大小(4K)不匹配,要重新编译内核,俺就放弃了。
现在用的 MadWIFI,还不错。
无线网络产生了重大
无线网络产生了重大影响的世界,早在第二次世界大战。通过使用无线网络,信息可能被派往海外或敌后方便,高效和更可靠。自那时以来,无线网络的不断发展和其用途已经大幅增长。手机的一部分,庞大的无线网络系统。人们使用这些手机每天沟通彼此。海外发送信息是有可能通过无线网络系统,利用卫星和其他通讯信号的世界各地 cheap hosting 。紧急服务,如警察部门利用无线网络进行交流的重要信息迅速。个人和企业使用无线网络来传送和共享数据迅速,无论是在一个小办公室建筑物或整个world.A的无线网络更容易,因为任何人都可以尝试进入网络的广播信号。许多网络提供的WEP -有线等效保密-安全系统,被认为是容易受到入侵。尽管WEP的不阻止某些入侵者,安全问题已经引起了dedicated servers 一些企业坚持使用有线网络,直至安全得到改善。另一种类型的安全无线网络的WPA - Wi - Fi保护访问。提供更安全的WPA无线网络比WEP安全性设置。使用防火墙将有助于安全漏洞可帮助解决安全问题在一domain names 些无线网络更容易受到伤害。