1.采用http://prism54.org/下islsm和prism均不成功,使用ndiswrapper 1.52模拟windows下接口程序进行http://ndiswrapper.sourceforge.net/joomla/(注意内核至少2.6.18 or 2.4.26,不够的要先升级)
2.成功添加无线网卡配置项,激活以后还不能使用,可以ping通自己,但是无法外连接,突然发现没有输入过无线网络密码。应该就是这个问题导致连接失败了。解决:
(3)如果采用了WEP加密,需要设置WEP密码:
#iwconfig ethX key password XXXXXX
对应40位和128位加密,password分别为6位和10位的十六进制数字。
(4)设置SSID,其中ESSID为无线接入(Access Point)的SSID。
# iwconfig ethX essid ESSID
(5)创建/etc/sysconfig/network/ifcfg-ethX配置文件,使得机器每次启动时,无线网卡都会自动获得IP地址。该文件内容如下:
BOOTPROTO=‘dhcp’
MTU=‘’
REMOTE_IPADDR=‘’
STARTMODE=‘onboot’
UNIQUE=‘’
(6)启动无线网卡:
#ifconfig ethX up
(通过iwconfig看到wlan0设备。但此时还不能确定网卡是否被正确驱动。必须通过 iwlist wlan0 scan)
--------------------------------------------------------------------------------------
参考资料详情:
1.(1)http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,installation/
(2)http://linux.chinaunix.net/doc/driver/2005-01-26/939.shtml
fc3安装802.11g usb无线网卡经验 |
---|
|
作者:motor98 2005-01-26 17:04:12 来自:Linux先生 |
刚刚配置了一下我的baffulo 802.11g usb 网卡, 感觉还可以. 速度和windows差不多. kernel是缺省的2.6.9. 驱动用的是ndiswrapper. 无线路由器上的wap设成了open, 用mac access list代替. 1. 安装fc3的时候要装kernel开发包 2. 下载ndiswrapper 源码. http://ndiswrapper.sf.net 3. 然后编译ndiswrapper. > make install 4. 下载 buffalo usb 网卡for windows xp的驱动. 这个个人根据自己的网卡可以到厂家的网站上去下载. 注意, 要下载for xp的驱动. 5. 在xp 的驱动中找到 xxx.inf 和 yyy.sys 文件. 放在同一个目录中. 把这个windows xp驱动安装到ndiswrapper中. > ndiswrapper -i xxx.inf 6. 加载内核模块 > modprobe ndiswrapper 7. 运行 dmesg|tail 查看一下是不是装上了. 如果装上了应该能看到: ndiswrapper: driver driver1 added wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx 8. 在/etc/sysconfig/network-scripts目录中创建ifcfg-wlan0配置文件. 个人根据自己的情况填入dhcp, dns, mac address等. 9. 运行 system-config-network, 你会发现多了一个网卡wlan0. 启动它就好了. 大功告成. |
(3) http://www.chinalinuxpub.com/read.php?wid=2379
.http://sourceforge.net/projects/ndiswrapper下载最新的ndiswrapper包,我的版本是ndiswrapper-1.52.tar.gz
3、准备好网卡在Winxp下的驱动程序。驱动程序最好是最新的,指定给XP用的。我用到的是D-Link的一款PCI无线网卡(dwl-g520),其驱动程序是ar5211.sys、ar52119x.sys和net5211.inf。
二、安装及配置
1、安装
(1)解压:tar -zxvf ndiswrapper-1.52.tar.gz
(2)进入ndiswrapper-1.52:cd ndiswrapper-1.52
(3)编译:make //在此操作之前必需先把编译环境搭建好,即:安装好开发环境。
(4)安装:make install //如果不采取默认的安装路径,则可以用.configure --prefix="/etc/local"来指定安装目录。 //此目录是自建。
(5)查看安装后的版本ndiswrapper -v | grep //此处似乎不对。如安装成功则显示version: 1.51
(6)获取该无线网卡的WindowsXP驱动,我取了ar5211.sys、ar52119x.sys和net5211.inf。
(7)进入该驱动所在目录:cd /home/tsm/dwl_g520
(8)安装无线网卡驱动:ndiswrapper -i net5211.inf
(9)查看驱动是否安装:ndiswrapper -l //如:显示net5211(驱动名称) : driver installed
(10)写入配置文件:ndiswrapper -m
ndiswrapper -ma
ndiswrapper -mi
(11)启动后模块自动加载:modprobe ndiswrapper
2、配置
(1)然后配置wpa_supplicant.conf文件:
vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="any"
key_mgmt=NONE
}
(2)配置wpa_supplicant文件:
vi /etc/sysconfig/wpa_supplicant
将该文件内容设置为:
# wlan0 and wifi0
# INTERFACES="-iwlan0 -iwifi0"
INTERFACES="-iwlan0"
# ndiswrapper and prism
# DRIVERS="-Dndiswrapper -Dprism"
DRIVERS="-Dndiswrapper"
(3)iwlist scanning 扫描一下你的AP //此处未成功,未知原因待查。
(4)系统->管理->服务->NetworkManager 启动它后,将在右上解出现它的图标。
(5)单击该图标,将会列出你的AP,然后选中它进行连接,连接过程中输入AP的加密密码(有时要输入两次才能成功)。
至此已完毕。此时会自动检测你的AP加密类型。如是WEP请在无线安全性那里多选几个试试。
另外:由于开机自动激活网卡或无线网卡会在网卡无链接的情况下启动过慢。最好办法就是取消启动计算机机时自动激活。这样就必免了开启过慢。
2. http://www.3671041.com/Article/soft/linux/200706/6182_2.html