LinuxSir.cn,穿越时空的Linuxsir!

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

我的Gentoo

[复制链接]
发表于 2009-4-2 21:16:04 | 显示全部楼层 |阅读模式
最近这一个星期利用业余时间终于装好了一个Genoo系统,发现Gentoo确实很方便,将自己的一些配置贴出来,希望对和我一样刚接触Linux的朋友有所帮助,由于自己是学化学的,对计算机不是太懂,更不懂编程了,都是照着手册来的,很多地方可能还有些不妥,但基本用着还挺快,挺稳定的。而且希望能得到大家的指教,看看我的配置有什么地方值得优化一下什么的,呵呵,还有一些问题虽然搜索了大量的资料但是也没得到解决,希望大家能帮忙看看。
lspci:
  1. 00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
  2. 00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
  3. 00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
  4. 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
  5. 00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
  6. 00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
  7. 00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
  8. 00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
  9. 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
  10. 00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
  11. 00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
  12. 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
  13. 01:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
  14. 01:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
  15. 01:01.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
  16. 01:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
复制代码


xorg.conf:
  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection
  7. Section "Files"
  8.         FontPath     "/usr/share/fonts/wqy-bitmapfont/"
  9.         FontPath     "/usr/share/fonts/wqy-zenhei/"
  10.         FontPath     "/usr/share/fonts/Type1/"
  11.         FontPath     "/usr/share/fonts/100dpi/"
  12.         FontPath     "/usr/share/fonts/truetype/"
  13.         FontPath     "/usr/share/fonts/75dpi/"
  14.         FontPath     "/usr/share/fonts/misc/"
  15. EndSection
  16. Section "Module"
  17.         Load  "record"
  18.         Load  "dri"
  19.         Load  "xtrap"
  20.         Load  "dbe"
  21.         Load  "extmod"
  22.         Load  "GLcore"
  23.         Load  "glx"
  24.         Load  "type1"
  25.         Load  "freetype"
  26.         Load  "bitmap"
  27.         Load  "int10"
  28.         Load  "ddc"
  29.         Load  "vbe"
  30.         Load   "i2c"
  31. EndSection
  32. Section "InputDevice"
  33.         Identifier  "Keyboard0"
  34.         Driver      "kbd"
  35. EndSection
  36. Section "InputDevice"
  37.         Identifier  "Mouse0"
  38.         Driver      "mouse"
  39.         Option            "Protocol" "auto"
  40.         Option            "Device" "/dev/input/mice"
  41.         Option            "ZAxisMapping" "4 5 6 7"
  42. EndSection
  43. Section "Monitor"
  44.         #DisplaySize          300   220        # mm
  45.         Identifier   "Monitor0"
  46.         VendorName   "LPL"
  47.         ModelName    "0"
  48.         Option       "DPMS" "true"
  49. EndSection
  50. Section "Device"
  51.         ### Available Driver options are:-
  52.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  53.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  54.         ### [arg]: arg optional
  55.         #Option     "NoAccel"                    # [<bool>]
  56.         #Option     "SWcursor"                   # [<bool>]
  57.         #Option     "ColorKey"                   # <i>
  58.         #Option     "CacheLines"                 # <i>
  59.         #Option     "Dac6Bit"                    # [<bool>]
  60.         #Option     "DRI"                        # [<bool>]
  61.         #Option     "DPMS"
  62.         #Option     "NoDDC"                      # [<bool>]
  63.         #Option     "ShowCache"                  # [<bool>]
  64.         #Option     "XvMCSurfaces"               # <i>
  65.         #Option     "PageFlip"                   # [<bool>]
  66.         Identifier  "Card0"
  67.         Driver      "intel"
  68.         VendorName  "Intel Corporation"
  69.         BoardName   "Mobile 915GM/GMS/910GML Express Graphics Controller"
  70.         BusID       "PCI:0:2:0"
  71. EndSection
  72. Section "Screen"
  73.         Identifier "Screen0"
  74.         Device     "Card0"
  75.         Monitor    "Monitor0"
  76.         SubSection "Display"
  77.                 Viewport   0 0
  78.                 Depth     1
  79.         EndSubSection
  80.         SubSection "Display"
  81.                 Viewport   0 0
  82.                 Depth     4
  83.         EndSubSection
  84.         SubSection "Display"
  85.                 Viewport   0 0
  86.                 Depth     8
  87.         EndSubSection
  88.         SubSection "Display"
  89.                 Viewport   0 0
  90.                 Depth     15
  91.         EndSubSection
  92.         SubSection "Display"
  93.                 Viewport   0 0
  94.                 Depth     16
  95.         EndSubSection
  96.         SubSection "Display"
  97.                 Viewport   0 0
  98.                 Depth     24
  99.         EndSubSection
  100. EndSection
  101. Section "dri"
  102.   Mode 0666
  103. EndSection
