LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 720|回复: 6

[SOLVED]不插网线,firefox启动延迟问题

[复制链接]
发表于 2008-8-10 21:44:52 | 显示全部楼层 |阅读模式
问题是这样的,当网线有插上的时候,启动firefox很快,但是当拔掉网线,firefox启动延迟很大。我做过试验,先拔掉网线,运行firefox,等了十秒钟firefox还没有出现,接着我插上网线,再等了三秒钟,firefox就出现了。如果网线一直都是插上的,firefox的窗口可以很快出现。

其实不止firefox,连在启动linux时login提示都有这个问题。

emerge --info 输出如下:
kingway@kingway-gentoo ~ $ emerge --info
Portage 2.2_rc1 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-glibc2.0
Timestamp of tree: Fri, 01 Aug 2008 01:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/layman/xeffects /home/layman/gentoo-china /home/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi aiglx alsa automount bash-completion berkdb bzip2 cairo chardet cjk cli compress cracklib crypt cscope cups dbus directfb dri effects fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif gpm gtk gtk2 i8x0 iconv imagemagick imlib isdnlog java javascript jpeg laptop ldap libnotify lm_sensors mad midi mime mmap mmx mozsvg mp3 mpeg mplayer mudflap ncurses nls nptlonly oci8-instant-client ogg openal opengl openmp oracle pam pcre perl pmu png pppd python qq quicktime rar readline real reflection rplay samba sensord session snmp spl sse sse2 ssl ssse3 stroke svg svga swat symlink sysfs tcpd toolkit-scroll-bars truetype unicode vorbis win32codecs wma x86 xcomposite xft xinerama xml xorg xv zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


/etc/conf.d/net 如下:
kingway@kingway-gentoo ~ $ cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

config_eth1=( "192.168.1.2/24" )
routes_eth1=( "default via 192.168.1.1" )
nis_domain_lo="home"

essid_wlan0="ChinaNet"
config_wlan0=( "dhcp" )
dhcpcd_wlan0="-t 5"
发表于 2008-8-10 22:04:31 | 显示全部楼层
说和 Firefox 会连接 Gentoo 官方网站什么的有关,以上只是零星印象,仅供搜索。鄙人记得不清楚,请见谅。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-10 22:08:37 | 显示全部楼层
补充一点,我的firefox是装从mozilla官网下载的二进制安装包。
回复 支持 反对

使用道具 举报

发表于 2008-8-10 22:20:09 | 显示全部楼层
通过about:config 看到browser.startup.homepage 的默认值是什么?如果有设置为空再试试。
login问题贴你的/etc/hosts看看
回复 支持 反对

使用道具 举报

发表于 2008-8-10 22:41:54 | 显示全部楼层
把自动更新关了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-10 23:57:48 | 显示全部楼层
楼上的方法都试了,还是老样子。。。。。

/etc/hosts 如下
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
127.0.0.1   localhost
#::1        localhost

#
# Imaginary network.
#10.0.0.2               myname
#10.0.0.3               myfriend
#
# According to RFC 1918, you can use the following IP networks for private
# nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers.  Do not try to invent your own network numbers but instead get one
# from your network provider (if any) or from your regional registry (ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-11 00:16:41 | 显示全部楼层
解决了。
原来是 dns_domain 没有设置好。
在/etc/conf.d/net 里添加下面一行就行了。
dns_domain="home"
回复 支持 反对

使用道具 举报

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

本版积分规则

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