d-i debconf/priority select critical d-i debian-installer/locale string en_US d-i keyboard-configuration/xkb-keymap select us d-i passwd/root-password password alike d-i passwd/root-password-again password alike d-i netcfg/choose_interface select auto d-i mirror/country string manual d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i passwd/user-fullname string Alike User d-i passwd/username string alike d-i passwd/user-password password alike d-i passwd/user-password-again password alike d-i time/zone string UTC d-i partman-auto/method string regular d-i partman-auto/choose_recipe select atomic d-i partman/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 #d-i preseed/late_command string \ # if [ -b /dev/xvda ]; then \ # echo "/dev/xvda exists"; \ # echo "/dev/xvda" > /target/etc/disk_device; \ # elif [ -b /dev/sda ]; then \ # echo "/dev/sda exists"; \ # echo "/dev/sda" > /target/etc/disk_device; \ # else \ # echo "No suitable disk found. Please specify a disk device manually." > /dev/console; \ # exit 1; \ # fi tasksel tasksel/first multiselect standard, openssh-server # Install all the alike dependencies d-i pkgsel/include string vim curl libc6 cron dos2unix rsyslog python3 samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules openresolv screen shared-mime-info snmpd sqlite3 msmtp inetutils-ping stunnel sudo traceroute util-linux-locales wget xz-utils pv p7zip p7zip-full parted openssh-client openssh-server openssh-sftp-server openssl net-tools wireguard gdisk bindfs nfs-kernel-server nginx lsb-release lsof lz4 kpartx logrotate mono-complete fuse dos2unix apt apt-listchanges apt-utils util-linux-locales util-linux vim gawk php php-fpm php-cli php-cgi php-sqlite3 php-curl php-mbstring git # Auto updates or not? #d-i pkgsel/update-policy select unattended-upgrades # Grub bootloader d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true #d-i preseed/late_command string /usr/bin/curl -s http://www.baskette.net/a3_install.sh | sh > /var/log/preseed.log 2>&1 d-i preseed/late_command string in-target sh -c 'echo -e "nearly complete!\n**Please run the following command on login to complete setup**\ncurl -s http://www.website.com/install.sh | bash\n\nLogin with: root / alike" > /etc/issue' # Finish installation d-i finish-install/reboot_in_progress note