如何在Ubuntu 13.04上安装新版本的RTL8187驱动程序?

好吧,Ubuntu让我在Linux世界中感到非常受欢迎,并在严重问题上开启了它的怀抱。 我想我不会说我是新手,但我现在已经使用Ubuntu差不多5年了。

我一直有一个很大的问题,我的Alfa AWUS036H无线适配器正在经历非常缓慢的连接。 下载5MB需要大约5-10分钟,我通过我的提供商获得100mbps的下载速度。 这在Windows上运行得很好,但是现在我已经切换到Ubuntu,我遇到了很多问题。

我在这里读到,如果我重新安装新版本的Realtek RTL8187驱动程序,它将解决我的速度问题。 我下载了最新版本的RTL8187L驱动程序,按照提供的步骤进行操作,最后得到了这个堆栈跟踪:

make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic' CC [M] /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:153:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_probe' /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:155:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_disconnect' /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:168:12: error: 'rtl8187_usb_probe' undeclared here (not in a function) /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:169:16: error: 'rtl8187_usb_disconnect' undeclared here (not in a function) /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function 'rtl8180_tx': /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function 'rtl8187_usb_initendpoints': /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: At top level: /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3762:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_probe' /home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3862:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_disconnect' make[2]: *** [/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o] Error 1 make[1]: *** [_module_/home/lehmanlb/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic' make: *** [all] Error 2 

这是我的iwconfig:

 lehmanlb@lehmanlb-p6710f:~/Desktop/rtl8187L_linux_1041.0209.2012$ iwconfigwlan1 IEEE 802.11bg ESSID:"6WFBC" Mode:Managed Frequency:2.462 GHz Access Point: 00:7F:28:64:42:80 Bit Rate=54 Mb/s Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off Link Quality=70/70 Signal level=-30 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:89 Missed beacon:0 eth0 no wireless extensions. lo no wireless extensions. wlan0 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=27 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off 

如果您需要更多信息,请告诉我们! 我很想在这里工作! 谢谢。

这最后一个答案在LUbuntu中对我来说就像一个魅力。 每次重新启动时我都会注意到我必须重复这些最后的步骤。 无论如何,喜欢“粘合”这是一个永久的东西。 我正在使用HP All in 1交易而且我不喜欢bios如何不让我关闭板载wifi而且没有外部“关闭”开关。 我试图接受好的坏事,并使用板载无线互联网,而Realtek运行airmon-ng。 你从这个网站获得了良好的流量,现在已经20次到这个页面,因为它实际上解决了我的问题。 但是我想实际上“修复”修复它,而不是像我在这里那样绑定它。

回复:

 sudo modprobe rtl8187 sudo iwconfig wlan1 rate 5.5M fixed sudo iwconfig wlan1 frag 2346 sudo iwconfig wlan1 rts 2347 sudo iwconfig wlan1 txpower 30 set in rc.local ^^ 

此外,我的这张特殊卡的版本不会让我在没有经典错误的情况下将其设置为30!

无线请求“Set Tx Power”出错(8B26):设备wlan1上的SET失败; 无效的论点。

为此,我把数字改为前20,它没有错误了……嗯嗯,它的数字……所以尝试了21,22等等,这个特定卡的版本高达27它错了。 所以….我提出了我的问题,那些错误与txpower部分,尝试一个较小的数字。

 sudo modprobe rtl8187 sudo iwconfig wlan1 rate 5.5M fixed sudo iwconfig wlan1 frag 2346 sudo iwconfig wlan1 rts 2347 sudo iwconfig wlan1 txpower 30 

在rc.local中设置^^