tpotce/preseed/tpot.seed

127 lines
4.2 KiB
Text
Raw Normal View History

##############################################
### T-Pot Preseed Configuration File by mo ###
##############################################
####################
### Locale Selection
####################
2015-02-14 23:23:48 +00:00
#d-i debian-installer/country string DE
d-i debian-installer/language string en
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/preferred-locale string en_US.UTF-8
2014-11-28 17:02:20 +00:00
######################
### Keyboard Selection
######################
#d-i console-setup/ask_detect boolean true
2015-02-14 23:23:48 +00:00
#d-i keyboard-configuration/layoutcode string de
d-i console-setup/detected note
2015-02-14 23:23:48 +00:00
#############################
### Unmount Active Partitions
#############################
#d-i preseed/early_command string umount /media || :
2014-11-28 17:02:20 +00:00
#########################
### Network Configuration
#########################
#d-i netcfg/choose_interface select auto
#d-i netcfg/dhcp_timeout string 60
2015-12-08 14:47:39 +00:00
d-i netcfg/get_hostname string t-pot
2014-11-28 17:02:20 +00:00
###############
### Disk Layout
###############
d-i partman/early_command string \
debconf-set partman-auto/disk $(parted_devices | sort -k2nr | head -1 | cut -f1)
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/expert_recipe string \
root :: \
8192 8888 8192 linux-swap \
$primary{ } \
method{ swap } format{ } \
. \
40960 44444 -1 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
######################
### User Configuration
######################
d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
d-i passwd/user-fullname string tsec
d-i passwd/username string tsec
d-i passwd/user-password-crypted password $1$jAw1TW8v$a2WFamxQJfpPYZmn4qJT71
d-i user-setup/encrypt-home boolean false
########################################
### Country Mirror & Proxy Configuration
########################################
d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
2014-11-28 17:02:20 +00:00
d-i mirror/http/proxy string
###########################
### Skip Grub Configuration
###########################
#d-i grub-installer/confirm boolean true
#d-i grub-installer/only_debian boolean true
#d-i grub-installer/with_other_os boolean true
d-i grub-installer/skip boolean true
d-i lilo-installer/skip boolean true
######################
### Time Configuration
######################
2015-02-14 23:23:48 +00:00
#d-i time/zone string Europe/Berlin
d-i clock-setup/utc boolean true
d-i time/zone string UTC
2014-11-28 17:02:20 +00:00
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ubuntu.com
2014-11-28 17:02:20 +00:00
##################
### Package Groups
##################
2014-11-28 17:02:20 +00:00
tasksel tasksel/first multiselect ubuntu-server
########################
### Package Installation
########################
d-i pkgsel/include string apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount curl dialog dnsutils docker.io dstat ethtool genisoimage git glances html2text htop iptables iw jq libcrack2 libltdl7 lm-sensors man nginx-extras nodejs npm ntp openssh-server openssl syslinux psmisc pv python-pip vim wireless-tools wpasupplicant
2014-11-28 17:02:20 +00:00
#################
### Update Policy
#################
2014-11-28 17:02:20 +00:00
d-i pkgsel/update-policy select unattended-upgrades
#########################################
### Post install (Grub & T-Pot Installer)
#########################################
2014-11-28 17:02:20 +00:00
d-i preseed/late_command string \
in-target apt-get -y install grub-pc; \
in-target grub-install --force $(debconf-get partman-auto/disk); \
in-target update-grub; \
cp /opt/tpot/rc.local.install /target/etc/rc.local; \
2016-08-22 15:24:48 +00:00
cp -r /opt/tpot/ /target/root/; \
cp /opt/tpot/usr/share/dict/names /target/usr/share/dict/names
2014-11-28 17:02:20 +00:00
##########
### Reboot
##########
d-i nobootloader/confirmation_common note
2014-11-28 17:02:20 +00:00
d-i finish-install/reboot_in_progress note
d-i cdrom-detect/eject boolean true