sentos6.3安装成功了,但是没有无线网络,如何才能搞定 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
chenyaobin7
V2EX    Linux

sentos6.3安装成功了,但是没有无线网络,如何才能搞定

  •  
  •   chenyaobin7 2013-03-17 15:21:14 +08:00 5669 次点击
    这是一个创建于 4641 天前的主题,其中的信息可能已经有所发展或是发生改变。
    sentos6.3安装成功了,但是没有无线网络,如何才能搞定。

    http://blog.csdn.net/chinawangyajun/article/details/7610862 我按照这个步骤下来,到

    # make -C /lib/modules/`uname -r`/build/ M=`pwd 提示没有规则可创建目标‘uname’
    10 条回复    1970-01-01 08:00:00 +08:00
    chenyaobin7
        1
    chenyaobin7  
    OP
       2013-03-17 15:29:45 +08:00
    提示是 没有那个文件或者目录 不是上面的提示
    chenyaobin7
        2
    chenyaobin7  
    OP
       2013-03-17 15:33:57 +08:00
    make: *** /lib/modules/"release"/build: No such file or directory. Stop.

    Then you do not have the proper packages installed, since installing the
    proper packages will create /lib/modules/"release"/build on your system 找到了 看来帮助文件很有用,可惜阴文太差
    chenyaobin7
        3
    chenyaobin7  
    OP
       2013-03-17 16:20:41 +08:00
    求助啊,有这个解释,但是我还是解决不乐儿问题啊
    monkeydev
        4
    monkeydev  
       2013-03-17 16:21:31 +08:00
    @chenyaobin7 标题错了。。。
    还是我打开方式不对。。。
    swulling
        5
    swulling  
       2013-03-17 16:23:10 +08:00
    centos主攻服务器系统啊,你桌面装这个。。

    P.S. 不要就照着教程来,要先理解这个教程做了什么,如果不能理解,请不要做
    cassyfar
        6
    cassyfar  
       2013-03-17 16:45:53 +08:00
    感觉你这句make命令都没懂...
    你先打uname -r,看下你的linux kernel的version,然后ls下/lib/modules里有这个路径不。应该是没有的,然后你mkdir -p /lib/modules/`uname -r`/build/ 创建一个这个路径。

    最后强烈建议你先在虚拟机里装,这样不需要一上来就要解决这些折腾人的问题。
    @swulling 说得很对,Centos是做服务器,你这整得,折腾不。
    ioiioi
        7
    ioiioi  
       2013-03-18 00:07:35 +08:00
    我今天才玩了一把wireless on centos,不过芯片跟你的不一样,供参考:
    ioiioi
        8
    ioiioi  
       2013-03-18 00:08:28 +08:00
    有一块古老的贝尔金pci无线网卡,芯片是AR2413/AR2414:

    [root@bw-control network-scripts]# lspci
    ...
    11:00.0 Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
    ...

    好在centos5.8能认出来,并自动加载了ath5k驱动
    [root@bw-control network-scripts]# dmesg | grep ath5k
    ath5k 0000:11:00.0: registered as 'phy0'
    ath5k phy0: Atheros AR2413 chip found (MAC: 0x78, PHY: 0x45)

    因此该无线网卡可以在centos5中使用

    [root@bw-control network-scripts]# ifup wlan0
    [root@bw-control network-scripts]# iwlan wlan0 scan

    通过该命令可找到欲附着的AP ssid

    接着通过wpa_passphase生成基本的配置文件

    [root@bw-control network-scripts]# wpa_passphase jk_hangye <passphase> > /etc/sysconfig/network-scripts/wpa.conf

    然后通过wpa_supplicant附着到AP

    [root@bw-control network-scripts]# wpa_supplicant -Dwext -iwlan0 -cwpa.conf
    (wext) Device wlan0 kernel driver name: ath5k.
    Device wlan0 kernel driver name: ath5k.
    ioctl[SIOCSIWAUTH]: Operation not supported
    WEXT auth param 4 value 0x0 - Trying to associate with c8:d3:a3:32:ba:96 (SSID='jk_hangye' fr
    eq=2457 MHz)
    Associated with c8:d3:a3:32:ba:96
    WPA: Key negotiation completed with c8:d3:a3:32:ba:96 [PTK=CCMP GTK=TKIP]
    CTRL-EVENT-CONNECTED - Connection to c8:d3:a3:32:ba:96 completed (auth) [id=0 id_str=]

    看似有问题,实则OK

    [root@bw-control network-scripts]# dmesg | less
    ...
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    wlan0: direct probe to AP c8:d3:a3:32:ba:96 (try 1)
    wlan0: deauthenticating from c8:d3:a3:32:ba:96 by local choice (reason=3)
    wlan0: direct probe to AP c8:d3:a3:32:ba:96 (try 1)
    wlan0: direct probe to AP c8:d3:a3:32:ba:96 (try 2)
    wlan0: direct probe responded
    wlan0: authenticate with AP c8:d3:a3:32:ba:96 (try 1)
    wlan0: authenticated
    wlan0: associate with AP c8:d3:a3:32:ba:96 (try 1)
    wlan0: RX AssocResp from c8:d3:a3:32:ba:96 (capab=0x431 status=0 aid=6)
    wlan0: associated
    ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    padlock: VIA PadLock not detected.
    wlan0: no IPv6 routers present
    ...

    需要注意的事,wpa_supplicant只是将无线网卡附着到AP,并通过wpa1/2的认证,dhcp尚未开启,因此还需要:

    [root@bw-control network-scripts]# dhclient wlan0
    Internet Systems Consortium DHCP Client V3.0.5-RedHat
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/

    Listening on LPF/wlan0/00:11:50:d3:bd:93
    Sending on LPF/wlan0/00:11:50:d3:bd:93
    Sending on Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=0x40a739ed)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x40a739ed)
    DHCPOFFER from 192.168.1.1
    DHCPREQUEST on wlan0 to 255.255.255.255 port 67 (xid=0x40a739ed)
    DHCPACK from 192.168.1.1 (xid=0x40a739ed)
    bound to 192.168.1.106 -- renewal in 39511 seconds.


    从而获得IP地址,实现无线网卡的完整接入。
    bwlinux
        9
    bwlinux  
       2013-03-18 09:12:23 +08:00   1
    LZ首先要说,自己是用的什么无线网卡。不是所有的无线网卡都有LInux驱动的。google 网卡的型号+linux,肯定有答案。
    如果LZ安装了桌面,应该是自带无线的管理软件,用那个软件,无线网卡的管理方便很多,不需要象LS,折腾这么多命令。。
    在terminal下,ifconfig -a看看无线网卡的界面有没有。
    没有的话,安装无线网卡的驱动,另外还需要安装firmware,(不是GPL的firmware,都是需要用户自己安装的,安装驱动的时候,不会安装的)
    chenyaobin7
        10
    chenyaobin7  
    OP
       2013-03-18 20:32:55 +08:00
    问题已经解决,我装上了这个80211的驱动了!太佩服自己了!
    /div>
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     810 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 20:20 PVG 04:20 LAX 12:20 JFK 15:20
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86