# Preseed produzione # Locale d-i debian-installer/locale string en_US # country and keyboard settings are automatic. Keep them ... # ... for wheezy and newer: # modifica impostazione keyboard # stringa originale #d-i keyboard-configuration/xkb-keymap seen true # stringa modificata d-i keyboard-configuration/xkb-keymap select it # Static network configuration. d-i preseed/early_command string /bin/killall.sh; /bin/netcfg d-i netcfg/disable_autoconfig boolean true d-i netcfg/dhcp_failed note d-i netcfg/dhcp_options select Configure network manually d-i netcfg/disable_dhcp boolean true d-i netcfg/get_ipaddress string 172.16.2.194 d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_nameservers string 172.16.2.2 8.8.8.8 d-i netcfg/get_gateway string 172.16.2.1 d-i netcfg/confirm_static boolean true # Network configuration d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string clio-03.e4srv d-i netcfg/get_domain string e4srv d-i netcfg/wireless_wep string d-i hw-detect/load_firmware boolean true # Mirror settings d-i mirror/country string manual d-i mirror/http/hostname string moana.e4srv:80 d-i mirror/http/directory string /ro/repo/ubuntu/17.04/os/x86_64 d-i mirror/http/proxy string d-i mirror/codename string zesty d-i mirror/suite string zesty d-i mirror/udeb/suite string zesty # Time settings d-i clock-setup/utc boolean true d-i time/zone string UTC # NTP d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string 0.debian.pool.ntp.org # Set alignment for automatic partitioning # Choices: cylinder, minimal, optimal #d-i partman/alignment select cylinder # # https://askubuntu.com/questions/129670/how-do-i-modify-this-preseed-snippet-to-partition-my-hard-drive # Partizione manuale #d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular d-i partman-auto/expert_recipe string \ boot-root :: \ 2000 50 41000 ext4 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 50000 50 41000 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /home } \ . \ 500 10000 1000000000 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ 32000 512 33000 linux-swap \ method{ swap } format{ } \ . # # This makes partman automatically partition without confirmation, provided # that you told it what to do using one of the methods above. 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 partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true # User settings #home not encrypted d-i user-setup/encrypt-home boolean false # d-i passwd/root-password-crypted password $6$6L1V4/pabA/LKolN$KlMySR5h3AxUBQpFs23rnt1bhP14GTmmWYLvOf3GIWd0VZZSr4rUikBT0RFMqKYy0HnRIWMal4zV2nsTuWygZ. user-setup-udeb passwd/root-login boolean true #d-i passwd/make-user boolean false d-i passwd/make-user boolean true #user-setup-udeb passwd/make-user boolean false # Aggiunge Utente E4 # To create a normal user account d-i passwd/user-fullname string e4user d-i passwd/username string e4user # Normal user's password, either in clear text d-i passwd/user-password-crypted password $6$6L1V4/pabA/LKolN$KlMySR5h3AxUBQpFs23rnt1bhP14GTmmWYLvOf3GIWd0VZZSr4rUikBT0RFMqKYy0HnRIWMal4zV2nsTuWygZ. ### APT setup Prova per KDE # d-i apt-setup/non-free boolean true # d-i apt-setup/contrib boolean true # Install minimal task set (see tasksel --task-packages minimal) #tasksel tasksel/first multiselect minimal, ssh-server, openssh-server # Inatallazione Parte Grafica Desktop tasksel tasksel/first multiselect ubuntu-desktop # Install some base packages d-i pkgsel/include string lsb-release d-i pkgsel/update-policy select unattended-upgrades d-i pkgsel/upgrade select none # Aggiunta pacchetti per openssh server (abilita ssh) d-i pkgsel/include string openssh-server build-essential #ubiquity ubiquity/success_command string sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config #d-i preseed/late_command string in-target sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config # #d-i preseed/late_command string sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config # #d-i preseed/late_command string \ # in-target sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config #popularity-contest popularity-contest/participate boolean false ####### # APT setup #d-i apt-setup/non-free boolean true #d-i apt-setup/contrib boolean true #d-i debian-installer/allow_unauthenticated string true #tasksel tasksel/first multiselect standard #d-i pkgsel/include string chkconfig snmpd lvm2 ssh sudo ntp ntpdate rsync emacs-nox vim-nox zsh elinks bzip2 popularity-contest popularity-contest/participate boolean false ###### # Boot loader settings #grub-pc grub-pc/hidden_timeout boolean false #grub-pc grub-pc/timeout string 10 d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i grub-installer/bootdev string default d-i finish-install/reboot_in_progress note # d-i preseed/late_command string wget -Y off http://srv-install.e4srv/unattended/finish?token=f7b1a9a1-90bc-4753-a833-3034ce4f61a4 -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh