1: 臺式機家裏面不想再走線了。 因而去某東買了個USB無線網卡。tp的WN725N USB,很是小, 和羅技的優聯接收器差很少大。html
2: 驅動能本身識別是不期望了,既然是usb網卡,插入USB後,那就lsusbpython
看到新增長了一行Realtek的 ID 0bda:8179linux
- root@debian:/# lsusb
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
- Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
- Bus 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 Hub
- Bus 003 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver
- Bus 003 Device 008: ID 0781:5567 SanDisk Corp. Cruzer Blade
google下了,發現是WN725N_V2 http://wikidevi.com/wiki/TP-LINK_TL-WN725N_v2
git
看下芯片組是github
Probable Linux driver 8188eu
windows
3: 既然拿到了芯片組號, 那就首先去debian官網看有木有驅動的包, 找到了realtek的固件驅動網絡
http://packages.debian.org/wheezy/firmware-realtek
less
不過支持的列表裏面並無8188eu, 只有8188ce, 8188cuide
那就只有去realtek的官網下了, 在ui
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 unconfigured
- Errors were encountered while processing:
- rtl8188eu-dkms
- root@debian:/home/softs# apt-get install dkms
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following NEW packages will be installed:
- dkms
- 0 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-amd64
- Building initial module for 3.2.0-4-amd64
- Done.
-
- 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的驅動.