LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: shopping.w

gentoo如何设置能wifi上网

[复制链接]
发表于 2012-1-20 14:02:20 | 显示全部楼层
错误信息是什么?看看/var/log/message之类的。或者从终端运行sudo /etc/init.d/net.eth1 start

找到错误信息对症下*。
回复 支持 反对

使用道具 举报

发表于 2012-1-20 19:54:33 | 显示全部楼层
装驱动了么?
回复 支持 反对

使用道具 举报

发表于 2012-1-24 00:07:31 | 显示全部楼层
funtoo里的脚本其实蛮不错 可以切换home和office的无线设置
貌似太新的驱动要编译成模块?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-2 20:31:53 | 显示全部楼层
to kit393 帅哥

信息如下 怎么回事 有线能上网

Gentoo-11 ~ # /etc/init.d/net.
net.eth1   net.eth2   net.eth3   net.eth4   net.lo     net.wlan0  
Gentoo-11 ~ # /etc/init.d/net.eth1 start
* Bringing up interface eth1
*   ERROR: interface eth1 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth1 failed to start
Gentoo-11 ~ # /etc/init.d/net.wlan0 start
* Bringing up interface wlan0
*   ERROR: interface wlan0 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.wlan0 failed to start
Gentoo-11 ~ # /etc/init.d/net.eth2 start
* Bringing up interface eth2
*   ERROR: interface eth2 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth2 failed to start
Gentoo-11 ~ # /etc/init.d/net.eth3 start
* Bringing up interface eth3
*   ERROR: interface eth3 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth3 failed to start
Gentoo-11 ~ # /etc/init.d/net.eth4 start
* Bringing up interface eth4
*   ERROR: interface eth4 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth4 failed to start
Gentoo-11 ~ #
回复 支持 反对

使用道具 举报

发表于 2012-2-3 11:05:28 | 显示全部楼层
我的thinkpad e40出现的情况和你的类似,也是* ERROR: interface wlan0 does not exist,即使把无线网卡的驱动编译成模块后加载也依旧,但是我用arch的安装光盘iwconfig或者ifconfig后却能发现wlan0,于是 dmesg | grep firmware 后发现gentoo的安装光盘没有linux-firmware,先emerge linux-firmware再把相应的无线网卡编译成模块,顺利解决问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-3 20:42:42 | 显示全部楼层
Gentoo-11 ~ # emerge linux-firmware

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

                               ... done!                    
                                                                                                                             
>>> Verifying ebuild manifests                                                                                               
                                                                                                                             
>>> Emerging (1 of 1) sys-kernel/linux-firmware-20110818                                                                     
* linux-firmware-20110818.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
>>> Unpacking source...                                                                                                      
>>> Unpacking linux-firmware-20110818.tar.bz2 to /var/tmp/portage/sys-kernel/linux-firmware-20110818/work                    
>>> Source unpacked in /var/tmp/portage/sys-kernel/linux-firmware-20110818/work                                             
>>> Preparing source in /var/tmp/portage/sys-kernel/linux-firmware-20110818/work/linux-firmware-20110818 ...                 
>>> Source prepared.                                                                                                         
>>> Configuring source in /var/tmp/portage/sys-kernel/linux-firmware-20110818/work/linux-firmware-20110818 ...               
>>> Source configured.                                                                                                      
>>> Compiling source in /var/tmp/portage/sys-kernel/linux-firmware-20110818/work/linux-firmware-20110818 ...                 
>>> Source compiled.                                                                                                         
>>> Test phase [not enabled]: sys-kernel/linux-firmware-20110818                                                            

>>> Install linux-firmware-20110818 into /var/tmp/portage/sys-kernel/linux-firmware-20110818/image/ category sys-kernel
* Your configuration for sys-kernel/linux-firmware-20110818 has been saved in
* /etc/portage/savedconfig/sys-kernel/linux-firmware-20110818 for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Completed installing linux-firmware-20110818 into /var/tmp/portage/sys-kernel/linux-firmware-20110818/image/


>>> Installing (1 of 1) sys-kernel/linux-firmware-20110818
* If you are only interested in particular firmware files, edit the saved
* configfile and remove those that you do not want.

* Messages for package sys-kernel/linux-firmware-20110818:

