Advertisement
Guest User

Untitled

a guest
Oct 10th, 2018
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. #
  2. # Ubuntu Server 14.04 Preseed
  3. #
  4. # Usage:
  5. #
  6. # This Ubuntu Preseed file is meant to be used when installing Ubuntu
  7. # from the ISO. The following menus will require user input, everything
  8. # after will be an unattended install:
  9. #
  10. # * Select a language
  11. # * Select your location
  12. # * Configure the keyboard
  13. # * Configure the network
  14. #
  15. # References:
  16. #
  17. # https://help.ubuntu.com/14.04/installation-guide/example-preseed.txt
  18. # http://www.claudiokuenzler.com/blog/513/debian-ubuntu-preseed-create-two-volume-groups-same-disk
  19.  
  20. #############
  21. #
  22. # Networking
  23. #
  24. #############
  25.  
  26. # Network Configuration
  27. d-i netcfg/enable boolean true
  28. d-i netcfg/choose_interface select auto
  29. d-i netcfg/dhcp_failed note
  30. d-i netcfg/dhcp_options select Configure network manually
  31.  
  32. # Default static
  33. d-i netcfg/get_ipaddress string 192.168.137.55
  34. d-i netcfg/get_netmask string 255.255.255.0
  35. d-i netcfg/get_gateway string 192.168.137.1
  36. d-i netcfg/get_nameservers string 4.2.2.2 4.2.2.1
  37. d-i netcfg/confirm_static boolean true
  38.  
  39. d-i netcfg/hostname string obe
  40.  
  41. #############
  42. #
  43. # Pre Install
  44. #
  45. #############
  46.  
  47. # Command Line 1: This is necessary otherwise you will be prompted to umount /dev/sda. See Ubuntu bug #1347726.
  48. d-i preseed/early_command string umount /media || true;
  49.  
  50. #############
  51. #
  52. # Localization
  53. #
  54. #############
  55.  
  56. d-i debian-installer/locale string en_GB
  57. d-i debian-installer/country string GB
  58. d-i debian-installer/locale string en_GB.UTF-8
  59. d-i debian-installer/language string en
  60.  
  61. #############
  62. #
  63. # Keyboard
  64. #
  65. #############
  66.  
  67. # Disable automatic (interactive) keymap detection.
  68. d-i console-setup/ask_detect boolean false
  69. d-i console-setup/layoutcode string gb
  70. d-i console-setup/variantcode string
  71. d-i keyboard-configuration/layoutcode string gb
  72.  
  73. #############
  74. #
  75. # Mirror
  76. #
  77. #############
  78.  
  79. d-i mirror/http/mirror string gb.archive.ubuntu.com
  80.  
  81. #############
  82. #
  83. # Clock and Time Zone
  84. #
  85. #############
  86.  
  87. # Controls whether to use NTP to set the clock during the install
  88. d-i clock-setup/ntp boolean true
  89. d-i clock-setup/ntp-server string ntp.ubuntu.com
  90.  
  91. # You may set this to any valid setting for $TZ; see the contents of
  92. # /usr/share/zoneinfo/ for valid values.
  93. d-i time/zone string Europe/London
  94.  
  95. # Controls whether or not the hardware clock is set to UTC.
  96. d-i clock-setup/utc boolean true
  97.  
  98. #############
  99. #
  100. # Partitioning
  101. #
  102. #############
  103.  
  104. ## Partitioning example
  105.  
  106. d-i partman/filter_mounted boolean false
  107. d-i partman/unmount_active boolean false
  108. d-i partman-auto/disk string /dev/sda
  109. d-i partman-auto/method string lvm
  110. d-i partman-lvm/device_remove_lvm boolean true
  111. d-i partman-lvm/device_remove_lvm_span boolean true
  112. d-i partman-auto/purge_lvm_from_device boolean true
  113. d-i partman-md/device_remove_md boolean true
  114. d-i partman-lvm/confirm boolean true
  115. d-i partman-lvm/confirm_nooverwrite boolean true
  116.  
  117. # You can choose one of the three predefined partitioning recipes:
  118. # - atomic: all files in one partition
  119. # - home: separate /home partition
  120. # - multi: separate /home, /usr, /var, and /tmp partitions
  121. d-i partman-auto/choose_recipe select atomic
  122.  
  123. # This makes partman automatically partition without confirmation, provided
  124. # that you told it what to do using one of the methods above.
  125. d-i partman-partitioning/confirm_write_new_label boolean true
  126. d-i partman/choose_partition select finish
  127. d-i partman/confirm boolean true
  128. d-i partman/confirm_nooverwrite boolean true
  129.  
  130. #############
  131. #
  132. # Packages
  133. #
  134. #############
  135.  
  136. # Package selection
  137. tasksel tasksel/first multiselect openssh-server
  138.  
  139. # Individual additional packages to install
  140. d-i pkgsel/include string unzip wget
  141.  
  142. # Whether to upgrade packages after debootstrap.
  143. # Allowed values: none, safe-upgrade, full-upgrade
  144. d-i pkgsel/upgrade select safe-upgrade
  145.  
  146. # Policy for applying updates. May be "none" (no automatic updates),
  147. # "unattended-upgrades" (install security updates automatically), or
  148. # "landscape" (manage system with Landscape).
  149. d-i pkgsel/update-policy select none
  150.  
  151. # Some versions of the installer can report back on what software you have
  152. # installed, and what software you use. The default is not to report back,
  153. # but sending reports helps the project determine what software is most
  154. # popular and include it on CDs.
  155. popularity-contest popularity-contest/participate boolean false
  156.  
  157. #############
  158. #
  159. # Users and Password
  160. #
  161. #############
  162.  
  163. # The installer will warn about weak passwords. If you are sure you know
  164. # what you're doing and want to override it, uncomment this.
  165. d-i user-setup/allow-password-weak boolean true
  166.  
  167. # Skip creation of a root account (normal user account will be able to
  168. # use sudo). The default is false; preseed this to true if you want to set
  169. # a root password.
  170. d-i passwd/root-login boolean false
  171.  
  172. # Root password, either in clear text
  173. # d-i passwd/root-password password password
  174. # d-i passwd/root-password-again password password
  175.  
  176. # Alternatively, to skip creation of a normal user account.
  177. d-i passwd/make-user boolean true
  178.  
  179. # Mortal User
  180. d-i passwd/user-fullname string obe
  181. d-i passwd/username string obe
  182. d-i passwd/user-password password password
  183. d-i passwd/user-password-again password password
  184. d-i passwd/auto-login boolean false
  185.  
  186. #############
  187. #
  188. # Bootloader
  189. #
  190. #############
  191.  
  192. # This is fairly safe to set, it makes grub install automatically to the MBR
  193. # if no other operating system is detected on the machine.
  194. d-i grub-installer/skip boolean false
  195. d-i grub-installer/bootdev string /dev/sda
  196. d-i grub-installer/only_debian boolean true
  197. d-i grub-installer/with_other_os boolean true
  198.  
  199. #############
  200. #
  201. # Finish
  202. #
  203. #############
  204.  
  205. # Reboot after the install is finished.
  206. finish-install finish-install/reboot_in_progress note
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement