linux(debian)安裝USB無線網卡(tp-link TL-WN725N rtl8188eu )__linux

來源:互聯網
上載者:User

1: 台式機家裡面不想再走線了。 於是去某東買了個USB無線網卡。tp的WN725N  USB,非常小, 和羅技的優聯結收器差不多大。


2:  驅動能自己識別是不指望了,既然是usb網卡,插入USB後,那就lsusb

看到新增加了一行Realtek的  ID 0bda:8179

root@debian:/# lsusbBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 003 Device 007: ID 0bda:8179 Realtek Semiconductor Corp. Bus 003 Device 004: ID 04d9:4545 Holtek Semiconductor, Inc. Bus 003 Device 005: ID 050d:0304 Belkin Components FSU304 USB 2.0 - 4 Ports HubBus 003 Device 006: ID 046d:c52b Logitech, Inc. Unifying ReceiverBus 003 Device 008: ID 0781:5567 SanDisk Corp. Cruzer Blade

google下了,發現是WN725N_V2 

http://wikidevi.com/wiki/TP-LINK_TL-WN725N_v2


看下晶片集是

Probable Linux driver 8188eu

3: 既然拿到了晶片集號, 那就首先去debian官網看有木有驅動的包, 找到了realtek的韌體驅動

http://packages.debian.org/wheezy/firmware-realtek

不過支援的列表裡面並沒有8188eu, 只有8188ce, 8188cu

那就只有去realtek的官網下了, 在

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false

逛了一圈,還是沒有發現8188eu. 無奈去github上逛逛, 發現了這個

https://github.com/lwfinger/rtl8188eu


接下來就好辦多了。

記得安裝好編譯環境和git

#apt-get install gcc linux-headers-`uname -r` make automake git

如果不想git, 那直接download zip file也一樣的

#unzip rtl8188eu-master.zip

#cd rtl818...

#make && make install

接下來

#depmod -a

#modprobe 8188eu 

(擼主開始是modprobe rtlwifi發現還是識別不了,想了半天。。。)

接下來就查看下是否有無線網卡了

#ifconfig -a

wlan0     Link encap:Ethernet  HWaddr 0c:88:77:22:fa:39            UP BROADCAST MULTICAST  MTU:1500  Metric:1          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

這個時候系統已經裝好無線驅動了。用網路管理軟體or /etc/network/interfaces 裡面都可以配置。


注:

但是這個github更新的驅動,訊號非常差,重啟後訊號20%,半米的距離只有2格。 5米幾乎就沒有了。而且會衰減下去,10秒後訊號只有2%了。15秒過後就0%了,根本不能用

這裡某群的群主上傳了一個8188eu.deb 的包。 試過後發現訊號非常穩定, 比windows下的還要強, 推薦這個

地址在csdn這裡:(不要積分) 

http://download.csdn.net/detail/rainysia/6754869


安裝前需要卸載掉之前安的這個github上下的驅動,

先去/lib/firmware/rtlwifi/ 刪除掉rtl8188eufw.bin

然後去/lib/modules/`uname -r`/kernel/net/wireless 刪除掉lib8188eu.ko  (`uname -r` 這個是你的核心版本,比如我的是3.2.0.4-amd64)

然後去刪除掉掛載,先查看名字  lsmod | more 找到8188eu

然後rmmod 8188eu

這樣就把之前的驅動給卸載掉了


然後安裝新的deb包的8188eu驅動

dpkg -i rtl8188eu-dkms_0+git20130406_all.deb

如果提示缺少dkms,那就安一個

apt-get install dkms

dpkg -i rtl8188eu-dkms_0+git20130406_all.deb Selecting previously unselected package rtl8188eu-dkms.(Reading database ... 172290 files and directories currently installed.)Unpacking rtl8188eu-dkms (from rtl8188eu-dkms_0+git20130406_all.deb) ...dpkg: dependency problems prevent configuration of rtl8188eu-dkms: rtl8188eu-dkms depends on dkms (>= 2.1.0.0); however:  Package dkms is not installed.dpkg: error processing rtl8188eu-dkms (--install): dependency problems - leaving unconfiguredErrors were encountered while processing: rtl8188eu-dkmsroot@debian:/home/softs# apt-get install dkmsReading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following NEW packages will be installed:  dkms0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.1 not fully installed or removed.Need to get 77.4 kB of archives.After this operation, 196 kB of additional disk space will be used.Get:1 http://mirrors.163.com/debian/ wheezy/main dkms all 2.2.0.3-1.2 [77.4 kB]Fetched 77.4 kB in 0s (81.7 kB/s)Selecting previously unselected package dkms.(Reading database ... 172545 files and directories currently installed.)Unpacking dkms (from .../dkms_2.2.0.3-1.2_all.deb) ...Processing triggers for man-db ...Setting up dkms (2.2.0.3-1.2) ...Setting up rtl8188eu-dkms (0+git20130406) ...Loading new rtl8188eu-0+git20130406 DKMS files...First Installation: checking all kernels...Building only for 3.2.0-4-amd64Building initial module for 3.2.0-4-amd64Done.8188eu:Running module version sanity check. - Original module   - No original module exists within this kernel - Installation   - Installing to /lib/modules/3.2.0-4-amd64/updates/dkms/depmod....DKMS: install completed.

然後去/lib/modules/`uname -r`/updates/dkms ,發現多了一個8188eu.ko

先看看wlan0 有沒有, ifconfig 發現沒有 應該是還沒掛上

執行depmod -a

然後insmod 8188eu.ko

再ifconfig -a 發現有了wlan0 

把網路管理切換過去,發現訊號很滿。 自此,安裝完了8188eu的驅動. 




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.