LinuxSir.cn,穿越时空的Linuxsir!

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

emerge xorg-x11 和 gnome后不能进gnome

[复制链接]
发表于 2009-3-19 14:20:55 | 显示全部楼层 |阅读模式
按照gnome的配置文档
  1. 将xdm添加到默认运行级别:
  2. # rc-update add xdm default
  3. 查看一下/etc/X11/Sessions的内容:
  4. ls /etc/X11/Sessions
  5. Xsession Gnome
  6. 编辑/etc/rc.conf:
  7. DISPLAYMANAGER="gdm"
  8. XSESSION="Gnome"

复制代码

可我的/etc/X11/Sessions下的内容是:
  1. Xcrazy / # ls /etc/X11/Sessions
  2. Xsession
复制代码


开机的时候提示:那个displayer manager无法运行
 楼主| 发表于 2009-3-20 00:22:14 | 显示全部楼层
折腾gentoo真不容易  ~
回复 支持 反对

使用道具 举报

发表于 2009-3-20 00:52:03 | 显示全部楼层
你emerge gnome or gnome-light了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-20 22:28:04 | 显示全部楼层
Post by kentty;1963367
你emerge gnome or gnome-light了吗?


我xong gnome和gdm都装了 (是在ubuntu下chroot装的)
然后开机就提示:could not start displayer manager
我startx也不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-20 22:53:10 | 显示全部楼层
再帖上我的make.config和其他一些的文件,希望各位大哥指教,帮我解决一下这个问题:
make.config:
  1. # These settings were set by the catalyst build script that automatically
  2. # built this stage.
  3. # Please consult /etc/make.conf.example for a more detailed example.
  4. CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
  5. CXXFLAGS="${CFLAGS}"
  6. LDFLAGS="-wl,-01,--as-needed"
  7. # WARNING: Changing your CHOST is not something that should be done lightly.
  8. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  9. CHOST="x86_64-pc-linux-gnu"
  10. MAKEOPTS="-j3"
  11. ACCEPT_KEYWORDS="~amd64"
  12. FEATURES="sandbox ccach parallel-fetch metadata-transfer"
  13. LINGUAS="zh_CN zh"
  14. INPUT_DEVICE="keyboard mouse"
  15. ALSA_CARDS="alc662"
  16. VIDEO_CARDS="ati vesa vga"
  17. SYNC="rsync://61.135.158.199/gentoo-portage"
  18. GENTOO_MIRRORS="http://gentoo.tom.com/ http://61.135.158.199/ ftp://"
  19. AUTOCLEAN="yes"
  20. CCACH_SIZE="2G"
  21. CCACH_DIR="/var/tmp/ccach"
  22. # These are the USE flags that were used in addition to what is provided by the
  23. # profile used for building.
  24. USE="3dnow 3dnowext X a52 aac aalib acpi alsa apm avahi berkdb bindist bonobo \
  25. bzip2 cairo cjk crypt cscope dri dbus dvd encode esd firefox flac ftp gd gdbm \
  26. gif gtk gnome hal imlib java javascript jikes jpeg libg++ libwww mad mikmod \
  27. mmx mng motif mp3 mpeg mplayer multilib ncurses nls nptl odbc \
  28. ogg opengl oss pdf perl png python quicktime readline samba \
  29. sdl spell sse sse2 ssl tcpd truetype unicode usb xml xv zlib \
  30. newspr win64codecs cdr"
复制代码


