#### Contents of the preconfiguration file (for squeeze) ### Localization # Preseeding only locale sets language, country and locale. d-i debian-installer/language string en d-i debian-installer/country string FR d-i debian-installer/locale string fr_FR # Keyboard selection. # Disable automatic (interactive) keymap detection. d-i console-setup/ask_detect boolean false d-i keyboard-configuration/xkb-keymap select fr # To select a variant of the selected layout: #d-i keyboard-configuration/xkb-keymap select us(dvorak) # d-i keyboard-configuration/toggle select No toggling # Any hostname and domain names assigned from dhcp take precedence over # values set here. However, setting the values still prevents the questions # from being shown, even if values come from dhcp. d-i netcfg/get_hostname string Ubuntu d-i netcfg/get_domain string ROBOTICS # If non-free firmware is needed for the network or other hardware, you can # configure the installer to always try to load it, without prompting. Or # change to false to disable asking. d-i hw-detect/load_firmware boolean true ubiquity ubiquity/use_nonfree boolean true ### Account setup # To create a normal user account. d-i passwd/user-fullname string user d-i passwd/username string user # Normal user's password, either in clear text #d-i passwd/user-password password insecure #d-i passwd/user-password-again password insecure # or encrypted using a crypt(3) hash (use mkpasswd -m sha-512 to encrypt the desired password). d-i passwd/user-password-crypted password $6$vhuSfJhlZDG3i2uM$pZTUm0x8FScp0BMQJLfBjiQ0QdsBPCFTf4gLmCnMamCvMnLdPeynoI2s66seylTv7pb635jRNr9ZypaRbDUso1 # The installer will warn about weak passwords. If you are sure you know # what you're doing and want to override it, uncomment this. d-i user-setup/allow-password-weak boolean true ubiquity passwd/auto-login boolean true # Set to true if you want to encrypt the first user's home directory. d-i user-setup/encrypt-home boolean false ### Clock and time zone setup # Controls whether or not the hardware clock is set to UTC. d-i clock-setup/utc boolean true # You may set this to any valid setting for $TZ; see the contents of # /usr/share/zoneinfo/ for valid values. d-i time/zone string Europe/Paris # Controls whether to use NTP to set the clock during the install d-i clock-setup/ntp boolean true # NTP server to use. The default is almost always fine here. #d-i clock-setup/ntp-server string ntp.example.com ### Package selection ## From cdrom/preseed/ubuntu.seed... # Enable extras.ubuntu.com. d-i apt-setup/extras boolean true # Install the Ubuntu desktop. tasksel tasksel/first multiselect ubuntu-desktop # On live DVDs, don't spend huge amounts of time removing substantial # application packages pulled in by language packs. Given that we clearly # have the space to include them on the DVD, they're useful and we might as # well keep them installed. ubiquity ubiquity/keep-installed string icedtea6-plugin openoffice.org d-i base-installer/kernel/altmeta string hwe-18.04 # Individual additional packages to install # ??? d-i pkgsel/include string wget openssh-server # 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 d-i pkgsel/upgrade select none unattended-upgrades unattended-upgrades/enable_auto_updates boolean false ubiquity ubiquity/download_updates boolean false d-i pkgsel/updatedb boolean true ### Boot loader installation # This is fairly safe to set, it makes grub install automatically to the MBR # if no other operating system is detected on the machine. d-i grub-installer/only_debian boolean true # This one makes grub-installer install to the MBR if it also finds some other # OS, which is less safe as it might not be able to boot that other OS. d-i grub-installer/with_other_os boolean true ### Finishing up the installation # Avoid that last message about the install being complete. d-i finish-install/reboot_in_progress note ubiquity ubiquity/summary note ubiquity ubiquity/reboot boolean true # This will prevent the installer from ejecting the CD during the reboot, # which is useful in some situations. #d-i cdrom-detect/eject boolean false d-i cdrom-detect/eject boolean true ## Additional Ubuntu options...? # ??? #ubiquity ubiquity/hide_slideshow boolean true #ubiquity ubiquity/show_shutdown_button boolean true #partman-swapfile/size, netcfg/dhcp_options... #### Advanced options ### Running custom commands during the installation ## i386 Preseed Example # d-i preseeding is inherently not secure. Nothing in the installer checks # for attempts at buffer overflows or other exploits of the values of a # preconfiguration file like this one. Only use preconfiguration files from # trusted locations! To drive that home, and because it's generally useful, # here's a way to run any shell command you'd like inside the installer, # automatically. # This first command is run as early as possible, just after # preseeding is read. #d-i preseed/early_command string anna-install some-udeb # This command is run immediately before the partitioner starts. It may be # useful to apply dynamic partitioner preseeding that depends on the state # of the disks (which may not be visible when preseed/early_command runs). #d-i partman/early_command \ # string debconf-set partman-auto/disk "$(list-devices disk | head -n1)" # This command is run just before the install finishes, but when there is # still a usable /target directory. You can chroot to /target and use it # directly, or use the apt-install and in-target commands to easily install # packages and run commands in the target system. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh # Disable sudo password and prepare a command to run at first logon... ubiquity ubiquity/success_command string \ in-target sudo bash -c 'echo -e "user\tALL=NOPASSWD: ALL">>/etc/sudoers'; \ in-target mkdir -p /home/user/.config/autostart; \ in-target sudo wget https://www.ensta-bretagne.fr/lebars/Share/unattended.desktop --no-check-certificate -nv; \ in-target sudo mv -f unattended.desktop /home/user/.config/autostart; \ in-target sudo chmod 664 /home/user/.config/autostart/unattended.desktop; \ in-target sudo chown user:user /home/user/.config/autostart/unattended.desktop; \ in-target sudo chmod 700 /home/user/.config/autostart; \ in-target sudo chown user:user /home/user/.config/autostart; \ in-target sudo chmod 700 /home/user/.config; \ in-target sudo chown user:user /home/user/.config; #in-target sudo mkdir -p /etc/apt/apt.conf.d; in-target sudo rm -f /etc/apt/apt.conf.d/10periodic_bak; in-target sudo mv -f /etc/apt/apt.conf.d/10periodic /etc/apt/apt.conf.d/10periodic_bak; in-target sudo wget https://www.ensta-bretagne.fr/lebars/Share/10periodic --no-check-certificate -nv; in-target sudo mv -f 10periodic /etc/apt/apt.conf.d/10periodic; in-target sudo rm -f /etc/apt/apt.conf.d/20auto-upgrades_bak; in-target sudo mv -f /etc/apt/apt.conf.d/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades_bak; in-target sudo wget https://www.ensta-bretagne.fr/lebars/Share/20auto-upgrades --no-check-certificate -nv; in-target sudo mv -f 20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades; in-target sudo rm -f /etc/update-manager/release-upgrades_bak; in-target sudo mv -f /etc/update-manager/release-upgrades /etc/update-manager/release-upgrades_bak; in-target sudo wget https://www.ensta-bretagne.fr/lebars/Share/release-upgrades --no-check-certificate -nv; in-target sudo mv -f release-upgrades /etc/update-manager/release-upgrades;