复制代码


make.conf:
  1. CFLAGS="-O2 -march=i686 -pipe"
  2. CXXFLAGS="${CFLAGS}"
  3. CHOST="i686-pc-linux-gnu"
  4. MAKEOPTS="-j2"
  5. USE="-qt3 -qt4 -arts -kde X dbus -gnome hal alsa jpeg xscreensaver -ipv6"
  6. FEATURES="ccache parallel-fetch"
  7. CCACHE_SIZE="2G"
  8. INPUT_DEVICES="keyboard mouse synaptics"
  9. VIDEO_CARDS="intel"
  10. SYNC="rsync://mirror.averse.net/gentoo-portage"
  11. GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo/
  12. ftp://gentoo.anheng.com.cn/gentoo/
  13. ftp://ftp.linuxforum.net/gentoo http://mirror.uni-c.dk/pub/gentoo/
  14. http://mirror.gentoo.gr.jp/  http://mirrors.acm.cs.rpi.edu/gentoo/
  15. ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO ftp://ftp.twaren.net/Linux/Gentoo/
  16. ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO/"
  17. source /usr/local/portage/layman/make.conf
复制代码


package.use:
  1. app-text/acroread nsplugin
  2. net-im/pidgin qq gstreamer
  3. media-gfx/gimp jpeg bmp png tiff jpg gif wmf
  4. media-video/mplayer -X acc aac real avi win32codecs srt wmv live jpeg 3dfx oggvorbis 3dnow aalib gnome xv opengl truetype dvd wma quicktime fbcon directfb ipv6
  5. net-irc/irssi perl
  6. media-libs/gd jpeg png bmp tiff jpg
  7. app-emacs/auctex preview-latex
  8. media-gfx/ristretto jpeg png bmp tiff jpg gif wmf
  9. media-gfx/scrot png bmp jpeg jpg
  10. media-libs/imlib2 png bmp jpeg jpg tiff gif raw wmf
  11. x11-libs/libXft nwspr
  12. net-www/mplayerplug-in gtk
  13. app-text/poppler-bindings cairo gtk
  14. net-p2p/amule gtk
  15. media-gfx/blender png player
  16. www-client/mozilla-firefox ipv6
  17. media-sound/audacious chardet
  18. media-plugins/audacious-plugins mp3
  19. xfce-base/xfwm4 xcomposite
  20. app-editors/emacs-cvs -dbus -alsa gtk xft m17n-lib spell
  21. app-i18n/scim X11 gtk
  22. virtual/poppler-glib cairo
  23. www-client/w3m imlib fbcon
  24. mail-client/mozilla-thunderbird linguas_en linguas_en_GB linguas_en_US linguas_zh linguas_zh_CN linguas_zh_TW
  25. app-office/gnucash chipcard ofx
  26. x11-libs/goffice gnome
  27. app-crypt/pinentry gtk
  28. gnome-extra/libgsf gnome
  29. x11-libs/cairo svg
  30. sci-mathematics/scilab Xaw3d
复制代码


package.keywords:
  1. app-i18n/zhcon
  2. app-editors/emacs-cvs
  3. app-emacs/emacs-common-gentoo
  4. app-portage/layman
  5. media-fonts/wqy-zenhei
复制代码


