熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

重安裝gentoo 2005.1 for AMD64版經驗

2022-06-13   來源: Oracle 

  硬件背景
  
  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/nfexample for a more detailed example
  CFLAGS= pipe O
  CHOST=x_pclinuxgnu
  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/gentoosrc/rcscripts/etc/fstabv //
  :: vapier Exp $
  #
  # noatime turns off atimes for increased performance (atimes normally arent
  # needed; notail increases performance of ReiserFS (at the expense of storage
  # efficiency) Its safe to drop the noatime options if you want and to
  # switch between 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      noautonoatime 
  /dev/hdd        /        ext      noatime    
  /dev/hdd        none      swap      sw       
  /dev/cdroms/cdrom   /mnt/cdrom   iso     noautoro   
  #/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      nodevnosuidnoexec
  
  內核配置文件
  **************************************************************************
  最主要的選項handbook都已經提到了根據handbook編譯的內核基本可以啟動
  當然也可以用genkernel
  每個人對內核的要求不一樣而且這個文件太長不貼出來了
  **************************************************************************
  
  /boot/grub/nf
  **************************************
  這個文件默認啟動windows
  root(hd)是因為安裝linux的盤是slave
  **************************************
  代碼:
  
  #default windows
  default
  timeout
  #splashimage=(hd)/grub/splashxmpgz
  
  #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 scimpinyin
  小心上面不要寫錯感謝日月改正
  *******************************************************
  代碼:
  
  # /etc/skel/bashrc:
  # $Header: /var/cvsroot/gentoox/appshells/bash/files/dotbashrcv /
  / :: vapier Exp $
  #
  # This file is sourced by all *interactive* bash shells on startup
  # including some apparently interactive shells such as scp and rcp
  # that cant tolerate any output
  
  # Test for an interactive shell There is no need to set anything
  # past this point for scp and rcp and its important to refrain from
  # outputting anything in those cases
  if [[ $ != *i* ]]; then
  # Shell is noninteractive Be done now
  return
  fi
  
  # Shell is interactive It is okay to produce output at this point
  # though this example doesnt produce any Do setup for
  # commandline 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_COMMAND=echo ne \];${USER}@${HOSTNAME%%*}:${PWD/$
  HOME/~}\
  ;;
  screen)
  PROMPT_COMMAND=echo ne \_${USER}@${HOSTNAME%%*}:${PWD/$HO
  ME/~}\\\
  ;;
  esac
  
  LANG=en_USutf
  export LC_CTYPE=en_USutf
  export XMODIFIERS=@im=SCIM
  export GTK_IM_MODULE=scim
  export QT_IM_MODULE=scim
  
  # uncomment the following to activate bashcompletion:
  #[ f /etc/profiled/bashcompletion ] && source /etc/profiled/bashcompletion
  
  ~/xinitrc
  (這個是啟動kde的)
  代碼:
  
  exec startkde
  #exec gnomesession
  #exec wmaker
  
  安裝ati pro驅動
  ********************************
  #emerge atidrivers
  (配置X命令)
  #/opt/ati/bin/fglrxconfig
  ********************************
  
  /etc/X/nf
  
  代碼:
  
  # File: nf
  # File generated by fglrxconfig (C) ATI Technologies a substitute for xfconfig
  
  # 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 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 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  # SOFTWARE
  #
  # 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 Software without prior written authorization from the
  # XFree Project
  #
  
  # **********************************************************************
  # Refer to the XFConfig(/) man page for details about the format of
  # this file
  # **********************************************************************
  
  #
From:http://tw.wingwit.com/Article/program/Oracle/201311/16883.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.