CenterOS x86_64下的无线驱动安装…

本帖原创,转载注明出处


 不可否认CenterOS不适合用回来做desktop。如果是为了安个桌面玩玩,那还是搞ubuntu去,那边的驱动软件更新快,能做到很好的兼容。

用来研究服务器,这个是不二的选择。

驱动安装:

直接到官方网站下载。我这里的是  rtl8192se

www.realtek.com.tw/download/下载对应版本,无32bit 与64bit 没有区分。

rtl8192se_linux_2.6.0019.1207.2010.tar.gz

参考驱动包中的说明文件

tar -zxvf

cd

make

make install

这其中可能会碰到几个问题。

如:No rule to make target `modules'.  Stop. 

不要看有些网站上说的很诡奇,加上 内核 kernel-header 与 kernel-level 就好了

如:无gcc 自己装一个就好了

最诡异的问题就是这个驱动 在32bit下没有问题,在 64bit 下 提示:

/home/user/download/rtl8192se_linux_2.6.0019.1207.2010/HAL/rtl8192/../../rtllib/rtl819x_Qos.h:60: error: redeclaration of enumerator ‘false’
include/linux/stddef.h:16: error: previous definition of ‘false’ was here
/home/user/download/rtl8192se_linux_2.6.0019.1207.2010/HAL/rtl8192/../../rtllib/rtl819x_Qos.h:60: error: redeclaration of enumerator ‘true’
include/linux/stddef.h:18: error: previous definition of ‘true’ was here
/home/user/download/rtl8192se_linux_2.6.0019.1207.2010/HAL/rtl8192/../../rtllib/rtl819x_Qos.h:60: error: conflicting types for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
已经定义的类似问题

找到对于行注销 ,

./[software dir]/rtllib/rtl819x_Qos.h60 line 注销

这下能安装上了,有 其他问题 问 google

无线设置

本以为安装完驱动就ok了,原来路还长着呢。

驱动安装成功后,能在device中看到无线device了。

如果仅只是没有加密的网络,到这里就可以自己登录了。

对于加密的无线还得安装其他的软件。连接模式通过WPA-PSK进行加密登录的话,就需要用到wpa_supplicant

该软件在驱动包中已经包含,可选安装。

不过我选择的是yum的安装方式,

yum install \*wpa\*

设置配置

vim /etc/wpa_supplicant/wpa_supplicant.conf
修改如下:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

#network={
      ssid="any"
      key_mgmt=NONE
#}
network={
        ssid="NETCORE"
        #psk="123456781"
        psk=21135846dce955a6319561d7216a1407d1cb97b8fb339c05f8773a3f780d6663
}

该配置文件更复杂的设置:

ctrl_interface=/var/run/wpa_supplicant
network={
                        ssid="Belkin"
                        proto=WPA WPA2
                        key_mgmt=WPA-PSK
                        pairwise=CCMP TKIP
                        group=CCMP TKIP
                        psk="12345678"
                        priority=2
         }

注:该文件中不能有多余的注释如:#dsfsdfs 会提示报错

vim /etc/sysconfig/wpa_supplicant
修改INTERFACES为前面装好驱动后识别的网卡,如ath0,我这里是,这个文件基本不用动,系统安装完后已经配置好了:
# Use the flag "-i" before each of your interfaces, like so:
INTERFACES="-i eth1 -i wlan0"
INTERFACES="-i wlan0"

# Use the flag "-D" before each driver, like so:
DRIVERS="-D wext"
DRIVERS="-D wext"

# Other arguments
  -u   Enable the D-Bus interface (required for use with NetworkManager)h
  -f   Log to /var/log/wpa_supplicant.log
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log"

启动wpa服务

sudo /etc/rc.d/init.d/wpa_supplicant start

Starting wpa_supplicant: /etc/wpa_supplicant/wpa_supplicant[ok]-i ath0 -D wext -u -f /var/log/wpa_supplicant.log

以后可以如此启动无线:

sudo /sbin/ifconfig ath0 up
sudo /sbin/ifdown ath0
sudo /sbin/ifup ath0
sudo /etc/rc.d/init.d/wpa_supplicant restart
sudo /etc/rc.d/init.d/iptables restart

至此,基本都设置完成了,如果还不能上网.......

继续设置

继续设置,无线参数,启动无线gui设置要选择的无线网络。

wpa_gui,看到了么,这个就是ubuntu里面的那个网络设置软件,当然,要难看多了。

恭喜,你终于能上网了。


参考连接:
http://wiki.centos.org/HowTos/Laptops/WirelessAR5007EG

http://shellfish.javaeye.com/blog/563668


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值