|
硬件背景: amd64 3000+, ati 9800 pro, 1G DDR 安装网络: 我的是动态ip #dhcpcd -HD eth0 不要忘记chroot后要#emerge --sync 重点是一些配置文件
/etc/make.conf 代码: # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CFLAGS=" -pipe -O2" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" USE="gnome kde alsa X qt gtk -ipv6 cjk gtk acpi ati" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo ftp://mirror.switch.ch /mirror/gentoo" 配置文件: /etc/fstab: 代码: # /etc/fstab: static file system information. # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23 :05:14 vapier Exp $ # # noatime turns off atimes for increased performance (atimes normally aren't # needed; notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # See the manpage fstab(5) for more information. # ss> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/hdd1 /boot ext2 noauto,noatime 1 2 /dev/hdd3 / ext3 noatime 0 1 /dev/hdd2 none swap sw 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 #/dev/fd0 /mnt/floppy auto noauto 0 0 # NOTE: The next line is critical for boot! proc /proc proc defaults 0 0 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for # POSIX shared memory (shm_open, shm_unlink). # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will # use almost no memory if not populated with files) shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 内核配置文件: ************************************************************************** 最主要的选项handbook都已经提到了,根据handbook编译的内核基本可以启动 当然也可以用genkernel 每个人对内核的要求不一样,而且这个文件太长,不贴出来了 ************************************************************************** /boot/grub/grub.conf ************************************** 这个文件默认启动windows root(hd1,0)是因为安装linux的盘是slave ************************************** 代码: #default windows default 1 timeout 30 #splashimage=(hd1,0)/grub/splash.xmp.gz #gentoo linux title=gentoo linux2.6.12 root (hd1,0) kernel /kernel-2.6.12-10 root=/dev/hdd3 #windows title=windows xp rootnoverify (hd0,0) makeactive chainloader +1 ~/.bashrc ******************************************************* 这个文件的配置基本可以运行scim了 当然需要 #emerge scim #ACCEPT_KEYWORDS="~amd64" emerge scim-pinyin 小心上面不要写错,感谢日月改正 ******************************************************* 代码: # /etc/skel/.bashrc: # $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bashrc,v 1.3 2005/0 7/06 22:10:22 vapier Exp $ # # This file is sourced by all *interactive* bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if [[ $- != *i* ]]; then # Shell is non-interactive. Be done now return fi # Shell is interactive. It is okay to produce output at this point, # though this example doesn't produce any. Do setup for # command-line interactivity. # colors for ls, etc. Prefer ~/.dir_colors #64489 if [[ -f ~/.dir_colors ]]; then eval `dircolors -b ~/.dir_colors` else eval `dircolors -b /etc/DIR_COLORS` fi alias ls="ls --color=auto" # Change the window title of X terminals case $TERM in xterm*|rxvt*|Eterm) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$ HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HO ME/~}\033\\"' ;; esac LANG="en_US.utf8" export LC_CTYPE="en_US.utf8" export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE="scim" export QT_IM_MODULE="scim" # uncomment the following to activate bash-completion: #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion ~/.xinitrc (这个是启动kde的) 代码: exec startkde #exec gnome-session #exec wmaker 安装ati9800 pro驱动: ******************************** #emerge ati-drivers (配置X命令) #/opt/ati/bin/fglrxconfig ******************************** /etc/X11/xorg.conf 代码: # File: xorg.conf # File generated by fglrxconfig (C) ATI Technologies, a substitute for xf86config. # Note by ATI: the below copyright notice is there for servicing possibly # pending third party rights on the file format and the instance of this file. # # Copyright (c) 1999 by The XFree86 Project, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # # Except as contained in this notice, the name of the XFree86 Project shall # not be used in advertising or otherwise to promote the sale, use or other # dealings in this Software without prior written authorization from the # XFree86 Project. # # ********************************************************************** # Refer to the XF86Config(4/5) man page for details about the format of # this file. # ********************************************************************** # ********************************************************************** # DRI Section # ********************************************************************** Section "dri" # Access to OpenGL ICD is allowed for all users: Mode 0666 # Access to OpenGL ICD is restricted to a specific user group: # Group 100 # users # Mode 0660 EndSection # ********************************************************************** # Module section -- this section is used to specify # which dynamically loadable modules to load. # ********************************************************************** # Section "Module" # This loads the DBE extension module. Load "dbe" # Double buffer extension # This loads the miscellaneous extensions module, and disables # initialisation of the XFree86-DGA extension within that module. SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection # This loads the Type1 and FreeType font modules Load "type1" # Load "freetype" Load "xtt" # This loads the GLX module Load "glx" # libglx.a Load "dri" # libdri.a EndSection # ********************************************************************** # Files section. This allows default font and rgb paths to be set # ********************************************************************** Section "Files" # The location of the RGB database. Note, this is the name of the # file minus the extension (like ".txt" or ".db"). There is normally # no need to change the default. RgbPath "/usr/X11R6/lib/X11/rgb" # Multiple FontPath entries are allowed (which are concatenated toget [1] [2] 下一页
 |
频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。
| 原始作者:佚名 |
录入时间:2007-1-2 16:40:48 |
| 信息来源:不详 |
投稿信箱:itqoo@126.com |
|
|
 |
|