1: 台式机家里面不想再走线了。 于是去某东买了个USB无线网卡。tp的WN725N USB,非常小, 和罗技的优联接收器差不多大。
2: 驱动能自己识别是不指望了,既然是usb网卡,插入USB后,那就lsusb
看到新增加了一行Realtek的 ID 0bda:8179
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
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
#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的驱动.