rootpw --disabled
#Initial user
userubuntu --fullname"terrylc" --iscrypted --password $1$PX9BVIKt$3XsuJJtrDSlN4p8Q/TH3/1
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://192.168.5.27/ubuntu
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext4 --size 256
part swap --size 4096
part / --fstype ext4 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --nameserver=192.168.5.27 --device=eth0
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
%packages
@openssh-server
复制代码
创建目录mkdir -p /var/www/ubuntu,将上述的ks.cfg文件保存在/var/www/ubuntu中,
2. 镜像文件
从官网下载ubuntu的iso,
mkdir /ubuntu
mount -o loop ubuntu-10.04.3-server-amd64.iso /ubuntu
cp -r /ubuntu/* /var/www/ubuntu/
复制代码
3. Tftp
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库批量安装ubuntu系统(3)在线全文阅读。
相关推荐: