Advertisement
Guest User

preseed_wheezy.cfg

a guest
Oct 5th, 2014
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.29 KB | None | 0 0
  1. #### Contents of the preconfiguration file (for wheezy)
  2. ### Localization
  3. # Locale sets language and country.
  4. d-i debian-installer/locale string en_US.UTF-8
  5. # Keyboard selection
  6. d-i keymap select en
  7.  
  8. ### Network configuration
  9. # netcfg will choose an interface that has link if possible. This makes it
  10. # skip displaying a list if there is more than one interface.
  11. d-i netcfg/choose_interface select auto
  12. # Any hostname and domain names assigned from dhcp take precedence over
  13. # values set here. However, setting the values still prevents the questions
  14. # from being shown, even if values come from dhcp.
  15. #d-i netcfg/get_hostname string vagrant
  16. d-i netcfg/get_domain string vagrantup.com
  17. # Disable that annoying WEP key dialog.
  18. d-i netcfg/wireless_wep string
  19. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  20. d-i netcfg/dhcp_hostname string radish
  21. # If non-free firmware is needed for the network or other hardware, you can
  22. # configure the installer to always try to load it, without prompting. Or
  23. # change to false to disable asking.
  24. #d-i hw-detect/load_firmware boolean true
  25.  
  26. ### Mirror settings
  27. d-i mirror/country string manual
  28. d-i mirror/http/hostname string http.debian.net
  29. d-i mirror/http/directory string /debian
  30. d-i mirror/http/proxy string
  31. d-i mirror/suite string wheezy
  32.  
  33. ### Apt setup
  34. d-i apt-setup/use_mirror boolean true
  35. d-i apt-setup/hostname string http.debian.net
  36. d-i apt-setup/directory string /debian/
  37. d-i apt-setup/non-free boolean true
  38. d-i apt-setup/contrib boolean true
  39. d-i apt-setup/security-updates boolean true
  40. d-i apt-setup/security-updates-fail string security.debian.org
  41.  
  42. apt-mirror-setup apt-setup/use_mirror boolean true
  43. apt-mirror-setup mirror/http/hostname string http.debian.net
  44. apt-mirror-setup apt-setup/contrib boolean true
  45. apt-mirror-setup apt-setup/non-free boolean true
  46. # Suite to use for loading installer components (optional).
  47. #d-i mirror/udeb/suite string testing
  48. ### Clock and time zone setup
  49. # Controls whether or not the hardware clock is set to UTC.
  50. d-i clock-setup/utc boolean true
  51. # You may set this to any valid setting for $TZ; see the contents of
  52. # /usr/share/zoneinfo/ for valid values.
  53. d-i time/zone string UTC
  54. # Controls whether to use NTP to set the clock during the install
  55. d-i clock-setup/ntp boolean true
  56. # NTP server to use. The default is almost always fine here.
  57. #d-i clock-setup/ntp-server string ntp.example.com
  58. ### Partitioning
  59. # If the system has free space you can choose to only partition that space.
  60. #d-i partman-auto/init_automatically_partition select biggest_free
  61. # Alternatively, you can specify a disk to partition. The device name must
  62. # be given in traditional non-devfs format.
  63. # Note: A disk must be specified, unless the system has only one disk.
  64. # For example, to use the first SCSI/SATA hard disk:
  65. #d-i partman-auto/disk string /dev/sda
  66. # In addition, you'll need to specify the method to use.
  67. # The presently available methods are: "regular", "lvm" and "crypto"
  68. d-i partman-auto/method string lvm
  69. # If one of the disks that are going to be automatically partitioned
  70. # contains an old LVM configuration, the user will normally receive a
  71. # warning. This can be preseeded away...
  72. d-i partman-lvm/device_remove_lvm boolean true
  73. # The same applies to pre-existing software RAID array:
  74. d-i partman-md/device_remove_md boolean true
  75. # And the same goes for the confirmation to write the lvm partitions.
  76. d-i partman-lvm/confirm boolean true
  77. d-i partman-lvm/confirm_nooverwrite boolean true
  78. d-i partman/choose_partition select finish
  79. d-i partman-auto-lvm/guided_size string max
  80. # You can choose one of the three predefined partitioning recipes:
  81. # - atomic: all files in one partition
  82. # - home: separate /home partition
  83. # - multi: separate /home, /usr, /var, and /tmp partitions
  84. d-i partman-auto/choose_recipe select atomic
  85. d-i partman/default_filesystem string ext3
  86. # Or provide a recipe of your own...
  87. # The recipe format is documented in the file devel/partman-auto-recipe.txt.
  88. # If you have a way to get a recipe file into the d-i environment, you can
  89. # just point at it.
  90. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  91. # If not, you can put an entire recipe into the preconfiguration file in one
  92. # (logical) line. This example creates a small /boot partition, suitable
  93. # swap, and uses the rest of the space for the root partition:
  94. #d-i partman-auto/expert_recipe string \
  95. # boot-root :: \
  96. # 40 50 100 ext3 \
  97. # $primary{ } $bootable{ } \
  98. # method{ format } format{ } \
  99. # use_filesystem{ } filesystem{ ext3 } \
  100. # mountpoint{ /boot } \
  101. # . \
  102. # 500 10000 1000000000 ext3 \
  103. # method{ format } format{ } \
  104. # use_filesystem{ } filesystem{ ext3 } \
  105. # mountpoint{ / } \
  106. # . \
  107. # 64 512 300% linux-swap \
  108. # method{ swap } format{ } \
  109. # .
  110. #The preseed line that "selects finish" needs to be in a certain order in your preseed, the example-preseed does not follow this.
  111. #http://ubuntuforums.org/archive/index.php/t-1504045.html
  112. # This makes partman automatically partition without confirmation, provided
  113. # that you told it what to do using one of the methods above.
  114. d-i partman/confirm_write_new_label boolean true
  115. d-i partman/confirm boolean true
  116. d-i partman/confirm_nooverwrite boolean true
  117. ### Base system installation
  118. # Select the initramfs generator used to generate the initrd for 2.6 kernels.
  119. #d-i base-installer/kernel/linux/initramfs-generators string yaird
  120. # The kernel image (meta) package to be installed; "none" can be used if no
  121. # kernel is to be installed.
  122. #d-i base-installer/kernel/image string linux-image-2.6-486
  123.  
  124. ### Account setup
  125. # Enable/disable to login as root
  126. d-i passwd/root-login boolean false
  127.  
  128. # Alternatively, to skip creation of a normal user account.
  129. #d-i passwd/make-user boolean false
  130.  
  131. # To create a normal user account.
  132. d-i passwd/user-fullname string secret Morrison
  133. d-i passwd/username string secret
  134.  
  135. # Normal user's password, either in clear text
  136. d-i passwd/user-password password secret
  137. d-i passwd/user-password-again password secret
  138. # or encrypted using an MD5 hash.
  139. #d-i passwd/user-password-crypted password [MD5 hash]
  140.  
  141. # Root password, either in clear text
  142. d-i passwd/root-password password secret
  143. d-i passwd/root-password-again password secret
  144. # or encrypted using an MD5 hash.
  145. #d-i passwd/root-password-crypted password [MD5 hash]
  146.  
  147. d-i user-setup/allow-password-weak boolean true
  148. d-i user-setup/encrypt-home boolean false
  149.  
  150. # The user account will be added to some standard initial groups. To
  151. # override that, use this.
  152. d-i passwd/user-default-groups string audio cdrom video admin
  153.  
  154. ### Apt setup
  155. # You can choose to install non-free and contrib software.
  156. #d-i apt-setup/non-free boolean true
  157. #d-i apt-setup/contrib boolean true
  158. # Uncomment this if you don't want to use a network mirror.
  159. #d-i apt-setup/use_mirror boolean false
  160. # Select which update services to use; define the mirrors to be used.
  161. # Values shown below are the normal defaults.
  162. #d-i apt-setup/services-select multiselect security, volatile
  163. #d-i apt-setup/security_host string security.debian.org
  164. #d-i apt-setup/volatile_host string volatile.debian.org
  165. # By default the installer requires that repositories be authenticated
  166. # using a known gpg key. This setting can be used to disable that
  167. # authentication. Warning: Insecure, not recommended.
  168. #d-i debian-installer/allow_unauthenticated string true
  169.  
  170. ### Package selection
  171. tasksel tasksel/first multiselect standard
  172. # If the desktop task is selected, install the kde and xfce desktops
  173. # instead of the default gnome desktop.
  174. #tasksel tasksel/desktop multiselect kde, xfce
  175.  
  176. # Individual additional packages to install
  177. d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 rsync
  178.  
  179. # Whether to upgrade packages after debootstrap.
  180. # Allowed values: none, safe-upgrade, full-upgrade
  181. d-i pkgsel/upgrade select none
  182. # Some versions of the installer can report back on what software you have
  183. # installed, and what software you use. The default is not to report back,
  184. # but sending reports helps the project determine what software is most
  185. # popular and include it on CDs.
  186. popularity-contest popularity-contest/participate boolean false
  187.  
  188. # Don't scan for another CD to install software from
  189. d-i apt-setup/use_mirror boolean false
  190. d-i apt-setup/cdrom/set-first boolean false
  191. d-i apt-setup/cdrom/set-next boolean false
  192. d-i apt-setup/cdrom/set-failed boolean false
  193.  
  194. ### Boot loader installation
  195. # Grub is the default boot loader (for x86). If you want lilo installed
  196. # instead, uncomment this:
  197. #d-i grub-installer/skip boolean true
  198. # To also skip installing lilo, and install no bootloader, uncomment this
  199. # too:
  200. #d-i lilo-installer/skip boolean true
  201. # This is fairly safe to set, it makes grub install automatically to the MBR
  202. # if no other operating system is detected on the machine.
  203. d-i grub-installer/only_debian boolean true
  204. # This one makes grub-installer install to the MBR if it also finds some other
  205. # OS, which is less safe as it might not be able to boot that other OS.
  206. d-i grub-installer/with_other_os boolean true
  207. # Avoid that last message about the install being complete.
  208. d-i finish-install/reboot_in_progress note
  209.  
  210. ### Preseeding other packages
  211. # Depending on what software you choose to install, or if things go wrong
  212. # during the installation process, it's possible that other questions may
  213. # be asked. You can preseed those too, of course. To get a list of every
  214. # possible question that could be asked during an install, do an
  215. # installation, and then run these commands:
  216. # debconf-get-selections --installer > file
  217. # debconf-get-selections >> file
  218.  
  219. #### Advanced options
  220. ### Running custom commands during the installation
  221. # d-i preseeding is inherently not secure. Nothing in the installer checks
  222. # for attempts at buffer overflows or other exploits of the values of a
  223. # preconfiguration file like this one. Only use preconfiguration files from
  224. # trusted locations! To drive that home, and because it's generally useful,
  225. # here's a way to run any shell command you'd like inside the installer,
  226. # automatically.
  227. # This first command is run as early as possible, just after
  228. # preseeding is read.
  229. # Prevent packaged version of VirtualBox Guest Additions being installed:
  230. d-i preseed/early_command string sed -i \
  231. '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
  232. /usr/lib/pre-pkgsel.d/20install-hwpackages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement