佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

楼主: june_starnight

Gentoo快乐之旅……KDE还是不行!最终还是去了GNOME旅游!内有Screenshot看!

[复制链接]
 楼主| 发表于 30-11-2005 11:51 AM | 显示全部楼层
现在,我再recompile了。
然后,出现以下的error
这是否会影响到我boot呢?


  1. include/linux/signal.h: In function 'signotset'
  2. include/linux/signal.h:145: internal compiler error: Segmentation fault
  3. Please submit a full bug report,
  4. with preprocessed source if ppropriate.
  5. See <URL:http://bugs.gentoo.org/> for instrutions.
  6. The bug is not reporducible, so it is likely a hardware or OS problem.
  7. make[1]: *** [mm/filemap.o] Error 1
  8. make: *** [mm] Error 2
复制代码
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 30-11-2005 11:55 AM | 显示全部楼层
原帖由 chinkai80 于 29-11-2005 09:13 AM 发表


initrd /initrd<xxxx>

在哪裡呢?
如果沒有 initrd , 會 kernel panic 的.


我的grub.conf没有

initrd /initrd<xxxx>

是因为我没有用genkernel.
回复

使用道具 举报

 楼主| 发表于 30-11-2005 12:46 PM | 显示全部楼层
我想我找到要點了!

我跑 dmesg

然後發現了以下的問題


  1. VFS: Can't find ext3 filesystem on dev hdb.
  2. VFS: Can't find an ext2 filesystem on dev hdb.
复制代码



以下是我的 grub.conf

  1. ...
  2. root     (hd0,0)
  3. kernel  /boot/kernel-2.6.14-r2  root/dev/hda3
  4. ...
复制代码



以及 /etc/fstab

  1. /dev/hda1                  /boot             ext2       noauto,noatime       1 1
  2. /dev/hda3                  /                   ext3       noatime                  0 1
  3. /dev/hda2                  none             swap       sw                         0 0
  4. /dev/cdroms/cdrom0   /mnt/cdrom  iso9660   noauoto,ro              0 0
  5. /dev/fd0                    /mnt/floppy    auto        noauto                  0 0
  6. none                         /proc             proc        defaults                  0 0
  7. none                         /dev/shm       tmpfs      defaults                  0 0
复制代码


我compile的時候是用hdb,爲什麽?
要怎樣呢?

[ 本帖最后由 june_starnight 于 30-11-2005 12:47 PM 编辑 ]
回复

使用道具 举报

发表于 30-11-2005 02:25 PM | 显示全部楼层
你装gentoo的hdd是在master或slave??
master就hda,slave就hdb
回复

使用道具 举报

发表于 30-11-2005 02:28 PM | 显示全部楼层
你有用frame buffer??如果有用的话,应该要initrd吧??
我没有set过fb,但是听说要用到ram disk之类的,应该是说initrd吧
回复

使用道具 举报

 楼主| 发表于 1-12-2005 10:42 AM | 显示全部楼层
哇!一路走来真的不容易啊!

快要两个星期了。
就这个星期就是在搞我的 核心。
可能是我比较笨蛋吧!

搞来搞去都搞不好!
Gentoo快乐之旅要改为痛苦之旅了。
真的不好走!

这两个星期都在 www.gentoo.org / www.gentoo.org.tw / www.chinaunix.net / www.linuxeden.com
来来回回,翻来覆去的找。
不断的读,不断的Try and Error。

呼。。。
还是不行。
真的不行吗?

可是我还是要坚持,希望公司方面还能给我一点时间。

好今天决定用genkernel.
回复

使用道具 举报

Follow Us
 楼主| 发表于 1-12-2005 08:22 PM | 显示全部楼层
我的努力终于没有白费。
今天终于决定用genkernel来协助编辑核心。
一开始的时候,跑

genkernel all

在reboot的时候还是面对了同一个问题。
还是出现以下的error
vesafb: scrolling: redraw

没有办法,再试一次。
这次就唯有把旧有compile出来的bzImage以及.config都删除了。
一时乱了,连/usr/src/linux-2.6.14-r都删除了。
所以唯有再emerge一次
emerge gentoo-sources

然后再做
make clean
genkernel all
但是还是同样的问题。

怎么办呢?
之前也是有同样的问题。
问题是出在menuconfig没有设定好vga的driver
所以这次
再次把先前的compiler出来的还有.config都拿掉。

