|
|
我今天装好了gentoo后,启动系统,成功,然后先后发现了三件事情
首先,我没法上网,虽然我能ping到网关,网关也能ping到我(显然内网没问题),也在/etc/resolv.conf里设置好了dns,但稀奇的是就是ping不通外网,却可以ping网关(没有任何防护墙阻挡,网络是我做的我很清楚),而在安装前用系统自己net-setup设置的dns都能正常上网更新……
然后发现第二件事情,就是用ssh远程登录的时候,当输入了用户名root后,要等半天才出输入密码的框,而以前用cd启动时ssh速度飞快。
然后发现第三件事情,启动时,命令行里有个黄色的*提示
Your TIMEZONE in /etc/conf.d/clock is still set to Factory!
===============
发现问题,上网查找,第一个问题,我在屡次输入域名服务器无效后,想到一个办法,把在光盘启动时能访问网络的/etc/resolv.conf文件给拷贝到我的目录下,结果,仍然不行,现把我的resolv文件的内容贴出,请大家看有没有写错
- GNU nano 2.0.2 File: /etc/resolv.conf
- nameserver 202.103.24.68
- nameserver 202.103.44.150
复制代码
第二个问题,经网络搜索,发现ssh连接会反向要求解析域名,随即想到自己目前无法访问域名服务器,导致连接ssh速度缓慢,解决办法,修改/etc/ssh/sshd_config文件,禁用dns解析,结果无效……/etc/ssh/sshd_config文件内容见下
第三个问题,根据在论坛上找到的答案,要修改/etc/conf.d/clock内的东西,可我修改后启动,仍然没用,仍然提示我clcok是工厂状态……
- GNU nano 2.0.2 File: /etc/conf.d/clock
- # /etc/conf.d/clock
- # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
- # Greenwich Mean Time). If your clock is set to the local time, then
- # set CLOCK to "local". Note that if you dual boot with Windows, then
- # you should set it to "local".
- CLOCK="local"
- # Select the proper timezone. For valid values, peek inside of the
- # /usr/share/zoneinfo/ directory. For example, some common values are
- # "America/New_York" or "EST5EDT" or "Europe/Berlin".
- #TIMEZONE="Asia/Shanghai"
- # If you wish to pass any other arguments to hwclock during bootup,
- # you may do so here.
- CLOCK_OPTS=""
- # If you want to set the Hardware Clock to the current System Time
- # during shutdown, then say "yes" here.
- CLOCK_SYSTOHC="no"
- ### ALPHA SPECIFIC OPTIONS ###
- # If your alpha uses the SRM console, set this to "yes".
- SRM="no"
- # If your alpha uses the ARC console, set this to "yes".
- ARC="no"
复制代码
以上修改,我都是远程ssh用root用户登录进入,chroot进去后在绝对路径上修改的,我现在怀疑不是我写错了命令,而是某种原因导致etc下的命令设置系统不接受,特此请教高人,这问题我今天足足折腾了一天了,查了很多地方都找不到线索 |
|