Linux(rhel5.5)無人值守安裝CD光牒制作
一、生産自動安裝kickstart配置檔案(可用kickstart配置工具,system-config-kickstart配置)
[[email protected] ~]#vim /root/ks.cfg
#platform=x86, AMD64, 或 Intel EM64T
# System authorization information
auth --useshadow --enablemd5
key --skip #跳過安裝sn的輸入,必須有
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Use graphical install
#graphical
# Use text mode install #字元界面安裝
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang zh_CN #系統預設語言設定
# Installation logging level
logging --level=info
# Use CDROM installation media
cdrom #預設安裝媒體
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.32.254 --ip=192.168.32.30 --netmask=255.255.255.0 --onboot=on #網絡設定
# Reboot after installation
reboot --eject #安裝後彈出cd重新系統,必須彈出cd,否則重新開機時會再次自動安裝系統
#Root password
rootpw --iscrypted $1$m3qF5xHj$nPMaPd2vTvl6Bnm5Do.un.
# SELinux configuration
selinux --disabled
# System timezone
timezone Asia/Chongqing
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig --defaultdesktop=GNOME --depth=16 --resolution=1024x768 --startxonboot
# Disk partitioning information #硬碟分區設定
part /boot --bytes-per-inode=4096 --fstype="ext3" --ondisk=sda --size=256
part swap --bytes-per-inode=4096 --fstype="swap" --ondisk=sda --size=8192
#part / --bytes-per-inode=4096 --fstype="ext3" --grow --ondisk=sda --size=51200
#LVM install #邏輯卷建立配置,必須嚴格按照實體卷、卷組、邏輯卷順序建立
part pv.01 --ondisk=sda --size 51200
volgroup vg00 pv.01
logvol / --vgname=vg00 --size=1 --grow --name=lv00
#Software packages install #軟體安裝包選擇
%packages
@base
@gnome-desktop
@development-libs
@base-x
@admin-tools
@legacy-software-development
@development-tools
@chinese-support
@server-cfg
@legacy-network-server
@legacy-software-support
@system-tools
@editors
@text-internet
@graphical-internet
@smb-server
@ftp-server
