批量安装ubuntu系统(3)

2021-04-05 06:14

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


批量安装ubuntu系统(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:史上最好听,最经典,粤语歌曲

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: