Boot services
为客户端提供启动服务,能够提供客户端的
ip
地址,
hostname
等启动参数,服务器要想提供
boot services,
下面的文件和目录必须要正确配置:
/etc/ethers
(关键文件,必须手工配置)
/etc/inet/hosts
/tftpboot
(目录)
/etc/inet/inetd.conf
/etc/bootparams
/etc/dfs/dfstab
Identification Services
响应
client
发出的
identification
查询请求,这些
identification
信息包括:网络信息,安全策略,
nameserver,timezone,terminal type,
时间取得方式,还有
root
的密码等,也就是当你手动安装时,需要回答的问题。可以以文件的形式提供
Configuration Services
提供的信息包括:安装类型(初始化安装还是升级安装),系统类型(
standalone,server),
硬盘分区,文件系统,软件安装类型(
Core,End Use,Developer,Entire Distribution,Entire Distribution plus OEM)
以及不同的客户端采用的不同的安装配置脚本等。有
rules
文件和
profiles
文件决定。
rules
文件决定客户端的类型,决定客户端适用于那个安装配置文件。
profiles
文件是真正安装配置文件,决定系统如何安装,安装那些东西。
rules
文件就一个,而
profiles
文件由多个,由
rules
文件决定使用哪一个配置文件。
Installation Services
最好理解,提供安装操作系统所需要的程序包,只需将光盘里的内容
copy
到硬盘里就行了。
具体步骤
插入第一张光盘
1 of 2
#mkdir -m 755 /jumpstart/source/8/
#cd /cdrom/cdrom0/s0/Solaris_8/Tools
#./setup_install_server /jumpstart/source/8/
#cd /
#eject cdrom
插入第一张光盘
2 of 2
#cd /cdrom/cdrom0/Solaris_8/Tools
#./add_to_install_server /jumpstart/source/8/
#cd /
#eject cdrom
#mkdir -m 755 /jumpstart/config
#cp �Cr /jumpstart/source/8/Solaris
_8/Misc/jumpstart_sample/* /jumpstart/config/
#cd /jumpstart/config
#vi sysidcfg
network_interface=primary
{protocol_ipv6=no
netmask=255.255.255.0
default_route=192.168.1.1}
security_policy=none
name_service=NONE
timezone=Asia/Shanghai
system_locale=en_US
terminal=vt100
timeserver=localhost
root_password=W8Dhz00xImLI.
#vi rules
hostname sun1 - profiles1 -
#vi profiles1
install_type initial_install
system_type standalone
partitioning explicit
filesys c0t2d0s0 1024 swap
filesys c0t2d0s1 free /
cluster SUNWCall
#
.check
#vi /etc/hosts
127.0.0.1 localhost
192.168.1.239 sun2 loghost
192.168.1.238 sun1 sun1.vst-china.com
#vi /etc/ethers
0:3:BA:35:7E: 2C sun1
#cd /jumpstart/source/8/Solaris
_8
/Tools
#./add_install_client \
-s sun2:/ jumpstart/source/8 \
-c sun2:/jumpstart/config \
-p sun2:/jumpstart/config \
sun1 sun4u
Vi finsh
.
sh
#!/bin/sh
#### rlogin open #####
mv /a/etc/default/login /a/etc/default/login.orig
sed 's/^CONSOLE/#CONSOLE/' /a/etc/default/login.orig > /a/etc/default/login
rm -f /a/etc/default/login.orig
#### config autofs #####
mv /a/etc/auto_master /a/etc/auto_master.orig
echo '+auto_master_unix' > /a/etc/auto_master
rm -f /a/etc/auto_master.orig /a/etc/auto_home
#### customizing the C shell ####
cat >> /a/etc/.login << EOF
set path = ($path /tools/freeware/bin)
setenv MANPATH /usr/share/man:/tools/freeware/man:/usr/local/man
setenv NOVAS_IDLE_LICENSE_CHECKBACK 30
setenv NOVAS_IDLE_LICENSE_CHECKBACK_SILENCE 1
setenv LD_LIBRARY_PATH /tools/freeware/gcc- 3.3.2 /lib:/tools/freeware/lib
EOF
#### customizing the BASH ####
cat >> /a/etc/profile << EOF
MANPATH=/usr/share/man:/tools/freeware/man:/usr/local/man
PATH=$PATH:/tools/freeware/bin
LD_LIBRARY_PATH=/tools/freeware/gcc- 3.3.2 /lib:/tools/freeware/lib
export MANPATH PATH LD_LIBRARY_PATH
EOF
#### power management ####
mv /a/etc/power.conf /a/etc/power.conf.orig
sed '/autopm/s/default/disable/' /a/etc/power.conf.orig > /a/etc/power.conf
rm -f /a/etc/power.conf.orig
####patch add ####
mkdir /a/Spatch
mount -f nfs shna1:/vol/vol1/jumpstart/Sol8_patch /a/Spatch
/usr/sbin/patchadd -R /a /a/Spatch/117000-05
/usr/sbin/patchadd -R /a /a/Spatch/117350-36
umount /a/Spatch
rmdir /a/Spatch