我知道关于Ubuntu服务器无头和无人值守安装的信息很多。但是我需要在许多机器上安装Trusty的桌面版本,并且我希望能够自动化这个过程。使用Kickstart和Preseed手册,我无法实现Ubuntu 14.04桌面版64位的无人值守安装。
是否有一个我没有找到的手册?如果能得到一些帮助就太好了。我已经花了几个小时在这个问题上。
我的txt.cfg在/isolinux/目录下:
我的pos.seed在/preseed/中。
是否有一个我没有找到的手册?如果能得到一些帮助就太好了。我已经花了几个小时在这个问题上。
我的txt.cfg在/isolinux/目录下:
default autoinstall
label autoinstall
menu label ^Autoinstall Ubuntu POS-Server
kernel /install/vmlinuz
append preseed/file=/cdrom/preseed/pos.seed debian-installer/locale=de_DE console-setup/layoutcode=de initrd=/install/initrd.gz ramdisk_size=16384 ks=cdrom:/ks.cfg root=/dev/ram rw --
我的pos.seed在/preseed/中。
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string de
d-i console-setup/variantcode string
### Network
d-i netcfg/choose_interface select auto
## Keyboard configuration
d-i keyboard-configuration keyboard-configuration/layoutcode string de
d-i keyboard-configuration keyboard-configuration/layout select German
d-i keyboard-configuration keyboard-configuration/variant select German
d-i keyboard-configuration keyboard-configuration/xkb-keymap select de
#### Advanced options
### Running custom commands during the installation
# This first command is run as early as possible, just after
# preseeding is read.
# if old filesystem present installer asks for unmount
d-i preseed/early_command string umount /media
### Package selection
# Individual additional packages to install
# Install the Ubuntu desktop.
tasksel tasksel/first multiselect ubuntu-desktop
d-i pkgsel/include string openssh-server build-essential
# Policy for applying updates. May be "none" (no automatic updates),
# "unattended-upgrades" (install security updates automatically), or
# "landscape" (manage system with Landscape).
d-i pkgsel/update-policy select none
# Enable extras.ubuntu.com.
d-i apt-setup/extras boolean true
我的 ks.cfg 在 /:
#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard de
#System mouse
mouse
#System timezone
timezone Europe/Berlin
#Root password
rootpw --disabled
#Initial user
user ****** --fullname "******" --iscrypted --password ******************
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr locale=de_DE console-setup/ask_detect=false keyboard-configuration/layoutcode=de
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Partitioning
part / --fstype ext4 --size 1 --grow --asprimary
part swap --recommended
part /boot --fstype ext4 --size 256 --asprimary
#System authorization infomation
auth --useshadow --enablemd5
#Network configuration
network --bootproto=dhcp --device=eth0
#Firewall configuration
#firewall --disabled
#Do not configure the X Window System
skipx
#custom packages for installation
%packages
openssh-server
ubuntu-desktop