Centos6.5 安装无线网卡驱动实现无线上网

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u013006504/article/details/25894325

        满心欢喜地安装了Centos,却发现不能用无线网络,原来centos不像ubuntu那样大部分的驱动都帮你装好了。ubuntu装好就能直接连无线网络,但是centos却不行。

       下面演示一下我是如何实现centos的无线上网功能的。

一、查看是否安装了无线网卡驱动

            

出现以上的结果证明你的没有安装,不能无线上网。如果你已经装了网卡驱动并能实现无线上网就会有如下显示:


二、查看无线网卡的型号

 [root@Mr-zhao software]# lspci    |grep  -i   network

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL 8188CE 802.11b/g/n WiFi Adapter (rev 01)

可以看到我的网卡类型为 RTL8188CE

三、查看系统内核版本

[root@Mr-zhao software]# uname   -r
2.6.32-431.el6.i686

四、根据自己的网卡型号和系统内核版本下载无线网卡驱动

下载地址:http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=228&DownTypeID=3&GetDown=false&Downloads=true

这里要注意是:我的内核是2.6.32,但是我下的Linux driver for kernel 2.6.24 (and later),2.6.24这个版本没能装成功.后来这个Linux driver for kernel 2.6.23 (and earlier)版本居然能安装成功。

五、将下载的tar包,进行编译安装
 既然是tar源码包地编译安装,那么先要有编译工具,不然会报错!

1、[root@Mr-zhao software]# yum  install  gcc  -y                //安装gcc编译工具

2、解压tar源码包,进行安装。


 3、阅读readme.txt 文件。

4、执行 make; make install 安装


    囧~报错了!

解决方法如下:

        yum install kernel-devel  -y

5、make clean ,再执行make; make install。就ok啦!


六、重启机器就可以连接无线网络了!





参考资料:

http://www.centoscn.com/image-text/config/2013/1017/1881.html

http://doc.chinaunix.net/linux/201309/2920514.shtml





展开阅读全文

Centos6.4安装无线网卡驱动

11-20

我装的是centos6.4 minimal版,差不多都准备好之后。上网找了TP-WN9271的网线网卡驱动源码,打算编译驱动模版,但是编译不成功。kernel-devel,kernel-headers,gcc都安装好了的。版本也对应...然后在http://wireless.kernel.org/en/users/Download/stable/#compat-wireless_3.0_stable_releases上找到我的网卡需要的驱动模块编译,发生以下错误。rn系统内核版本是2.6.32-358.el6.x86_64.另外我在2.6.32-279xxxxx的内核上编译成功,也尝试过编译多个版本的驱动源代码,都不行。rn编译出错提示如下:请各路大侠帮忙分析解决下,我找了好几天了,可是还是不行。rn[url=http://stackoverflow.com/questions/20055775/make-modules-error-2][/url]rnrnIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:54,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.34.h:295:1: warning: "rcu_dereference_protected" redefinedrnIn file included from include/linux/tracepoint.h:18,rn from /home/software/compat-wireless-3.6.8-1/include/linux/tracepoint.h:19,rn ........rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:103: error: redefinition of ‘kstrtou32_from_user’rninclude/linux/kernel.h:313: note: previous definition of ‘kstrtou32_from_user’ was herern/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:108: error: redefinition of ‘kstrtos32_from_user’rninclude/linux/kernel.h:318: note: previous definition of ‘kstrtos32_from_user’ was herernIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:60,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:119:1: warning: "kfree_rcu" redefinedrnIn file included from include/linux/tracepoint.h:18,rn from /home/software/compat-wireless-3.6.8-1/include/linux/tracepoint.h:19,rn from include/linux/module.h:18,rn from include/linux/textsearch.h:7,rn from include/linux/skbuff.h:27,rn from include/linux/if_ether.h:126,rn from include/linux/netdevice.h:29,rn from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.29.h:5,rn from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:49,rn from :0:rninclude/linux/rcupdate.h:389:1: warning: this is the location of the previous definitionrnIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:62,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.2.h:80: error: redefinition of ‘dma_zalloc_coherent’rninclude/linux/dma-mapping.h:171: note: previous definition of ‘dma_zalloc_coherent’ was herernIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:63,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.3.h:36: error: redefinition of ‘skb_complete_wifi_ack’rninclude/linux/skbuff.h:2142: note: previous definition of ‘skb_complete_wifi_ack’ was herernIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:19:1: warning: "wake_up_all_locked" redefinedrnIn file included from include/linux/completion.h:11,rn from include/linux/mm_types.h:12,rn from include/linux/kmemcheck.h:4,rn from include/linux/skbuff.h:18,rn from include/linux/if_ether.h:126,rn from include/linux/netdevice.h:29,rn from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.29.h:5,rn from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:49,rn from :0:rninclude/linux/wait.h:160:1: warning: this is the location of the previous definitionrnIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:31,rn from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:24: error: redefinition of ‘fault_in_multipages_writeable’rninclude/linux/pagemap.h:471: note: previous definition of ‘fault_in_multipages_writeable’ was herern/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:51: error: redefinition of ‘fault_in_multipages_readable’rninclude/linux/pagemap.h:498: note: previous definition of ‘fault_in_multipages_readable’ was herern/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:243: error: redefinition of ‘ether_addr_equal’rninclude/linux/etherdevice.h:185: note: previous definition of ‘ether_addr_equal’ was herernIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:32: error: redefinition of ‘kmalloc_array’rninclude/linux/slab.h:220: note: previous definition of ‘kmalloc_array’ was herern/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:87: error: redefinition of ‘eth_hw_addr_random’rninclude/linux/etherdevice.h:156: note: previous definition of ‘eth_hw_addr_random’ was herernIn file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:66,rn from :0:rn/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.6.h:86: error: redefinition of ‘eth_random_addr’rninclude/linux/etherdevice.h:124: note: previous definition of ‘eth_random_addr’ was herernmake[3]: *** [/home/software/compat-wireless-3.6.8-1/compat/main.o] Error 1rnmake[2]: *** [/home/software/compat-wireless-3.6.8-1/compat] Error 2rnmake[1]: *** [_module_/home/software/compat-wireless-3.6.8-1] Error 2rnmake: *** [modules] Error 2[/code] 论坛

没有更多推荐了,返回首页