* Your configuration for sys-kernel/linux-firmware-20110818 has been saved in
* /etc/portage/savedconfig/sys-kernel/linux-firmware-20110818 for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
* If you are only interested in particular firmware files, edit the saved
* configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

* IMPORTANT: config file '/etc/dispatch-conf.conf' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


!!! existing preserved libs:
>>> package: dev-libs/cdk-5.0.20110517
*  - /usr/lib/libcdk.so.0
*  - /usr/lib/libcdk.so.0.4.1
*      used by /usr/lib/licq/licq_console.so (net-im/licq-1.3.9)
>>> package: app-text/hunspell-1.3.2-r1
*  - /usr/lib/libhunspell-1.2.so.0
*  - /usr/lib/libhunspell-1.2.so.0.0.0
*      used by /usr/lib/licq/licq_qt4-gui.so (net-im/licq-1.3.9)
Use emerge @preserved-rebuild to rebuild packages using these libraries


to omengye 接着具体怎么做呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-3 22:13:11 | 显示全部楼层
emerge @preserved-rebuild后出现


configure: error:

I can't find the cdk library. This is needed if you want
to compile this plugin. Sorry. Try to get it from here:
http://freshmeat.net/projects/libcdk/


!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-im/licq-1.3.9/work/licq-1.3.9/plugins/console/config.log
* ERROR: net-im/licq-1.3.9 failed (configure phase):
*   econf failed
*
* Call stack:
*          ebuild.sh, line   85:  Called src_configure
*        environment, line 2758:  Called econf
*   phase-helpers.sh, line  467:  Called die
* The specific snippet of code:
*                      die "econf failed"
*
* If you need support, post the output of 'emerge --info =net-im/licq-1.3.9',
* the complete build log and the output of 'emerge -pqv =net-im/licq-1.3.9'.
* The complete build log is located at '/var/tmp/portage/net-im/licq-1.3.9/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-im/licq-1.3.9/temp/environment'.
* S: '/var/tmp/portage/net-im/licq-1.3.9/work/licq-1.3.9'

>>> Failed to emerge net-im/licq-1.3.9, Log file:

>>>  '/var/tmp/portage/net-im/licq-1.3.9/temp/build.log'

* Messages for package net-im/licq-1.3.9:

* ERROR: net-im/licq-1.3.9 failed (configure phase):
*   econf failed
*
* Call stack:
*          ebuild.sh, line   85:  Called src_configure
*        environment, line 2758:  Called econf
*   phase-helpers.sh, line  467:  Called die
* The specific snippet of code:
*                      die "econf failed"
*
* If you need support, post the output of 'emerge --info =net-im/licq-1.3.9',
* the complete build log and the output of 'emerge -pqv =net-im/licq-1.3.9'.
* The complete build log is located at '/var/tmp/portage/net-im/licq-1.3.9/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-im/licq-1.3.9/temp/environment'.
* S: '/var/tmp/portage/net-im/licq-1.3.9/work/licq-1.3.9'

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

Gentoo-11 ~ #
回复 支持 反对

使用道具 举报

发表于 2012-2-3 23:37:56 | 显示全部楼层
额  
iwconfig后出现wlan0了么?wpa_supplicant安装了么?
首先你要确定用arch的CD是能够在iwconfig后发现wlan0的,其次,出错的是一个叫licq的聊天软件,貌似是库文件错误?emerge @preserved-rebuild命令试着用emerge --depclean -p删除旧文键后,revdep-rebuild进行修复。个人见解。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-5 00:54:54 | 显示全部楼层
装emerge madwifi-ng
重启后 Gentoo-11 ~ # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

irda0     no wireless extensions.

eth1      IEEE 802.11bg  ESSIDff/any  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thrff   Fragment thrff
          Encryption keyff
          Power Managementff
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

teredo    no wireless extensions.

可以得到wifi网络
但是怎么也连不上 怎么回事呢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2012-2-5 10:50:17 | 显示全部楼层
恭喜,已识别您的网卡在eth1,不过并未连上您的无线网络,请见图中“ ESSIDff/any”,如果连上的话会显示“ESSID:shop” 。madwifi-ng的配置我不清楚,如果你使用的是wpa_supplicant,按照以下步骤
#wpa_passphrase shop "密码" > /etc/wpa_supplicant/wpa_supplicant.conf
#wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
#dhcpcd eth1
如果这样做还不行,请参照前面几楼对于wpa_supplicant的配置
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表