linux(debian)安装USB⽆线⽹卡(tp-linkTL-
WN725Nrtl8188eu)
1: 台式机家⾥⾯不想再⾛线了。于是去某东买了个USB⽆线⽹卡。tp的WN725N  USB,⾮常⼩, 和罗技的优联接收器差不多⼤。
2:  驱动能⾃⼰识别是不指望了,既然是usb⽹卡,插⼊USB后,那就lsusb
看到新增加了⼀⾏Realtek的  ID 0bda:8179
[html]
1. root@debian:/# lsusb
2. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
linux系统安装步骤csdn4. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
5. Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
6. Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
7. Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
8. Bus 003 Device 007: ID 0bda:8179 Realtek Semiconductor Corp.
9. Bus 003 Device 004: ID 04d9:4545 Holtek Semiconductor, Inc.
10. Bus 003 Device 005: ID 050d:0304 Belkin Components FSU304 USB 2.0 - 4 Ports Hub
11. Bus 003 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver
12. Bus 003 Device 008: ID 0781:5567 SanDisk Corp. Cruzer Blade
google下了,发现是WN725N_V2
看下芯⽚组是
Probable Linux driver 8188eu
3: 既然拿到了芯⽚组号,那就⾸先去debian官⽹看有⽊有驱动的包, 到了realtek的固件驱动
不过⽀持的列表⾥⾯并没有8188eu,只有8188ce, 8188cu
那就只有去realtek的官⽹下了, 在
逛了⼀圈,还是没有发现8188eu. ⽆奈去github上逛逛,发现了这个
接下来就好办多了。
记得安装好编译环境和git
[python]
1. #apt-get install gcc linux-headers-`uname -r` make automake git
如果不想git,那直接download zip file也⼀样的
#unzip rtl8188eu-master.zip
#
#make && make install
接下来
#depmod -a
#modprobe 8188eu
(撸主开始是modprobe rtlwifi发现还是识别不了,想了半天。。。)
接下来就查看下是否有⽆线⽹卡了
#ifconfig -a
[python]
1. wlan0    Link encap:Ethernet  HWaddr 0c:88:77:22:fa:39
2.          UP BROADCAST MULTICAST  MTU:1500  Metric:1
3.          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
4.          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
5.          collisions:0 txqueuelen:1000
6.          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这⾥:(不要积分)
安装前需要卸载掉之前安的这个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]
1. dpkg -i rtl8188eu-dkms_0+git20130406_all.deb
2. Selecting previously unselected package rtl8188eu-dkms.
3. (Reading database ... 172290 files and directories currently installed.)
4. Unpacking rtl8188eu-dkms (from rtl8188eu-dkms_0+git20130406_all.deb) ...
5. dpkg: dependency problems prevent configuration of rtl8188eu-dkms:
6.  rtl8188eu-dkms depends on dkms (>= 2.1.0.0); however:
7.  Package dkms is not installed.
8.
9. dpkg: error processing rtl8188eu-dkms (--install):
10.  dependency problems - leaving unconfigured
11. Errors were encountered while processing:
12.  rtl8188eu-dkms
13. root@debian:/home/softs# apt-get install dkms
14. Reading Done
15. Building dependency tree
16. Reading Done
17. The following NEW packages will be installed:
18.  dkms
19. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
20.    1 not fully installed or removed.
21. Need to get 77.4 kB of archives.
22. After this operation, 196 kB of additional disk space will be used.
23. Get:1 mirrors.163/debian/ wheezy/main dkms all 2.2.0.3-1.2 [77.4 kB]
24. Fetched 77.4 kB in 0s (81.7 kB/s)
25. Selecting previously unselected package dkms.
26. (Reading database ... 172545 files and directories currently installed.)
27. Unpacking dkms (from .../dkms_2.2.0.3-1.2_all.deb) ...
28. Processing triggers for man-db ...
29. Setting up dkms (2.2.0.3-1.2) ...
30. Setting up rtl8188eu-dkms (0+git20130406) ...
31. Loading new rtl8188eu-0+git20130406
32. First Installation: checking
33. Building only for 3.2.0-4-amd64
34. Building initial module for 3.2.0-4-amd64
35. Done.
36.
37. 8188eu:
38. Running module version sanity check.
39.  - Original module
40.    - No original module exists within this kernel
41.  - Installation
42.    - Installing to /lib/modules/3.2.0-4-amd64/updates/dkms/
43.
44.
45.
46. DKMS: install completed.
然后去/lib/modules/`uname -r`/updates/dkms ,发现多了⼀个8188eu.ko
先看看wlan0 有没有, ifconfig 发现没有应该是还没挂上
执⾏depmod -a
然后insmod 8188eu.ko
再ifconfig -a 发现有了wlan0
把⽹络管理切换过去,发现信号很满!⾃此,安装完了8188eu的驱动.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。