知识大全 重安装gentoo 2005.1 for AMD64版经验
Posted 知
篇首语:好人的天生欲望是知识。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 重安装gentoo 2005.1 for AMD64版经验相关的知识,希望对你有一定的参考价值。
重安装gentoo 2005.1 for AMD64版经验 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!
硬件背景 amd + ati pro G DDR 安装网络 我的是动态ip #dhcpcd HD eth 不要忘记chroot后要#emerge sync 重点是一些配置文件 /etc/nf 代码: # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/nf example for a more detailed example CFLAGS= pipe O CHOST= x _ pc linux gnu CXXFLAGS= $CFLAGS USE= gnome kde alsa X qt gtk ipv cjk gtk acpi ati GENTOO_MIRRORS= /mirror/gentoo 配置文件 /etc/fstab: 代码: # /etc/fstab: static file system information # $Header: /var/cvsroot/gentoo src/rc scripts/etc/fstab v / / : : 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 beeen notail / tail freely # # See the manpage fstab( ) for more information # <fs> <mountpoint> <type> <opts> <dump/pa ss> # NOTE: If your BOOT partition is ReiserFS add the notail option to opts /dev/hdd /boot ext noauto noatime /dev/hdd / ext noatime /dev/hdd none swap sw /dev/cdroms/cdrom /mnt/cdrom iso noauto ro #/dev/fd /mnt/floppy auto noauto # NOTE: The next line is critical for boot! proc /proc proc defaults # glibc 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 内核配置文件 ************************************************************************** 最主要的选项handbook都已经提到了 根据handbook编译的内核基本可以启动 当然也可以用genkernel 每个人对内核的要求不一样 而且这个文件太长 不贴出来了 ************************************************************************** /boot/grub/nf ************************************** 这个文件默认启动windows root(hd )是因为安装linux的盘是slave ************************************** 代码: #default windows default timeout #splashimage=(hd )/grub/splash xmp gz #gentoo linux title=gentoo linux root (hd ) kernel /kernel root=/dev/hdd #windows title=windows xp rootnoverify (hd ) makeactive chainloader + ~/ bashrc ******************************************************* 这个文件的配置基本可以运行scim了 当然需要 #emerge scim #ACCEPT_KEYWORDS= ~amd emerge scim pinyin 小心上面不要写错 感谢日月改正 ******************************************************* 代码: # /etc/skel/ bashrc: # $Header: /var/cvsroot/gentoo x /app shells/bash/files/dot bashrc v / / : : 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 # mand line interactivity # colors for ls etc Prefer ~/ dir_colors # 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_MAND= echo ne \\ ] ;$USER@$HOSTNAME%% *:$PWD/$ HOME/~\\ ;; screen) PROMPT_MAND= echo ne \\ _$USER@$HOSTNAME%% *:$PWD/$HO ME/~\\ \\\\ ;; esac LANG= en_US utf export LC_CTYPE= en_US utf export XMODIFIERS= @im=SCIM export GTK_IM_MODULE= scim export QT_IM_MODULE= scim # unment the following to activate bash pletion: #[ f /etc/profile d/bash pletion ] && source /etc/profile d/bash pletion ~/ xinitrc (这个是启动kde的) 代码: exec startkde #exec gnome session #exec wmaker 安装ati pro驱动 ******************************** #emerge ati drivers (配置X命令) #/opt/ati/bin/fglrxconfig ******************************** /etc/X /nf 代码: # File: nf # File generated by fglrxconfig (C) ATI Technologies a substitute for xf config # 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) by The XFree Project Inc # # Permission is hereby granted free of charge to any person obtaining a # copy of this sofare and associated documentation files (the Sofare ) # to deal in the Sofare without restriction including without limitation # the rights to use copy modify merge publish distribute sublicense # and/or sell copies of the Sofare and to permit persons to whom the # Sofare 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 Sofare # # THE SOFARE 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 XFREE 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 SOFARE OR THE USE OR OTHER DEALINGS IN THE # SOFARE # # Except as contained in this notice the name of the XFree Project shall # not be used in advertising or otherwise to promote the sale use or other # dealings in this Sofare without prior written authorization from the # XFree Project # # ********************************************************************** # Refer to the XF Config( / ) man page for details about the format of # this file # ********************************************************************** # cha138/Article/program/Oracle/201311/16883相关参考