Advertisement
Guest User

Untitled

a guest
Jul 9th, 2020
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. # Mostly based on the Ubuntu installation guide
  2. # https://help.ubuntu.com/16.04/installation-guide/
  3. # Debian sample
  4. # https://www.debian.org/releases/stable/example-preseed.txt
  5. # Preseeding only locale sets language, country and locale.
  6. d-i debian-installer/locale string en_US
  7.  
  8. # Keyboard selection.
  9. d-i keyboard-configuration/xkb-keymap select us
  10. d-i keyboard-configuration/xkb-keymap select us
  11. # Disable automatic (interactive) keymap detection.
  12. d-i console-setup/ask_detect boolean false
  13. d-i keyboard-configuration/toggle select No toggling
  14. d-i keyboard-configuration/layoutcode string us
  15. d-i keyboard-configuration/variantcode string
  16.  
  17. # netcfg will choose an interface that has link if possible. This makes it
  18. # skip displaying a list if there is more than one interface.
  19. d-i netcfg/choose_interface select auto
  20. d-i netcfg/get_hostname string unassigned-hostname
  21. d-i netcfg/get_domain string unassigned-domain
  22.  
  23. # uncomment this line to manually set the hostname
  24. d-i netcfg/hostname string UbuntuImage
  25.  
  26. # If non-free firmware is needed for the network or other hardware, you can
  27. # configure the installer to always try to load it, without prompting. Or
  28. # change to false to disable asking.
  29. # d-i hw-detect/load_firmware boolean true
  30.  
  31. # NTP/Time Setup
  32. d-i time/zone string US/Eastern
  33. d-i clock-setup/utc boolean true
  34. d-i clock-setup/ntp boolean true
  35. d-i clock-setup/ntp-server string server 0.us.pool.ntp.org
  36.  
  37. # Setup the installation source
  38. #d-i mirror/country string manual
  39. #d-i mirror/http/hostname string 192.168.2.170
  40. #d-i mirror/http/directory string /repocache/ubuntu/
  41. #d-i mirror/http/proxy string
  42. %%K2_REPO_URL%%
  43.  
  44. # Suite to install.
  45. # d-i mirror/suite string precise
  46. # d-i mirror/udeb/suite string precise
  47.  
  48. # Components to use for loading installer components (optional).
  49. #d-i mirror/udeb/components multiselect main, restricted
  50.  
  51. # Disk Partitioning
  52. # Use LVM, and wipe out anything that already exists
  53. d-i partman/choose_partition select finish
  54. d-i partman/confirm boolean true
  55. d-i partman/confirm_nooverwrite boolean true
  56. d-i partman-auto/method string lvm
  57. d-i partman-lvm/device_remove_lvm boolean true
  58. d-i partman-lvm/confirm boolean true
  59. d-i partman-lvm/confirm_nooverwrite boolean true
  60. d-i partman-md/device_remove_md boolean true
  61. d-i partman-partitioning/confirm_write_new_label boolean true
  62. d-i partman-auto-lvm/guided_size string max
  63. d-i partman-efi/non_efi_system boolean true
  64.  
  65. # You can choose one of the three predefined partitioning recipes:
  66. # - atomic: all files in one partition
  67. # - home: separate /home partition
  68. # - multi: separate /home, /usr, /var, and /tmp partitions
  69. d-i partman-auto/choose_recipe select atomic
  70.  
  71. # If you just want to change the default filesystem from ext3 to something
  72. # else, you can do that without providing a full recipe.
  73. # d-i partman/default_filesystem string ext4
  74.  
  75. # root account and password
  76. d-i passwd/root-login boolean true
  77. d-i passwd/root-password-crypted password %%K2_ENCRYPTED_ROOT_PASSWORD%%
  78. d-i user-setup/allow-password-weak boolean true
  79.  
  80. # Skip creation of a root account (normal user account will be able to
  81. # use sudo). The default is false; preseed this to true if you want to set
  82. # a root password.
  83. #d-i passwd/root-login boolean false
  84.  
  85. # Alternatively, to skip creation of a normal user account.
  86. #d-i passwd/make-user boolean false
  87.  
  88. # Root password, either in clear text
  89. #d-i passwd/root-password password r00tme
  90. #d-i passwd/root-password-again password r00tme
  91. # or encrypted using a crypt(3) hash.
  92. #d-i passwd/root-password-crypted password [crypt(3) hash]
  93.  
  94. # To create a normal user account.
  95. d-i passwd/user-fullname string Admin User
  96. d-i passwd/username string adminuser
  97. # Normal user's password, either in clear text
  98. d-i passwd/user-password password Admin123
  99. d-i passwd/user-password-again password Admin123
  100. # or encrypted using a crypt(3) hash.
  101. #d-i passwd/user-password-crypted password [crypt(3) hash]
  102. # Create the first user with the specified UID instead of the default.
  103. #d-i passwd/user-uid string 1010
  104. # The installer will warn about weak passwords. If you are sure you know
  105. # what you're doing and want to override it, uncomment this.
  106. d-i user-setup/allow-password-weak boolean true
  107.  
  108. # The user account will be added to some standard initial groups. To
  109. # override that, use this.
  110. #d-i passwd/user-default-groups string audio cdrom video
  111.  
  112. # Set to true if you want to encrypt the first user's home directory.
  113. d-i user-setup/encrypt-home boolean false
  114.  
  115. # You can choose to install restricted and universe software, or to install
  116. # software from the backports repository.
  117. # d-i apt-setup/restricted boolean true
  118. # d-i apt-setup/universe boolean true
  119. # d-i apt-setup/backports boolean true
  120.  
  121. # Uncomment this if you don't want to use a network mirror.
  122. # d-i apt-setup/use_mirror boolean false
  123.  
  124. # Select which update services to use; define the mirrors to be used.
  125. # Values shown below are the normal defaults.
  126. # d-i apt-setup/services-select multiselect security
  127. # d-i apt-setup/security_host string security.ubuntu.com
  128. # d-i apt-setup/security_path string /ubuntu
  129.  
  130. # Enable deb-src lines
  131. # d-i apt-setup/local0/source boolean true
  132.  
  133. # URL to the public key of the local repository; you must provide a key or
  134. # apt will complain about the unauthenticated repository and so the
  135. # sources.list line will be left commented out
  136. # d-i apt-setup/local0/key string http://local.server/key
  137.  
  138. # By default the installer requires that repositories be authenticated
  139. # using a known gpg key. This setting can be used to disable that
  140. # authentication. Warning: Insecure, not recommended.
  141. # d-i debian-installer/allow_unauthenticated boolean true
  142.  
  143. # Package selection
  144. # Default for minimal
  145. # tasksel tasksel/first multiselect standard
  146. # Default for server
  147. # tasksel tasksel/first multiselect standard, web-server
  148. # Define which Ubuntu Desktop to use
  149. tasksel tasksel/first multiselect standard, ubuntu-desktop
  150.  
  151. #Ubuntu Desktops
  152. #standard (standard tools)
  153. #ubuntu-desktop
  154. #kubuntu-desktop
  155. #edubuntu-desktop
  156. #lubuntu-desktop
  157. #ubuntu-gnome-desktop
  158. #xubuntu-desktop
  159. #ubuntu-mate-desktop
  160. #lamp-server
  161. #print-server (print server)
  162.  
  163. #d-i pkgsel/update-policy select none
  164. d-i pkgsel/update-policy select unattended-upgrades
  165.  
  166. # Individual additional packages to install
  167. # wget is REQUIRED otherwise quite a few things won't work
  168. # later in the build (like late-command scripts)
  169. d-i pkgsel/include string ssh wget
  170.  
  171. # Debian needs this for the installer to avoid any question for grub
  172. # Please verify that it suit your needs as it may overwrite any usb stick
  173. d-i grub-installer/grub2_instead_of_grub_legacy boolean true
  174. d-i grub-installer/bootdev string default
  175.  
  176. # Use the following option to add additional boot parameters for the
  177. # installed system (if supported by the bootloader installer).
  178. # Note: options passed to the installer will be added automatically.
  179. # d-i debian-installer/add-kernel-opts string $kernel_options_post
  180.  
  181. # Avoid that last message about the install being complete.
  182. d-i finish-install/reboot_in_progress note
  183.  
  184. # This first command is run as early as possible, just after preseeding is read.
  185. # d-i preseed/early_command string [command]
  186. %%K2_PRE_INSTALL_TASKS%%
  187.  
  188. # This command is run immediately before the partitioner starts. It may be
  189. # useful to apply dynamic partitioner preseeding that depends on the state
  190. # of the disks (which may not be visible when preseed/early_command runs).
  191. # d-i partman/early_command \
  192. # string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)"
  193.  
  194. # This command is run just before the install finishes, but when there is
  195. # still a usable /target directory. You can chroot to /target and use it
  196. # directly, or use the apt-install and in-target commands to easily install
  197. # packages and run commands in the target system.
  198. # d-i preseed/late_command string [command]
  199. %%K2_MID_LEVEL_TASKS%%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement