设为首页 友情链接
在线留言 发表文章
加入收藏 广告联系

刺猬首页

| 专案技术 | 网络技术 | 图形图象 | 网络编程 | 网页设计 | 操作系统 | 服务器 | 技术白皮书 | 在线实验室 | 刺猬论坛 |
小说专版  | 数据库 | 设计赏析 | 存储频道 | 网络安全 | 私服架设 |  Solaris | 网站评估 | PC维护技巧 | 下载中心 | 博 客 |
专   题: | Linux | java | cisco | 防病毒 | 刀片 | SOA | iscsi | ASP.NET | SQL | Oracle |
您现在的位置: IT公社 IT community >> Linux专题 >> Linux入门 >> 教程正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
SuSe Linux 下安装 ADSL
安装配置:无软盘安装Red…
硬盘安装SUSE Linux 10.…
在 iSeries 上安装 SUSE…
IBM BladeCenter JS20 -…
64位SuSE Linux 10.0的安…
安装和配置 SuSE Linux …
debian安装手记
FC3下安装fcitx
在Ubuntu 6.10 上安装Lo…
  重安装gentoo 2005.1 for AMD64版经验         
重安装gentoo 2005.1 for AMD64版经验
 

硬件背景:
  
  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
教程录入:itqoo    责任编辑:itqoo 
  • 上一个教程:

  • 下一个教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    - 关于我们 - 合作伙伴 - 友情链接 - 广告刊登 - 投稿热线 - 在线留言版权声明联系方式 -
    IT公社版权所有 粤ICP备05127012号
    Copyrigh@2005-2006 itqoo.com.Inc All Rights Reserved  推荐分辨率 1024*768
    联系站长:E-Mail:itqoo@126.com     MSN:urchincc@hotmail.com    QQ:点击这里给我发消息
    特别感谢:亿太网络提供空间支持