安装Gentoo桌面环境

日期: 2007.05.27 19:39 
 
 这篇文章介绍安装Gentoo的桌面环境。我使用的X服务器是Xorg, 桌面环境是xfce4
一: 安装X server
1. 首先需要在/etc/make.conf中加入如下的设置
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvida" // 根据你的显卡来决定
USE="X dbus hal alsa startup-notification"
2. emerge update && emerge -uDN world来将系统升级到最新的,从而将新的
USE设置应用到已经安装的系统中。
3. emerge xorg-x11 | tee info.xorg-x11
   安装xorg x server, 并将日志保存下来,以便查找错误,谁一次安装就成功并且中间没有错误发生?
成功安装后,运行
            xorg -configure
生成 /root/xorg.config.new,然后可以用 X -config /root/xorg.config.new 来测试xorg.conf的配置。通常情况下,需要在screen section中设置好屏幕分辨率:  
Section "Screen"
  Identifier  "Default Screen"
  Device    "S3 Inc. ProSavage KN133 [Twister K]"
  Monitor   "Generic Monitor"
  DefaultDepth  24
  SubSection "Display"
    Depth   24
    Modes   "1024x768"
  EndSubSection
EndSection
 
  在我的机器上,运行后出现了"Fatal server error: could not open default font fixed".
后来通过重新emerge font-alias font-misc-misc就解决了,原因是以前的版本没有加入X支持,所以
需要emerge -uDN world来更新系统中的软件。
二、xfce4的安装。
  这个过程没有遇到什么错误,直接 emerge -avt xfce4 xcreensaver就可以了
  安装成功后, echo "exec startxfce4" > ~/.xinitrc
  startx,此时应该可以看到老鼠了。
附:
X服务器安装的参考文献:
      http://www.gentoo.org/doc/en/xorg-config.xml
xfce4安装的参考文献:
      http://www.gentoo.org/doc/en/xfce-config.xml
后记:
   在安装过程中,遇到了很多问题。首先是内存的问题,安装的时候,出现了好几次下面的错误:
   “internal compiler error: Segmentation fault
    The bug is not reproducible, so it is likely a hardware or OS problem.”
用memtest86测试了一下,原来内存某些颗粒有错误,换了内存条,就一路OK了。
第二问题是kde的问题,原先是想安装kde桌面环境的,可是在emerge kdebase-3.5.5的时候,总是出错
    我在gentoo的论坛上,发了个帖:http://forums.gentoo.org/viewtopic-p-4076394.html#4076394
怀疑是以前好些软件包是在内存有错误的情况下安装的,因此需要重新安装整个系统
                
原文地址:https://www.cnblogs.com/huapox/p/3299983.html