system-config-kickstart使用
#yum install system-config-kickstart -y
一、设置Xshell并安装system-config-kickstart
1.1如果用xshell,打开图形界面,需要按一下步骤进行设置(需要下载Xmanager6):
# system-config-kickstart
二、system-config-kickstart使用
2.1设置语言,键盘,时区,Root密码,安装完毕后重启等。
2.2设置安装方式,这里选择FTP
2.3安装MBR
2.4设置分区
2.5配置网络
2.6认证配置
2.7Selinux和防火墙配置
2.8图形环境配置
2.9软件包安装选择
2.10后边不用进行设置,可以进行生成文件
三、#在root管理员目录下可发现ks.cfg,打开如下,复制到/var/lib/ftp/ks.cfg即可。
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="ftp://192.168.231.142/var/ftp/"
# Root password
rootpw --iscrypted $1$bFGHKjYm$yzOFxD8CHbbe1aVWsBDxz1
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone --isUtc Asia/Shanghai
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part / --fstype="ext4" --size=8192
part swap --fstype="swap" --size=1024
%packages
@base
@compat-libraries
@debugging
@development
git
%end