quick installation
booting Live CD
set up network
partition disk (eg. /dev/sda)/dev/sda1 /boot 100MB
/dev/sda2 swap 2.5*MEM
/dev/sda3 / 10GB
/dev/sda5 /scratch
prepare installation directory$ mount /dev/sda3 /mnt/gentoo
$ mkdir /mnt/gentoo/boot
$ mount boot /mnt/gentoo/boot
check date
change current directory to /mnt/gentoo
download stage3 (links http://ftp.isu.edu.tw)
untar dowloaded stage file
configure compile options in etc/make.confCHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
change root$ cp -L /etc/resolve.conf /mnt/gentoo/etc/resolv.conf
$ mount -t proc none /mnt/gentoo/proc
$ mount -o bind /dev /mnt/gentoo/dev
$ chroot /mnt/gentoo /bin/bash
$ env-update
$ source /etc/profile
$ emerge --sync
install utilities for configuration
$ emerge vim ntp gentoolkit pciutils
$ cp -f /usr/share/zoneinfo/Asia/Taipei /etc/localtime
$ ntpdate stdtime.sinica.edu.tw; hwclock {--directisa} -w
check or change profiles (ls -FGg /etc/make.profile)$ edit /etc/locale.gen ; run 'locale-gen'
update system (emerge system)$ emerge gentoo-sources genkernel
configure kernel options
install utilities for administration
$ emerge syslog-ng vixie-cron logrotate logwatch xxfsprog tcsh nmap screen
$ emerge grub
.....
$ umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
add daily services
10 5 * * * /usr/sbin/ntpdate stdtime.sinica.edu.tw && /sbin/hwclock -w
local mail delievery
install relative packages$ USE="mailwrapper" emerge postfix procmail
use /etc/procmailrc belowDEFAULT=/var/spool/mail/$LOGNAME
SHELL=/bin/sh
modify those options in /etc/postfix/main.cfmyhostname = xxxx
mydomain = xxxx
inet_interfaces = localhost # only allow local mail delievery
home_mailbox = /var/spool/mail/$LOGNAME
mailbox_command = /usr/bin/procmail
build aliases.db in /etc/mail/$ newaliases
send a test mail with subject "test"$ /etc/init.d/postfix start
$ mail -s "test" your.mail.com
.
Ctrl+D
add postfix to startup
$ rc-update add postfix default
integration with your cluster
install relative packages$ emerge ypbind nfs-utils
modify system database and switch file /etc/nsswitch.conf#passwd: compat
#shadow: compat
#group: compat
passwd: db files nis
shadow: db files nis
group: db files nis
enable ypbind service and add it to startup$ /etc/init.d/ypbind start
$ rc-update add ypbind default
0 comments:
Post a Comment