rc.config:
  1. # Global OpenRC configuration settings

  2. # Set to "YES" if you want the rc system to try and start services
  3. # in parallel for a slight speed improvement. When running in parallel we
  4. # prefix the service output with it's name as the output will get
  5. # jumbled up.
  6. # WARNING: whilst we have improved parallel, it can still potentially lock
  7. # the boot process. Don't file bugs about this unless you can supply
  8. # patches that fix it without breaking other things!
  9. rc_parallel="NO"

  10. # Set rc_interactive to "YES" and you'll be able to press the I key during
  11. # boot so you can choose to start specific services. Set to "NO" to disable
  12. # this feature.
  13. rc_interactive="YES"

  14. # Do we allow any started service in the runlevel to satisfy the depedency
  15. # or do we want all of them regardless of state? For example, if net.eth0
  16. # and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
  17. # both will be started, but services that depend on 'net' will work if either
  18. # one comes up. With rc_depend_strict="YES" we would require them both to
  19. # come up.
  20. rc_depend_strict="YES"

  21. # rc_hotplug is a list of services that we allow to be hotplugged.
  22. # By default we do not allow hotplugging.
  23. # A hotplugged service is one started by a dynamic dev manager when a matching
  24. # hardware device is found.
  25. # This service is intrinsically included in the boot runlevel.
  26. # To disable services, prefix with a !
  27. # Example - rc_hotplug="net.wlan !net.*"
  28. # This allows net.wlan and any service not matching net.* to be plugged.
  29. # Example - rc_hotplug="*"
  30. # This allows all services to be hotplugged
  31. #rc_hotplug="*"

  32. # rc_logger launches a logging daemon to log the entire rc process to
  33. # /var/log/rc.log
  34. # NOTE: Linux systems require the devfs service to be started before
  35. # logging can take place and as such cannot log the sysinit runlevel.
  36. rc_logger="NO"

  37. # By default we filter the environment for our running scripts. To allow other
  38. # variables through, add them here. Use a * to allow all variables through.
  39. # rc_env_allow="VAR1 VAR2"

  40. # By default we assume that all daemons will start correctly.
  41. # However, some do not - a classic example is that they fork and return 0 AND
  42. # then child barfs on a configuration error. Or the daemon has a bug and the
  43. # child crashes. You can set the number of milliseconds start-stop-daemon
  44. # waits to check that the daemon is still running after starting here.
  45. # The default is 0 - no checking.
  46. # rc_start_wait=100

  47. ##############################################################################
  48. # MISC CONFIGURATION VARIABLES
  49. # There variables are shared between many init scripts

  50. # Set unicode to YES to turn on unicode support for keyboards and screens.
  51. unicode="YES"

  52. # Network fstypes. Below is the default.
  53. net_fs_list="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs"

  54. ##############################################################################
  55. # SERVICE CONFIGURATION VARIABLES
  56. # These variables are documented here, but should be configured in
  57. # /etc/conf.d/foo for service foo and NOT enabled here unless you
  58. # really want them to work on a global basis.

  59. # Some daemons are started and stopped via start-stop-daemon.
  60. # We can set some things on a per service basis, like the nicelevel.
  61. #export SSD_NICELEVEL="-19"

  62. # Pass ulimit parameters
  63. #rc_ulimit="-u 30"

  64. # It's possible to define extra dependencies for services like so
  65. #rc_config="/etc/foo"
  66. #rc_need="openvpn"
  67. #rc_use="net.eth0"
  68. #rc_after="clock"
  69. #rc_before="local"
  70. #rc_provide="!net"

  71. # You can also enable the above commands here for each service. Below is an
  72. # example for service foo.
  73. #rc_foo_config="/etc/foo"
  74. #rc_foo_need="openvpn"
  75. #rc_foo_after="clock"

  76. # You can also remove dependencies.
  77. # This is mainly used for saying which servies do NOT provide net.
  78. #rc_net_tap0_provide="!net"

  79. ##############################################################################
  80. # LINUX SPECIFIC OPTIONS

  81. # This is the number of tty's used in most of the rc-scripts (like
  82. # consolefont, numlock, etc ...)
  83. rc_tty_number=12

  84. DISPLAYMANAGER="gdm"
  85. Xsession Gnome
复制代码


fstab:
  1. # /etc/fstab: static file system information.
  2. #
  3. # noatime turns off atimes for increased performance (atimes normally aren't
  4. # needed; notail increases performance of ReiserFS (at the expense of storage
  5. # efficiency).  It's safe to drop the noatime options if you want and to
  6. # switch between notail / tail freely.
  7. #
  8. # The root filesystem should have a pass number of either 0 or 1.
  9. # All other filesystems should have a pass number of 0 or greater than 1.
  10. #
  11. # See the manpage fstab(5) for more information.
  12. #

  13. # <fs>                        <mountpoint>        <type>                <opts>                <dump/pass>

  14. # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
  15. #/dev/BOOT                /boot                ext2                noauto,noatime        1 2
  16. /dev/sda9                /                reiserfs        notail,noatime        0 0
  17. /dev/sda10                none                swap                sw                0 0
  18. /dev/cdrom                /mnt/cdrom        auto                noauto,ro        0 0
  19. #/dev/fd0                /mnt/floppy        auto                noauto                0 0

  20. # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
  21. # POSIX shared memory (shm_open, shm_unlink).
  22. # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
  23. #  use almost no memory if not populated with files)
  24. shm                        /dev/shm        tmpfs                nodev,nosuid,noexec        0 0
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-3-20 22:54:10 | 显示全部楼层
编辑/etc/conf.d/xdm最后面改为DISPLAYMANAGER="gdm"试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-20 23:44:20 | 显示全部楼层
Post by casparant;1963730
编辑/etc/conf.d/xdm最后面改为DISPLAYMANAGER="gdm"试试。

  1. # We always try and start X on a static VT. The various DMs normally default
  2. # to using VT7. If you wish to use the xdm init script, then you should ensure
  3. # that the VT checked is the same VT your DM wants to use. We do this check to
  4. # ensure that you have't accidently configured something to run on the VT
  5. # in your /etc/inittab file so that you don't get a dead keyboard.
  6. CHECKVT=7

  7. # What display manager do you use ?  [ xdm | gdm | kdm | kdm-3.5 | kdm-4.0 | entrance ]
  8. # NOTE: If this is set in /etc/rc.conf, that setting will override this one.
  9. # KDE-specific note: kdm-3.5 and kdm-4.0 are just examples. You will find all
  10. # possible versions by looking at the directories in /usr/kde/.
  11. DISPLAYMANAGER="gdm"
复制代码


这个也试了 还是不行阿
回复 支持 反对

使用道具 举报

发表于 2009-3-21 00:05:30 | 显示全部楼层
emerge gdm

重新装一次吧……
回复 支持 反对

使用道具 举报

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

本版积分规则

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