| View previous topic :: View next topic |
| Author |
Message |
zephyrrr n00b

Joined: 28 Aug 2005 Posts: 2
|
Posted: Mon Sep 05, 2005 11:18 am Post subject: 安装和一些基本配置的bash script |
|
|
参照Gentoo的安装文档和其他的一些文档,写了下面的一个script。每个步骤前面都有相应文档的连接,最好在执行之前能看一下文档。
如果安装,按照步骤简单执行./geninstall 1[2][3]....[10]即可。安装后面的是一些基本配置,可./geninstall function_name方式执行。
作为自己的一个笔记,写的不是太好,可当作一个参考。
另外还有一些系统配置文件,根据自己系统定制的,也可作为参考。
| Code: |
#!/bin/bash
# FILE:
# geninstall.sh
# DESC:
# This is a simple script to install Gentoo automatically.
# USEAGE:
# How to run this script to install Gentoo:
# $ source geninstall.sh [ssh|basic|new|reboot]
# AUTHOR:
# Yen-Ting Chen, cyt93@cs.ccu.edu.tw
# CREATE:
# 2005-02-18
# MODIFIED:
# By : Ting Feng, fengting@gmail.com
# new install script of every step accroding to the gentoo install doc
# some modifications to the installed gentoo system accroding to the doc in gentoo.org
# in every step there is links to the doc, please read it first
# Date: 2005-08-19
# My computer and installed gentoo info:
# Pentium4, Nvidia video card, AC97 sound card, realtek 8139 network card
# network is dhcp
# gentoo version: 2.6.12-gentoo-r9
# Kernel: gentoo-sources, 2.6
# livecd version: 2005.1
# for security, you should fdisk disk by yourself
######################################################################################################################
# Gentoo Install Help : http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml
# Modify the following to meet your needs:
export livecd_version=2005.1
export stage1_tarball="stage1-x86-${livecd_version}.tar.bz2"
export stage1_url="http://gentoo.osuosl.org/releases/x86/${livecd_version}/stages/x86/${stage1_tarball}"
export portage_tarball=portage-20050817.tar.bz2
export portage_url="http://gentoo.osuosl.org/snapshots/${portage_tarball}"
export stage3_tarball_cdrom="/mnt/cdrom/stages/stage3-pentium4-${livecd_version}.tar.bz2"
export portage_tarball_cdrom="/mnt/cdrom/snapshots/portage-20041022.tar.bz2"
alias ls='ls --color=auto'
alias nano='nano -w'
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=3
config_network() {
echo ">>> Setup root password <<<"
passwd
echo ">>> Start sshd <<<"
/etc/init.d/sshd start
echo ">>> Setup network <<<"
net-setup eth0
ifconfig eth0
dhcpcd eth0
echo ">>> You can see the doc in the gentoo.org <<<"
echo "*** links2 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml"
echo "<<< you should make sure the date is correct <<<"
date
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=4
prepare_disk() {
echo ">>> You should do it yourself <<<"
echo ">>> Setup hard disk partitions <<<"
echo ">>> set partitions for /boot,/, and swap <<<"
echo "*** fdisk /dev/hda"
echo ">>> format partitions <<<"
echo "*** mke2fs -j /dev/hda1 #for /boot"
echo "*** mke2fs -j /dev/hda3 #for /"
echo "*** mkswap /dev/hda2 #for /Swap"
echo "*** swapon /dev/hda2 #for /Swap"
echo ">>> Mount partitions <<<"
echo "*** mount /dev/hda3 /mnt/gentoo"
echo "*** mkdir /mnt/gentoo/boot"
echo "*** mount /dev/hda1 /mnt/gentoo/boot"
}
# It's my second computer partition setup
prepare_disk2() {
# /dev/hda1 -> /boot
# /dev/hda6 -> swap
# /dev/hda9(10G) -> /
# /dev/hda10(20G) -> /usr
# /dev/hda11(5G) -> /var
# /dev/hda12(17G) -> /home
echo ">>> Setup hard disk partitions <<<"
mke2fs -j /dev/hda9
mke2fs -j /dev/hda10
mke2fs -j /dev/hda11
mke2fs -j /dev/hda12
mkswap /dev/hda6
swapon /dev/hda6
mount /dev/hda9 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
mkdir /mnt/gentoo/usr
mount /dev/hda10 /mnt/gentoo/usr
mkdir /mnt/gentoo/var
mount /dev/hda11 /mnt/gentoo/var
mkdir /mnt/gentoo/home
mount /dev/hda12 /mnt/gentoo/home
#chmod 1777 /mnt/gentoo/tmp
#chmod 1777 /mnt/gentoo/var/tmp
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=5
install_files_stage1() {
echo ">>> Install stage1 tarball <<<"
cd /mnt/gentoo
wget $stage1_url
tar -xvjpf $stage1_tarball
echo ">>> Install Portage <<<"
wget $portage_url
tar -xvjf $portage_tarball -C /mnt/gentoo/usr
}
# Install from stage3
install_files_stage3() {
echo ">>> Install stage3 tarball <<<"
cd /mnt/gentoo
tar -xvjpf $stage3_tarball
echo ">>> Install Portage <<<"
tar -xvjf $portage_tarball -C /mnt/gentoo/usr
mkdir /mnt/gentoo/usr/portage/distfiles
cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=6
chroot_base_system() {
echo ">>> Mirrorselect <<<"
mirrorselect -a -s5
echo ">>> Mount /proc filesystem <<<"
mount -t proc none /mnt/gentoo/proc
echo ">>> Add DNS infomation <<<"
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
echo ">>> chroot to new Gentoo partition <<<"
chroot /mnt/gentoo /bin/bash
}
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
chroot_post_stage1() {
env-update
source /etc/profile
echo ">>> Ensure make.profile is correct <<<"
ln -snf /usr/portage/profiles/default-linux/x86/${livecd_version} /etc/make.profile
ls -FGg /etc/make.profile
echo ">>> Setup CFLAGS & USE flags<<<"
cp -f make.conf /etc/make.conf
echo ">>> Update Portage tree <<<"
emerge --sync --quiet
echo ">>> Set Locales for glibc<<<"
mkdir -p /etc/portage
echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
cp -f locales.build /etc/locales.build
echo ">>> Bootstrapping <<<"
cd /usr/portage
scripts/bootstrap.sh
echo ">>> Build system <<<"
echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
cp -f locales.build /etc/locales.build
emerge --emptytree system
}
chroot_post_stage3() {
env-update
source /etc/profile
echo ">>> Ensure make.profile is correct <<<"
ln -snf /usr/portage/profiles/default-linux/x86/${livecd_version} /etc/make.profile
ls -FGg /etc/make.profile
cp -f make.conf /etc/make.conf
touch /etc/nsswitch.conf
CONFIG_PROTECT="-*" emerge baselayout
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=7
config_kernel() {
echo "Setup timezone <<<"
ls /usr/share/zoneinfo
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo ">>> Install kernel <<<"
emerge gentoo-sources
echo ">>> Config kernel <<<"
cd /usr/src/linux
#make menuconfig
cp -f config-2.6.12-gentoo-r9 .config
echo ">>> Make & install kernel <<<"
make && make modules_install
cp arch/i386/boot/bzImage /boot/kernel-`uname -r`
cp System.map /boot/System.map-`uname -r`
cp .config /boot/config-`uname -r`
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=8
config_system() {
echo ">>> Create /etc/fstab <<<"
cp -f fstab /etc/fstab
echo "HOSTNAME=HomeComputer" >> /etc/conf.d/hostname
echo "DNSDOMAIN=HomeNetwork" >> /etc/conf.d/domainname
echo "127.0.0.1 HomeComputer.HomeNetwork" >> /etc/hosts
rc-update add domainname default
echo ">>> Setup network <<<"
echo "iface_eth0=\"dhcp\"" >> /etc/conf.d/net
rc-update add net.eth0 default
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=9
install_system_tools() {
echo ">>> emerge metalog <<<"
emerge metalog
rc-update add metalog default
# http://www.gentoo.org/doc/en/cron-guide.xml
echo ">>> emerge vixie-cron <<<"
emerge vixie-cron
rc-update add vixie-cron default
emerge anacron
rc-update add anacron default
echo ">>> emerge slocate <<<"
emerge slocate
echo ">>> emerge dhcpcd <<<"
emerge dhcpcd
echo ">>> emerge hotplug <<<"
emerge hotplug
rc-update add hotplug default
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=10
config_bootloader() {
echo ">>> Setup GRUB <<<"
emerge grub
echo ">>> you should modify it to suit for own setup <<<"
cp -r grub.conf /boot/grub/grub.conf
echo ">>> Start Setup GRUB <<<"
echo "*** root (hd0,0)"
echo "*** setup (hd0)"
grub
echo ">>> Setup root password <<<"
passwd
echo ">>> Time to reboot <<<"
cd
umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
reboot
}
# http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=11
finalizing_installation(){
echo ">>> Add Users <<<"
echo "*** useradd -m -G users,wheel,audio,video -s /bin/bash john"
echo ">>> Now you can install packages from CD2 <<<"
echo "*** export PKGDIR=\"/mnt/cdrom/packages\""
echo "*** emerge --usepkg gnome"
}
######################################################################################################################
# clean out all but the most recent version of sourcefiles
# http://forums.gentoo.org/viewtopic-t-337074.html
clean_out_sourcefiles(){
wget http://gentoo.org.mx/yacleaner/yacleaner-0.3
chmod +x yacleaner-0.3
./yacleaner-0.3 -a -v -d all
}
# copy bash config files
copy_bash_config(){
cp -f .bashrc ~/
cp -f .bash_profile ~/
cp -f .bash_logout ~/
cp -f .bashrc /etc/skel/
cp -f .bash_profile /etc/skel/
cp -f .bash_logout /etc/skel/
}
# I'm not able to run X applications as root after su'ing
# http://www.gentoo.org/doc/en/faq.xml
start_X_non_root(){
echo "export XAUTHORITY=\"${HOME}/.Xauthority\"" >> /etc/profile
}
# USB
# http://www.gentoo.org/doc/en/usb-guide.xml
setup_usb(){
lspci -v | grep USB
#make sure kernel configuration is correct
# <*> SCSI disk support
dmesg | less
mkdir /mnt/usb
mount /dev/sda1 /mnt/usb
emerge usbutils
lsusb
}
# X Server Configuration
# http://www.gentoo.org/doc/en/xorg-config.xml
setup_X(){
emerge -u --deep xorg-x11
env-update && source /etc/profile
Xorg -configure
X -config /root/xorg.conf.new
cp /root/xorg.conf.new /etc/X11/xorg.conf
# or you can config the X Server with xorgconfig | xorgcfg | xorgcfg -textmode
# or you can copy my xorg.conf
##some modification to xorg.conf
#Section "Screen"
# DefaultDepth 24
# SubSection "Display"
# Modes "1024x768"
# EndSubSection
#EndSection
#Section "InputDevice"
# Option "Device" "/dev/input/mice"
##Enable mousewheel:
# Option "Protocol" "IMPS/2"
# Option "ZAxisMapping" "4 5"
#EndSection
}
# nVidia Configuration
# http://www.gentoo.org/doc/en/nvidia-guide.xml
setup_nVidia(){
#make sure kernel configuration is correct
emerge nvidia-glx
modprobe nvidia
echo "nvidia" >> /etc/modules.autoload.d/kernel-2.6
modules-update
#emerge nvidia-kernel after kernal update
##some modification to xorg.conf
# Section "Device"
# Driver "nvidia"
# VideoRam 65536
# EndSection
# Section "Module"
# #Load "dri"
# Load "glx"
# EndSection
# Adding your user to the video group
echo "*** gpasswd -a youruser video"
opengl-update nvidia
glxinfo | grep direct
#Add "nvidia" in your USE variable in /etc/make.conf
}
# GNOME Configuration
# http://www.gentoo.org/doc/en/gnome-config.xml
setup_gnome(){
emerge gnome xscreensaver
# or you can emerge gnome-light
env-update && source /etc/profile
/etc/init.d/famd start
rc-update add famd default
echo "exec gnome-session" >> ~/.xinitrc
startx
# or enter X directly: rc-update add xdm default && echo "DISPLAYMANAGER=\"gdm\"" >> /etc/rc.conf
}
# utf8 && locale && chinese:
# http://www.gentoo.org/doc/en/utf-8.xml
# http://www.gentoo.org/doc/en/guide-localization.xml
setup_locale(){
ls -l /etc/localtime
# edit /etc/conf.d/clock && CLOCK="local"
echo "CLOCK=\"local\"" >> /etc/conf.d/clock
# http://forums.gentoo.org/viewtopic-t-269039.html
# if you have done it in your installation, don't do it again
echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
cp locales.build /etc/locales.build
emerge glibc
cp 02locale /etc/env.d/
# make sure kernel configuration is correct
# File Systems -->
# Native Language Support -->
# (utf8) Default NLS Option
# <*> NLS UTF8
# File Systems -->
# DOS/FAT/NT Filesystems -->
# (936) Default codepage for fat
emerge --ask app-text/convmv # changing the encoding of filenames
# and you can use iconv # changing the contents of files
# make sure nls,cjk in USE flag
emerge terminus-font intlfonts freefonts cronyx-fonts corefonts
emerge arphicfonts twmoefonts
# copy windows font to gentoo
echo "*** mount /dev/hda? /mnt/windows"
echo "*** cp /mnt/windows/Windows/Fonts/* /usr/share/fonts/local"
echo "*** fc-cache"
export LESSCHARSET=utf-8
edit /etc/man.conf
# --NROFF /usr/bin/nroff -Tascii -c -mandoc --> -Tlation1
# OpenOffice: echo "LINGUAS=\"cn en\"" >> /etc/make.conf && emerge openoffice
echo "export LANG=\"zh_CN\"" >> ~/.xinitrc
echo "export LC_ALL=\"zh_CN\"" >> ~/.xinitrc
echo "export LESSCHARSET=latin1" >> ~/.xinitrc
emerge scim scim-pinyin
echo "export XMODIFIERS=@im=SCIM" >> ~/.xinitrc
echo "scim -d" >> ~/.xinitrc
# or cp .xinitrc ~/.xinitrc
# Chinese Man-Page Project at http://cmpp.linuxforum.net
# Get it && read readme && compile it && cp /usr/share/man/zh_CN/GB/* /usr/share/man/zh_CN/
}
# ALSA Configuration
# http://www.gentoo.org/doc/en/alsa-guide.xml
setup_alsa(){
lspci -v | grep -i audio
#Using ALSA provided by your Kernel
emerge alsa-utils
rc-update add alsasound boot
echo "gpasswd -a <username> audio"
alsamixer
# add USE flag alsa to /etc/make.conf USE flag
}
# Java
# http://www.gentoo.org/doc/en/java.xml
setup_jave(){
emerge blackdown-jre blackdown-jdk
# or emerge sun-jre-bin sun-jdk
# or emerge ibm-jre-bin ibm-jdk-bin
# or emerge compaq-jre compaq-jdk
# or emerge jrockit-jdk-bin
java-config --list-available-vms
java-config --set-system-vm=blackdown-jdk
env-update
java-config --list-available-packages
java-config --set-system-classpath=log4j,java-gtk,java-gnome
# or java-config --set-user-classpath
# Add java mozilla to USE flag
}
# Hardware 3D Acceleration
# nvidia-glx include it??
# http://www.gentoo.org/doc/en/dri-howto.xml
setup_3D(){
lspci | grep AGP
#make sure kernel configuration is correct
echo "x11-base/xorg-x11 insecure-drivers" > /etc/portage/package.use
emerge --newuse xorg-x11
# edit /etc/X11/xorg.conf &&
# Section "Module"
# Load "dri"
# Load "glx"
# EndSection
# Section "Device"
# Driver "radeon"
# EndSection
# Section "dri"
# Mode 0666
# EndSection
glxinfo | grep rendering
glxgears
# edit /etc/X11/xorg.conf &&
# Section "Device"
# Option "AGPMode" "4"
# #(This increased FPS from 609 to 618.)
# Option "AGPFastWrite" "True"
# #(This had no measurable effect, but it may increase instability of your computer.)
# #(You may also need to set it in your BIOS.)
# Option "EnablePageFlip" "True"
# #(This improved FPS from 618 to 702. It also is "risky" but few people have reported problems.)
# EndSection
}
# Using a Mouse within the Console
# http://www.gentoo.org/doc/en/gpm.xml
setup_gpm(){
emerge -u gpm
nano /etc/conf.d/gpm
# MOUSE=imps2
# MOUSEDEV=/dev/input/mice
# APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""
emerge links
}
# Caching Compilation
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=3
setup_ccache(){
emerge ccache
echo "CCACHE_SIZE=\"2G\"" >> /etc/make.conf
echo "FEATURES=\"ccache\"" >> /etc/make.conf
ccache -s
# edit /etc/env.d/00basic PATH="/usr/lib/ccache/bin:/opt/bin"
}
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
setup_toolkit(){
emerge ufed # USE flag editor
man dispatch-conf # like etc-update
man quickpkg # build pkg
# Log
mkdir /var/log/portage
echo "PORT_LOGDIR=/var/log/portage" >> /etc/make.conf
# Adding Unofficial Ebuilds
mkdir /usr/local/portage
echo "PORTDIR_OVERLAY=\"usr/local/portage\"" >> /etc/make.conf
# ebuild *** fetch, unpack, compile, install,qmerge | merge | config | package rpm
emerge gentoolkit gentoolkit-dev
# man equery | euse | qpkg | glsa-check
equery list
# make another Initscripts
mkdir /etc/runlevels/offline
cd /etc/runlevels/default
for service in *; do rc-update add $service offline; done
rc-update del net.eth0 offline
c-update show offline
# edit /boot/grub/grub.conf && kernel ... softlevel=offline
}
# Prelink Guide
# http://www.gentoo.org/doc/en/prelink-howto.xml
setup_prelink(){
emerge prelink
# Add "pic" USE flag to /etc/make.conf
emerge --update --deep --newuse world
echo "PRELINK_PATH_MASK=\"/opt\"" >> /etc/env.d/60prelink
prelink -amR
}
# Kernel Upgrade
# http://www.gentoo.org/doc/en/kernel-upgrade.xml
upgrade_kernel(){
# Add "symlink" USE flag to /etc/make.conf
emerge -u gentoo-sources
cd /usr/src/linux
make menuconfig
make && make modules_install
mount /boot
cp arch/i386/boot/bzImage /boot/kernel-2.6.12-gentoo-r9
cp System.map /boot/System.map-2.6.12-gentoo-r9
# Reinstalling external modules, such as nvidia-kernel
}
# Sudo(ers) Guide
# http://www.gentoo.org/doc/en/sudo-guide.xml
setup_sudo(){
emerge -u app-admin/sudo
cp sudoers /etc/sudoers
}
# Keychain Guide
# http://www.gentoo.org/doc/en/keychain-guide.xml
setup_keychain(){
ssh-keygen -t dsa # with strong passphrase
scp ~/.ssh/id_dsa.pub server_user@server:~/myhost.pub
ssh server_user@server "cat ~/myhost.pub >> ~/.ssh/authorized_keys"
ssh server_user@server "cat ~/.ssh/authorized_keys"
}
# Printing Guide
# http://www.gentoo.org/doc/en/printing-howto.xml
setup_printing(){
# make sure kernel is correct
echo "net-print/cups samba" >> /etc/portage/package.use
emerge --newuse cups
# uncomment the line "application/octet-stream" in /etc/cups/mime.types
# uncomment the line containing "application/octet-stream" in /etc/cups/mime.convs
# use it with smb://server/printername
}
# Keychain Guide
# http://www.gentoo.org/doc/en/keychain-guide.xml
setup_keychain(){
ssh-keygen -t dsa # with strong passphrase
scp ~/.ssh/id_dsa.pub server_user@server:~/myhost.pub
ssh server_user@server "cat ~/myhost.pub >> ~/.ssh/authorized_keys"
ssh server_user@server "cat ~/.ssh/authorized_keys"
}
# Useful softwares
install_softwares(){
emerge --sync
emerge -u --deep wget links
emerge -u --deep bash-completion bash-completion-config
emerge -u --deep gaim qterm vsftpd gftp apache mysql mozilla-firefox mozilla-thunderbird
emerge -u --deep ethereal
emerge -u --deep vim xdpf ggv gsview acroread dia
emerge -u --deep mplayer realplayer
emerge -u --deep kdevelop eclips mono
emerge -u --deep openoffice gimp stardict octave gnuplot
emerge -u --deep wine
emerge -u --deep xemacs cc-mode auctex reftex dired perl-modes python-modes
}
# exclude parts of the Portage tree
# http://forums.gentoo.org/viewtopic-p-2551222.html
exculde_portage(){
echo "RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes" >> /etc/make.conf
echo "games-*/" >> /etc/portage/rsync_excludes
echo "kde-*/" >> /etc/portage/rsync_excludes
}
# build while download packages
# http://forums.gentoo.org/viewtopic.php?t=30842
# The Gentoo Framebuffer, Bootsplash & Grubsplash How-To
# http://forums.gentoo.org/viewtopic-t-49036.html
setup_framebuffer(){
emerge bootsplash
cd /usr/src/linux
make menuconfig # See the post
cp arch/i386/boot/bzImage /boot/kernel-2.6.12-gentoo-r9
cp System.map /boot/System.map-2.6.12-gentoo-r9
/sbin/splash -s -f /etc/bootsplash/default/config/bootsplash-1280x1024.cfg >> /boot/initrd-1280x1024
# edit the grub.conf
}
# just for test
test(){
echo "test is ok!"
}
######################################################################################################################
help() {
echo "source geninstall.sh [chrom_pre|cdrom_post|net_pre|net_post]"
}
if [ $# -ne 1 ]; then
help
exit 1
fi
case $1 in
cdrom_pre)
config_network
prepare_disk
install_files_stage3
chroot_base_system
;;
cdrom_post)
chroot_post_stage3
config_kernel
config_system
install_system_tools
config_bootloader
install_packages
;;
net_pre)
config_network
prepare_disk
install_files_stage1
chroot_base_system
;;
net_post)
chroot_post_stage1
config_kernel
config_system
install_system_tools
config_bootloader
;;
1)
config_network
;;
2)
prepare_disk
;;
3)
install_files_stage1
;;
4)
chroot_base_system
;;
5)
chroot_post_stage1
;;
6)
config_kernel
;;
7)
config_system
;;
8)
install_system_tools
;;
9)
config_bootloader
;;
10)
finalizing_installation
;;
*)
$1
;;
help)
help
exit 1
;;
esac
|
我的locals.build
| Code: |
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
zh_CN/GB18030
#zh_CN.GBK/GBK
zh_CN.GB2312/GB2312
zh_CN.UTF-8/UTF-8
|
make.conf
| Code: |
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
USE="symlink pic alsa userlocales -qt -kde qtk gtk2 gnome nls cjk nptl nptlonly
mmx sse nvidiaX alsa bmp emacs gif opengl pam png truetype"
FEATURES="autoaddcvs cvs ccache"
PORT_LOGDIR="/var/log/portage"
PORTAGE_NICENESS=3
CLEAN_DELAY=3
EMERGE_WARNING_DELAY=5
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
#ACCEPT_KEYWORDS="~x86"
CCACHE_SIZE="2G"
LINGUAS="zh_cn en"
PORTDIR_OVERLAY="/usr/local/portage"
| [/list] |
|
| Back to top |
|
 |
EricHsu Moderator


Joined: 03 May 2004 Posts: 590 Location: Aragon Consulting Group, Beijing, China
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|