定制安装CentOS-5.2企业版Linux(待续)
一 安装部分
如果需要加载SCSI驱动,在命令行下键入“linux dd”,按提示插入SCSI驱动软盘
以下需按需求更改外均选择默认选项
Welcome to CentOS!
Language Selection (default)
Keyboard Selection (default)
Warning (initialize drive,erasing ALL DATA)
Partitioning Type (Create custom layout)
Partitioning:
/boot 100MB
/swap 2048MB
/tmp 10000MB
/var 10000MB
/ 剩余所有空间
Boot Loader Configuration (select default all)
Network Configuration for eth0
Hostname Configuration
Time Zone Selection
Root Password
Package selection
Base à default
Development Libraries à F2 select ALL
Development Tools à F2 select ALL
Editors à default
Legacy Software Development à F2 select ALL
Text-based Internet à default
X Window System à default
如果是安装群集的web服务器,则先勾选Clustering,再勾选Customize software selection,并选择以上包
Installation to begin
二 配置部分
1. #ntsysv(or#setup)
must be select: crond haldaemon messagebus network smartd sshd syslog.
may be select:: httpd mysqld etc.
2. #vi /etc/grub.conf
timeout=3
3. #vi /etc/inittab
#ca::crtlaltdel:/sbin/shutdown –t3 –r now
4. #userdel lp news games ftp nfsnobady
#groupdel lp news games ftp nfsnobady
5. #vi /etc/profile
HISTSIZE=10
TIMEOUT=600
最底部新增一行rm –f $HOME/.bash_history
6. #vi /root/.bash_logout
最底部新增一行rm –f $HOME/.bash_history
7. #vi /root/.bash_profile
最底部新增一行umask 077
8.#待继ing...