lang en_US langsupport en_US keyboard us mouse timezone UTC rootpw --disabled #Initial user # generate crypted password with python: # import crypt # print(crypt.crypt("My Password", "$6$My Salt")) user ignition --fullname "Ignition SCADA Server" --iscrypted --password $6$ht467992nndj$JtYyH5rhA3BhVkEWVSUkFjsWUhdtZR9YM8QUWQjwJcs1hkR2MXKRuD3o23/tZDbwnrGb7Bu7AULsqm0UgCc8o0 reboot text install cdrom #System bootloader configuration bootloader --location=mbr locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=us #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #Partitioning part / --fstype ext4 --size 1 --grow --asprimary --label=Root #System authorization infomation auth --useshadow --enablemd5 #Network configuration network --bootproto=static --device=eth0 --ip=192.168.16.8/24 --gateway=192.168.16.1 --nameserver=192.168.16.1 --hostname=ign773 #Firewall configuration firewall --disabled #Do not configure the X Window System skipx # Other debian installer customizations (owner is "d-i" by default) preseed partman-auto/choose_recipe select atomic preseed partman-lvm/device_remove_lvm boolean true preseed partman-lvm/confirm boolean true preseed partman-lvm/confirm_nooverwrite boolean true preseed partman-md/device_remove_md boolean true preseed partman-md/confirm boolean true preseed partman-md/confirm_nooverwrite boolean true preseed partman-partitioning/confirm_write_new_label boolean true preseed partman/confirm_write_new_label boolean true preseed partman/choose_partition select "Finish partitioning and write changes to disk" preseed partman/confirm boolean true preseed partman/confirm_nooverwrite boolean true preseed --owner partman-basicfilesystems partman-basicfilesystems/no_swap boolean false #custom packages for installation %packages @ ubuntu-server openssh-server xfce4 xfce4-session xvfb %post mkdir -p /root/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDG9w9vyTilvO3xA5h+4j82ZqMillfRlMzlTej8AsDRAnfEv9SKU48tkVKZgLkiCXyiiOZ5E1+d5l601CwxsxpLtsj95sGfndWTiuPNH75X0unX6AdX7U88jbb/Xfk+uKQ73nQxP4ad60547byv8Yl+LZHcl2HW0vRX9QJgU99jRbf0f3Ai62MnV1StrQJLl8wTgclUlMWSSFn6koZp7DvSzE9gw8FNpvxZgEh/KQodHjhDFJRDTKRncjsW1fKOhhoABGY8cdtuIq7WwfCk8xzU64kP0Dbt2HrvPmcldoYOqhgWQ7sABk4RSocPlfL5tBhevMpdcFh/kEvgTJgm1QBj philip@corvus" >/root/.ssh/authorized_keys mkdir -p /home/ignition/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDG9w9vyTilvO3xA5h+4j82ZqMillfRlMzlTej8AsDRAnfEv9SKU48tkVKZgLkiCXyiiOZ5E1+d5l601CwxsxpLtsj95sGfndWTiuPNH75X0unX6AdX7U88jbb/Xfk+uKQ73nQxP4ad60547byv8Yl+LZHcl2HW0vRX9QJgU99jRbf0f3Ai62MnV1StrQJLl8wTgclUlMWSSFn6koZp7DvSzE9gw8FNpvxZgEh/KQodHjhDFJRDTKRncjsW1fKOhhoABGY8cdtuIq7WwfCk8xzU64kP0Dbt2HrvPmcldoYOqhgWQ7sABk4RSocPlfL5tBhevMpdcFh/kEvgTJgm1QBj philip@corvus" >/home/ignition/.ssh/authorized_keys chown -R ignition:ignition /home/ignition add-apt-repository ppa:webupd8team/java apt-get update apt-get --yes --ignore-missing --with-new-pkgs upgrade debconf-set-selections <