1: 臺式機家里面不想再走線了。 于是去某東買了個USB無線網卡。tp的WN725N USB,非常小, 和羅技的優(yōu)聯(lián)接收器差不多大。
2: 驅動能自己識別是不指望了,既然是usb網卡,插入USB后,那就lsusb
看到新增加了一行Realtek的 ID 0bda:8179
[html]
view plaincopyroot@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下了,發(fā)現(xiàn)是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逛了一圈,還是沒有發(fā)現(xiàn)8188eu. 無奈去github上逛逛, 發(fā)現(xiàn)了這個
https://github.com/lwfinger/rtl8188eu接下來就好辦多了。
記得安裝好編譯環(huán)境和git
[python]
view plaincopy#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發(fā)現(xiàn)還是識別不了,想了半天。。。)
接下來就查看下是否有無線網卡了
#ifconfig -a
[python]
view plaincopywlan0 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)
這個時候系統(tǒng)已經裝好無線驅動了。用網絡管理軟件or /etc/network/interfaces 里面都可以配置。
注:
但是這個github更新的驅動,信號非常差,重啟后信號20%,半米的距離只有2格。 5米幾乎就沒有了。而且會衰減下去,10秒后信號只有2%了。15秒過后就0%了,根本不能用
這里某群的群主上傳了一個8188eu.deb 的包。 試過后發(fā)現(xiàn)信號非常穩(wěn)定, 比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
[python]
view plaincopydpkg -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 ,發(fā)現(xiàn)多了一個8188eu.ko
先看看wlan0 有沒有, ifconfig 發(fā)現(xiàn)沒有 應該是還沒掛上
執(zhí)行depmod -a
然后insmod 8188eu.ko
再ifconfig -a 發(fā)現(xiàn)有了wlan0
把網絡管理切換過去,發(fā)現(xiàn)信號很滿! 自此,安裝完了8188eu的驅動.