日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Ubuntu中搭建無人值守安裝系統(tǒng)具體步驟

無人值守安裝(也稱靜默安裝)是指軟件或系統(tǒng)安裝時(shí)無需任何用戶的干預(yù),直接按默認(rèn)或通過應(yīng)答文件設(shè)置安裝,這對于無特殊需求的用戶或企業(yè)大批量部署安裝操作系統(tǒng)及軟件時(shí)非常的方便,本篇文章為大家講解一下ubuntu中搭建無人值守安裝系統(tǒng)具體步驟。

專注于為中小企業(yè)提供網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)揚(yáng)州免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了近千家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

環(huán)境

Ubuntu-desktop(ip:192.168.56.11)

安裝軟件

apt install dnsmasq apache2 system-config-kickstart

配置dnsmasq

vim /etc/dnsmasq.conf

bogus-priv
filterwin2k
interface=eth0
dhcp-range=192.168.5.150,192.168.5.250,12h  
dhcp-boot=pxelinux.0  
enable-tftp  
tftp-root=/var/ftpd  
dhcp-authoritative

創(chuàng)建必要的目錄

mkdir /var/ftpd
mkdir /var/www/ubuntu

掛載安裝介質(zhì)

mount /dev/cdroom /mnt
cp /mnt/* /var/www/ubuntu -arf

將網(wǎng)絡(luò)啟動(dòng)文件復(fù)制到網(wǎng)絡(luò)引導(dǎo)目錄

cp /var/www/ubuntu/install/netboot/* /var/ftpd -arf/

修改apache2配置文件

vim /etc/apache2/sites-enabled/000-default.conf

DocumentRoot /var/www
#這里只給出了關(guān)鍵配置

運(yùn)行system-config-kickstart生成ks.cfg文件

編輯響應(yīng)文件ks.cfg

vim /var/www/ks.cfg

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

install
text
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone --utc Asia/Shanghai
#Root password
rootpw --disabled
#Initial user
user wsfnk --fullname "wsfnk" --iscrypted --password $1$Q4SPUaqc$KCsPmeMevJS0zzrqLTeVw0
#Reboot after installation
reboot
#Use text mode install
#text
#Install OS instead of upgrade
#install
#Use Web installation
url --url http://192.168.56.11/ubuntu
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part swap --size 512
part /boot --fstype ext4 --size 200
part / --fstype ext4 --size 1 --grow
#System authorization infomation
auth  --useshadow  --enablemd5
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
%packages
openssh-server
openssh-client
gcc
g++
vim
curl

編輯引導(dǎo)文件

vim /var/ftpd/pxelinux.cfg/default

path ubuntu-installer/amd64/boot-screens/
include ubuntu-installer/amd64/boot-screens/menu.cfg
default ubuntu-installer/amd64/boot-screens/vesamenu.c32
default install
label install
kernel ubuntu-installer/amd64/linux
append ks=http://192.168.56.11/ks.cfg initrd=ubuntu-installer/amd64/initrd.gz --
prompt 0
timeout 0

啟動(dòng)相關(guān)服務(wù)

systemctl start apache2
systemctl start dnsmasq

若安裝出現(xiàn)如下錯(cuò)誤,

部署ubuntu無人值守安裝系統(tǒng)部署ubuntu無人值守安裝系統(tǒng)
部署ubuntu無人值守安裝系統(tǒng)部署ubuntu無人值守安裝系統(tǒng)

請?jiān)趗buntu-installer/amd64/boot-screens/txt.cfg里,append加入如下配置

live-installer/net-image=http://192.168.56.11/ubuntu/install/filesystem.squashfs clock-setup/ntp=false ip=dhcp ksdevice=bootif

解決圖片所示的錯(cuò)誤

vim /var/ftpd/ubuntu-installer/amd64/boot-screens/txt.cfg

default install
label install
menu label ^Install
kernel ubuntu-installer/amd64/linux
append ks=http://192.168.56.11/ks.cfg vga=788 initrd=ubuntu-installer/amd64/initrd.gz live-installer/net-image=http://192.168.56.11/ubuntu/install/filesystem.squashfs clock-setup/ntp=false ip=dhcp ksdevice=bootif --- quit

當(dāng)前文章:Ubuntu中搭建無人值守安裝系統(tǒng)具體步驟
路徑分享:http://www.5511xx.com/article/dpcohjh.html