歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu 8.04下安裝TP-Link TL-WN-322G+ 1.0 無線網卡

由於工作需要,最經需要在Ubuntu 8.04下使用TL-WN-322G+ 1.0無線網卡,網上有很多說法,也在開源社區下載了這塊無線網卡芯片的驅動ZD1211B的源碼,一頓make後出現了一大堆困擾我很長時間而又無法解決的error,最終經自己摸索和網上的搜尋,終於找到了安裝成功,下面將方法寫下:

此塊網卡芯片組比較新,是zd1215,還好Ubuntu8.04的內核能識別,轉戰ndiswrapper,這是一個在Linux下加載Windows驅動的軟件,直白的說就是在Linux直接使用Windows驅動,可以直接apt-get install安裝或者到http://ndiswrapper.sourceforge.net/下載。 插上網卡,通過lsusb命令可以看到系統已經識別了網卡,但是就是不可用,因為芯片的發射部分比驅動新。

1.安裝ndiswrapper:

apt-get install ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk_0.8.3-1_i386.deb

2.提取驅動:

找到網卡的Windows XP驅動程序:zd1211bu.inf和zd11buxp.sys兩個文件,復制到ubuntu中。

3.安裝驅動:

# ndiswrapper -i zd1211bu.inf
   zd1211bu : driver installed 
   device (0ACE:1215) present (alternate driver: zd1211rw)

# ndiswrapper -l
zd1211bu : driver installed
        device (0ACE:1215) present (alternate driver: zd1211rw)

4.設置系統啟動時加載:

#gedit /etc/modules,在末尾加入:ndiswrapper

  檢查當前加載的模塊

#depmod -a

加載mdiswrapper模塊

#modprobe ndiswrapper

5.加載wlan0

 # ndiswrapper -m 

在ubuntu的模塊黑名單上加上網卡的名稱 ,該黑名單的作用就是不用ubuntu加載,而是自己根據需要加載

#gedit /etc/modprobe.d/blacklist 在文件末尾加入blacklist zd1211rw

6.重啟Ubuntu,執行iwconfig命令。輸出應該類似如下:

wlan0     IEEE 802.11g  ESSID:"TP-LINK" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:1D:0F:85:7B:76  
          Bit Rate=54 Mb/s   Tx-Power:-2147483648 dBm   Sensitivity=0/3 
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:4/100  Signal level:-93 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

開啟網卡:ifconfig wlan0 up 此時網卡的燈應該亮起,安裝成功,後續設置IP的過程就是a piece of cake。

需注意:TL-WN-322G+ 2.0的網卡由於采用了更新的芯片組,所以Ubuntu8.04的內核不支持無法識別,再使用上述方法時出現“invalid driver”加載失敗。期待新的內核能解決這一問題。

Copyright © Linux教程網 All Rights Reserved