Linux下無線網卡安裝2

最近更新系統, 筆記本上刪除了RedHat9,裝上了Mandrake10,雖然它自己就擁有無線網卡配置程序,但是我得Realtek8180網卡不在支持之列, 只好令尋它法, 這時想到了使用NdisWrapper, 它支持在Linux下直接使用Window的無線網卡程序。

首先下載NdisWrapper, http://sourceforge.net/projects/ndiswrapper/ 
這是源碼程序, 需要自己在Linux下編譯。

其安裝過程被詳細描述在http://ndiswrapper.sourceforge.net/phpwiki/index.php/Installation
我簡要說明一下:

1.編譯
用命令清除以前的編譯記錄, 這是在你需要重新編譯時執行的
make distclean
開始編譯
make
裝載文件
make install

2.安裝驅動程序
這裏要說明的是你的驅動程序可能不能正常工作, 此時可以利用lspci命令查看網卡的PCI總線位置,另外如果知道芯片種類, 可以嘗試裝載已經被驗證的其它品牌網卡的驅動程序
驅動程序列表在這裏 http://ndiswrapper.sourceforge.net/phpwiki/index.php/List?PHPSESSID=4e03295b44714ab8ea053985c33aff5a

由於第一步已經裝上了ndiswrapper, 現在你可以利用它來轉載驅動
ndiswrapper -i ###.inf
用命令查看裝載的驅動程序情況
ndiswrapper -l
如果顯示類似的信息,說明程序裝載正確
Installed ndis drivers
### driver present, hardware present

3. 裝載模塊
現在要把ndiswrapper裝入系統
modprobe ndiswrapper
之後你可以查看dmesg命令得到的信息,如果出現
ndiswrapper version V laoded
證明模塊裝入

4.配置
你需要工具wireless tools for linux, 可以從這裏得到最新版本 http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
由於我要配置的是Ad-Hoc網絡, 因此使用命令
iwconfig wlan0 mode Ad-Hoc
然後輸入WEP密碼
iwconfig wlan0 key open xxxxxxxxxx
open是指開放結構驗證
利用ifconfig配置網卡地址, gw設置網關, 手動設置DNS

現在應該建立好一個良好的基於Linux的無線局域網了!

5. 最後我們要系統自動加載
ndiswrapper -m
在/etc/modprobe.preload文件(mardrake10)中加入
ndiswrapper

Reference

1. Installation guide of NdisWrapper, http://ndiswrapper.sourceforge.net/phpwiki/index.php/Installation
2. Wireless Tools for Linux, http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章