电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

重安装gentoo 2005.1 for AMD64版经验


发布日期:2024/5/5
 

硬件背景

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 extnoautonoatime

/dev/hdd / extnoatime

/dev/hdd noneswapsw

/dev/cdroms/cdrom/mnt/cdromiso noautoro

#/dev/fd /mnt/floppy autonoauto

# NOTE: The next line is critical for boot!

proc/proc procdefaults

# 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/shmtmpfs 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 shellThere 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 noninteractiveBe done now

return

fi

# Shell is interactiveIt is okay to produce output at this point

# though this example doesnt produce anyDo setup for

# commandline interactivity

# colors for ls etcPrefer ~/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 NONINFRINGEMENTIN 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

# **********************************************************************

#

上一篇:如何使用归档日志进行完全恢复

下一篇:全面理解虚拟邮件域