if you use text mode during installation, then the debian-installer program that is started creates the directory /var/log/installer in the target file system, which also contains the file /var/log/installer/cdebconf/questions.dat which can be used as a “blank” for a preseed file .
You can get such a “workpiece” using the debconf-get-selections script (from the debconf-utils package):
$ sudo debconf-get-selections --installer > файл $ sudo debconf-get-selections >> файл
from my personal experience, I would advise taking the “exemplary” file example-preseed.txt as a basis for autoconfiguration, and use the contents of the file obtained with the help of debconf-get-selections except as an illustration.
addition about the difference between preseed files for debian and ubuntu . besides commented lines, there are only four differences:
Added parameter about disabling the language selection dialog:
di console-setup/ask_detect boolean false
- A different package repository is specified (which is quite natural).
explicitly stated not to encrypt the home directory of the first user to be created:
di user-setup/encrypt-home boolean false
The installation of the ubuntu-desktop meta-package is indicated as a task choice:
tasksel tasksel/first multiselect ubuntu-desktop
additional information: