Kickstart里的ks.cfg

####################我的ks.cfg文件###########################
[root@localhost tftpboot]# cat ks.cfg
#platform=x86, AMD64, 或 Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# 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 network installation
#url --url=nfs:192.168.2.203:/tftpboot/ks.cfg #http方式
 nfs --server=192.168.2.203 --dir=/mnt        #nfs方
# Network information
#network --bootproto=static --device=eth0 --gateway=192.168.2.1 --ip=192.168.2.203 --nameserver=192.168.2.1 --netmask=255.255.255.0 --onboot=on
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
#rootpw  123456
rootpw --iscrypted $1$h8PndJA7$f9cxY4cHR0lSnwaq.5Y0o.

# SELinux configuration
selinux --disabled
# System timezone
timezone --isUtc Asia/Shanghai
# Install OS instead of upgrade
install
# X Window System configuration information
#skipx 表示不安装X Window
xconfig  --defaultdesktop=GNOME --depth=32 --resolution=800x600 --startxonboot
# Disk partitioning information
#part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
#part / --bytes-per-inode=4096 --fstype="ext3" --size=10000
#part swap --bytes-per-inode=4096 --fstype="swap" --size=1000
#part /home --bytes-per-inode=4096 --fstype="ext3" --size=1000

#boot 100M 交换分区512M 其余的全部给 /分区 (见下面的分区配置)
 part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
 part swap --bytes-per-inode=4096 --fstype="swap" --size=512
 part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1

%packages
@base-x
@gnome-desktop
@development-libs
@base
@admin-tools
@legacy-software-development
@openfabrics-enterprise-distribution
@office
@sound-and-video
@chinese-support
@gnome-software-development
@development-tools
@kde-desktop
@x-software-development
@java-development
@legacy-software-support
@kde-software-development
@system-tools
@editors
@graphical-internet
@text-internet
@ruby
@graphics
@dialup
@authoring-and-publishing
@emacs
@java
@games
@engineering-and-scientific


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值