emerge --info
  1. Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
  2. =================================================================
  3. System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Celeron-R-_M_processor_1.50GHz-with-glibc2.0
  4. Timestamp of tree: Thu, 02 Apr 2009 10:45:01 +0000
  5. ccache version 2.4 [enabled]
  6. app-shells/bash:     3.2_p39
  7. dev-java/java-config: 2.1.7
  8. dev-lang/python:     2.5.2-r7
  9. dev-util/ccache:     2.4-r7
  10. sys-apps/baselayout: 1.12.11.1
  11. sys-apps/sandbox:    1.2.18.1-r2
  12. sys-devel/autoconf:  2.13, 2.63
  13. sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
  14. sys-devel/binutils:  2.18-r3
  15. sys-devel/gcc-config: 1.4.0-r4
  16. sys-devel/libtool:   1.5.26
  17. virtual/os-headers:  2.6.27-r2
  18. ACCEPT_KEYWORDS="x86"
  19. CBUILD="i686-pc-linux-gnu"
  20. CFLAGS="-O2 -march=i686 -pipe"
  21. CHOST="i686-pc-linux-gnu"
  22. CONFIG_PROTECT="/etc"
  23. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
  24. CXXFLAGS="-O2 -march=i686 -pipe"
  25. DISTDIR="/usr/portage/distfiles"
  26. FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
  27. GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo/ ftp://gentoo.anheng.com.cn/gentoo/  ftp://ftp.linuxforum.net/gentoo http://mirror.uni-c.dk/pub/gentoo/  http://mirror.gentoo.gr.jp/  http://mirrors.acm.cs.rpi.edu/gentoo/  ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO ftp://ftp.twaren.net/Linux/Gentoo/  ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO/"
  28. LANG="en_US.UTF-8"
  29. LDFLAGS="-Wl,-O1"
  30. MAKEOPTS="-j2"
  31. PKGDIR="/usr/portage/packages"
  32. PORTAGE_CONFIGROOT="/"
  33. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  34. PORTAGE_TMPDIR="/var/tmp"
  35. PORTDIR="/usr/portage"
  36. PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/gnome"
  37. SYNC="rsync://mirror.averse.net/gentoo-portage"
  38. USE="X acl alsa berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm hal iconv isdnlog jpeg midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg xscreensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
  39. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码


glxgears:
  1. 3695 frames in 5.0 seconds = 738.898 FPS
  2. 3701 frames in 5.0 seconds = 740.077 FPS
  3. 3714 frames in 5.0 seconds = 742.640 FPS
  4. 3724 frames in 5.0 seconds = 744.683 FPS
复制代码


碰到的问题,但这些问题都不影响使用:
  1. 1、emacs-cvs无法调出SCIM输入法。
  2. 2、当audacious位于Xfce的系统托盘时无法用右键点击其图标进行播放操作。
  3. 3、播放时有声音,但是插入耳机没有声音。
  4. 4、/var/log/Xorg.0.log中提示:
  5. [code](WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
  6. (WW) intel(0): Bad V_BIOS checksum
  7. (WW) intel(0): Register 0x68000 (TV_CTL) changed from 0x30000000 to 0x000c0c00
  8. (WW) intel(0): PRB0_CTL (0x0000f001) indicates ring buffer enabled
  9. (WW) intel(0): Existing errors found in hardware state.
  10. (WW) AIGLX: 3D driver claims to not support visual 0x23
  11. (WW) AIGLX: 3D driver claims to not support visual 0x24
  12. (WW) AIGLX: 3D driver claims to not support visual 0x25
复制代码
另外当用Ctrl+Alt+Backspace干掉X window的时候还会提示错误:
  1. (EE) intel(0): I830 Vblank Pipe Setup Failed 0
  2. FreeFontPath: FPE /usr/share/fonts/misc/ refcount is 2, should be 1; fixing
复制代码
[/code]

最后来张截图,呵呵。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-4-2 21:28:32 | 显示全部楼层
欢迎加入 gentoo
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-2 21:33:21 | 显示全部楼层
Post by rainytooo;1969137
欢迎加入 gentoo
呵呵,谢谢。希望大家多帮忙。
回复 支持 反对

使用道具 举报

发表于 2009-4-2 21:53:17 | 显示全部楼层
Post by kelvinxyz;1969140
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found

显然是ACPI没有打开,安装sys-power/acpid了吗?
回复 支持 反对

使用道具 举报

发表于 2009-4-2 22:31:30 | 显示全部楼层
> 1、emacs-cvs无法调出SCIM输入法。

emacs可以使用eim五笔/拼音输入法
google emacs eim

另,fcitx/ibus都是不错的选择
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-2 23:02:15 | 显示全部楼层
谢谢coderoar,刚才查了一下,确实没安装acpid,以为只要编译内核的时候加上就可以了呢,呵呵,又解决了一个问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-2 23:03:40 | 显示全部楼层
谢谢flyinflash,我先试试eim吧,呵呵,在网上看看fcitx和ibus也有很多人的掉不出来。
回复 支持 反对

使用道具 举报

发表于 2009-4-2 23:48:56 | 显示全部楼层
看手册了吗,官网上有。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-2 23:57:15 | 显示全部楼层
Post by coderoar;1969203
看手册了吗,官网上有。

看了,要不像我这样的newbie怎么能装出一个系统,呵呵,记得当时装了,后来装完系统及软件之后清理一些不需要的包时可能卸载了。
回复 支持 反对

使用道具 举报

发表于 2009-4-7 08:57:37 | 显示全部楼层
不错啊,学习一下,共同进步
回复 支持 反对

使用道具 举报

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

本版积分规则

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