分享
 
 
 

重安装gentoo2005.1forAMD64版经验

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

硬件背景:

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.

# <fs

<mountpoint

<type

<opts

<dump/pa

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.

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

#

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有