然后跑一次
genkernel --menuconfig all
然后再一个个设定menuconfig。
再一次reboot!

Yeah!!!
终于成功Boot了!

我的努力终于没有白费!

可是还是有点问题。
1.eth0 bring up不到
2.叫我/etc/hostname 换去 /etc/init.d/hostname(可是试了就找不到我的hostname了!可能忘记了update.
3.竟然进不到root!!!忘记了设!在用LiveCD进去改!

相信这些问题都可以在明天解决!雅虎!
恩,那么明天就要开始装samba了!
然后是xwindows!
再然后就是中文输入!

呵呵,希望不会有太棘手的问题。
另一方面又希望有棘手的问题。(可以因为时间不允许!)
为什么?
只有遇到棘手的问题,我们才可以学习更多!!!

野!!!

好吧!等我成功安装!
我就写教程一起来学习安装Gen2吧!
一起学可以学得比较快!

谁想要学的?
一起来安装吧!
遇到问题时提出来也可以集思广益!
学习得更快!
回复

使用道具 举报

 楼主| 发表于 2-12-2005 10:57 AM | 显示全部楼层
好了,又回来继续我的Gen2快乐之旅了。
昨天没有bringup到eth0,原因就是设定错了我的eth0的driver。
今天跑去用manual设定能够我的menuconfig.

  1. make menuconfig
  2. {设定我的eth0 driver}
  3. make bzImage modules modules
  4. cp .config /boot/config-x86-2.6.14-gentoo-r2
  5. cp arch/i386/boot/bzImage /boot/kernel-genkernel-x86-2.6.14-gentoo-r2
  6. cp System.map /boot/System.map-genkernel-x86-2.6.14-gentoo-r2
  7. reboot
复制代码

结果成功bring up 我的 eth0了。
try pinging一下。
也成功了!

现在还剩下一个问题。
那就是

  1. Failed to start /etc/init.d/hostname
复制代码


小问题,我会继续努力的!
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 2-12-2005 12:06 PM | 显示全部楼层
嗯,我的问题

  1. Failed to start /etc/init.d/hostname
复制代码


有人可以给予协助吗?
或是指示?

还是解决不了!!!
回复

使用道具 举报

 楼主| 发表于 2-12-2005 03:25 PM | 显示全部楼层
[quote="augury"]STEP 1: echo 'HOSTNAME="{your hostname}"' >> /etc/env.d/01hostname
STEP 2: echo 'HOSTNAME="{your hostname}"' >> /etc/conf.d/hostname
STEP 3: echo '{your hostname}' >> /etc/HOSTNAME
STEP 4: hostname {your hostname}
STEP 5: /etc/init.d/hostname restart
STEP 6: env-update
STEP 7: source /etc/profile[/quote]


我的 /etc/init.d/hostname 内容如下

  1. HOSTNAME="gserver"
复制代码


正确吗?


当我做到STEP5时就出现如下的result
  1. #/etc/init.d/hostname restart
  2. -bash: /etc/init.d/hostname: Permission denied
复制代码


因此我不能再继续了。.

当我boot的时候有如下的error

  1. ..
  2. ..
  3. /sbin/rc: line 416: start: command not found
  4. Failed to start /etc/init.d/hostname
  5. ..
  6. ..
  7. * Could not get dependency info for "hostname"!
  8. * Please run:

  9. *   # /sbin/depscan.sh

  10. * to try and fix this.
  11. ..
  12. ..
  13. INIT: Entering runlevel 3
  14. hostname
  15. * ERROR: Some services needed are missing. Run
  16. *              './sysklogd broken' for a list of those
  17.                 services. "sysklogd" was not started.
  18. hostname
  19. * ERROR: Some services needed are missing. Run
  20. *              './domainname broken' for a list of those
  21.                 services. "sysklogd" was not started.
复制代码


那么我就试 /sbin/depscan.sh


  1. #/sbin/depscan.sh
  2. * Cashing service dependencies
  3. *  Can't find service 'hostname' needed by 'modules'; continuing...
  4. *  Can't find service 'hostname' needed by 'domainname'; continuing...
  5. *  Can't find service 'hostname' needed by 'syslogd'; continuing...                             [ok]
复制代码


那么现在我可以做些什么?

[ 本帖最后由 june_starnight 于 2-12-2005 04:37 PM 编辑 ]
回复

使用道具 举报

发表于 2-12-2005 06:58 PM | 显示全部楼层
原帖由 june_starnight 于 2-12-2005 03:25 PM 发表
[quote="augury"]STEP 1: echo 'HOSTNAME="{your hostname}"' >> /etc/env.d/01hostname
STEP 2: echo 'HOSTNAME="{your hostname}"' >> /etc/conf.d/hostname
STEP ...


ehm ... permission 设定对吗?看来好像是 000,察看你的 umask
回复

使用道具 举报

 楼主| 发表于 3-12-2005 10:23 AM | 显示全部楼层
原帖由 neow_wy 于 2-12-2005 06:58 PM 发表


ehm ... permission 设定对吗?看来好像是 000,察看你的 umask


我chmod +x /etc/init.d/hostname了还是一样不行。
回复

使用道具 举报

发表于 4-12-2005 12:54 PM | 显示全部楼层
你用那个stage??2005.1的吗??
2005.1有几个stage3有很严重的permission问题
回复

使用道具 举报

 楼主| 发表于 5-12-2005 12:02 PM | 显示全部楼层
原帖由 momoomo 于 4-12-2005 12:54 PM 发表
你用那个stage??2005.1的吗??
2005.1有几个stage3有很严重的permission问题


可以知道你的
/etc/init.d/hostname
里面是什么东西吗?

我现在的是

  1. #etc/init.d/hostname
  2. #Set to the hostname of this machine
  3. HOSTNAME="gserver"
复制代码


我想这个configuration是在/etc/conf.d/hostname或/etc/hostname才对。

/etc/init.d/hostname的应该是酱的东西是吗?

  1. #!/sbin/runscript
  2. # Copyright 1999-2003 Gentoo Technologies, Inc.
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/hostname,v 1.16 2003/05/04 23:16:31 azarah Exp $

  5. # This only set what /bin/hostname returns.  If you need to setup NIS, meaning
  6. # what /bin/domainname returns, please see:
  7. #
  8. #   http://www.linux-nis.org/nis-howto/HOWTO/
  9. #
  10. # To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
  11. # properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).


  12. depend() {
  13.         need checkroot
  14. }

  15. checkconfig() {
  16.         if [ ! -f /etc/hostname ] || [ -z "$(< /etc/hostname)" ]
  17.         then
  18.                 eerror "You need to set /etc/hostname to a valid hostname"
  19.                 return 1
  20.         fi
  21. }

  22. start() {
  23.         local myhost="localhost"
  24.         local retval=0
  25.        
  26.         # We use whatever is in /etc/hostname here.  That means:
  27.         #
  28.         # 1)  For doing it the proper way, you should NOT put a
  29.         #     FQDN in there, but:
  30.         #     a) Only have the hostname in there (no dns/nis domainname)
  31.         #     b) Set the dnsdomainname via /etc/resolv.conf
  32.         #     c) Set the nisdomainname via 'domainname'.
  33.         #
  34.         # 2)  If the user want a FQDN in there, it should be possible
  35.         #     without hacking things to pieces, but then he should
  36.         #     know what he is doing ...
  37.         #
  38.         if checkconfig
  39.         then
  40.                 myhost="$(< /etc/hostname)"
  41.         fi
  42.        
  43.         ebegin "Setting hostname to ${myhost}"
  44.         /bin/hostname "${myhost}"
  45.         retval=$?
  46.         eend ${retval} "Failed to set the hostname"
  47.        
  48.         if [ "${retval}" -eq 0 ]
  49.         then
  50.                 # setup $HOSTNAME
  51.                 echo "HOSTNAME="${myhost}"" > /etc/env.d/01hostname
  52.         fi

  53.         return ${retval}
  54. }


  55. # vim:ts=4
复制代码
回复

使用道具 举报

 楼主| 发表于 6-12-2005 11:50 AM | 显示全部楼层
Yeah!!!
我终于排除万难,成功正常Boot了!!!
真的很感动!

果然是"Gentwo“,不是Genthree or Genfour.
哈哈哈!

因为我只是重灌第二次而已!
我没有选择再Format。
我坚持!
坚持不通过Format,通过解决问题来让系统可以正常开机!

Yeah!!!

下个站Samba!!!

我已经迫不及待的向下一个站出发咯!
回复

使用道具 举报

发表于 7-12-2005 03:39 AM | 显示全部楼层
原帖由 june_starnight 于 6-12-2005 11:50 AM 发表
Yeah!!!
我终于排除万难,成功正常Boot了!!!
真的很感动!

果然是"Gentwo“,不是Genthree or Genfour.
哈哈哈!

因为我只是重灌第二次而已!
我没有选择再Format。
我坚持!
坚持不通过F ...


这么说您是用贴#54的hostname 吗??
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 7-12-2005 10:54 AM | 显示全部楼层
原帖由 neow_wy 于 7-12-2005 03:39 AM 发表


这么说您是用贴#54的hostname 吗??


现在我是用这个

  1. #!/sbin/runscript
  2. # Copyright 1999-2003 Gentoo Technologies, Inc.
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/hostname,v 1.16 2003/05/04 23:16:31 azarah Exp $

  5. # This only set what /bin/hostname returns.  If you need to setup NIS, meaning
  6. # what /bin/domainname returns, please see:
  7. #
  8. #   http://www.linux-nis.org/nis-howto/HOWTO/
  9. #
  10. # To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
  11. # properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).


  12. depend() {
  13.         need checkroot
  14. }

  15. checkconfig() {
  16.         if [ ! -f /etc/hostname ] || [ -z "$(< /etc/hostname)" ]
  17.         then
  18.                 eerror "You need to set /etc/hostname to a valid hostname"
  19.                 return 1
  20.         fi
  21. }

  22. start() {
  23.         local myhost="localhost"
  24.         local retval=0
  25.       
  26.         # We use whatever is in /etc/hostname here.  That means:
  27.         #
  28.         # 1)  For doing it the proper way, you should NOT put a
  29.         #     FQDN in there, but:
  30.         #     a) Only have the hostname in there (no dns/nis domainname)
  31.         #     b) Set the dnsdomainname via /etc/resolv.conf
  32.         #     c) Set the nisdomainname via 'domainname'.
  33.         #
  34.         # 2)  If the user want a FQDN in there, it should be possible
  35.         #     without hacking things to pieces, but then he should
  36.         #     know what he is doing ...
  37.         #
  38.         if checkconfig
  39.         then
  40.                 myhost="$(< /etc/hostname)"
  41.         fi
  42.       
  43.         ebegin "Setting hostname to ${myhost}"
  44.         /bin/hostname "${myhost}"
  45.         retval=$?
  46.         eend ${retval} "Failed to set the hostname"
  47.       
  48.         if [ "${retval}" -eq 0 ]
  49.         then
  50.                 # setup $HOSTNAME
  51.                 echo "HOSTNAME="${myhost}"" > /etc/env.d/01hostname
  52.         fi

  53.         return ${retval}
  54. }


  55. # vim:ts=4
复制代码


作 /etc/init.d/hostname

问题已经被解决了。

过后我得到这个 Warning

you should stop using /etc/dnsdomainname and use /etc/conf.d/domainname

然后我就把 /etc/dnsdomainname remove 了,
就没有这个问题了。

但是现在有另一个问题

对,我昨天已经花了几个小时把Samba装好了。
已经把User Add进去System了。
也设定Share Folder,及Samba User。
测试成功。
Samba正常操作。


但是我还是有一个问题那就是我每次Boot的时候有这个

This is gserver.unknown_domain ( Linux i686 2.6.14-gentoo-r2)

我担心.unkown_domain会不会对我的System有什么影响吗?
回复

使用道具 举报

 楼主| 发表于 7-12-2005 10:56 AM | 显示全部楼层
只花了几个小时。
很快的我的Samba之旅就要结束了!
没有太大的问题。
可能是因为之前已经有好几次设定的经验了!

那么下一站就是X11,KDE了!
开始想用GNOME的过后又换KDE了。
没有特别原因,你们觉得那个比较好呢?
回复

使用道具 举报

 楼主| 发表于 15-12-2005 05:25 PM | 显示全部楼层
离开上一个帖已经有九天了!

一直逗转于KDE中。
问了很多高手。
还是无计可施。
为有用GNOME。
结果第一次就可以Boot进GNOME了!
先献上我的GNOME的第一个画面。

回复

使用道具 举报

 楼主| 发表于 19-12-2005 09:37 AM | 显示全部楼层
我的GNOME能够这样就好了!
回复

使用道具 举报

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

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 13-5-2024 02:35 PM , Processed in 0.057891 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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