Advertisement
Guest User

Untitled

a guest
Jun 6th, 2015
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.02 KB | None | 0 0
  1. #### Contents of the preconfiguration file (for squeeze)
  2. ### Localization
  3. # Preseeding only locale sets language, country and locale.
  4. d-i debian-installer/locale string en_US.UTF-8
  5.  
  6. # The values can also be preseeded individually for greater flexibility.
  7. #d-i debian-installer/language string en
  8. #d-i debian-installer/country string NL
  9. #d-i debian-installer/locale string en_GB.UTF-8
  10. # Optionally specify additional locales to be generated.
  11. #d-i localechooser/supported-locales en_US.UTF-8, nl_NL.UTF-8
  12.  
  13. # Keyboard selection.
  14. # Disable automatic (interactive) keymap detection.
  15. d-i console-setup/ask_detect boolean false
  16. #d-i keyboard-configuration/modelcode string pc105
  17. d-i keyboard-configuration/layoutcode string us
  18. # To select a variant of the selected layout (if you leave this out, the
  19. # basic form of the layout will be used):
  20. #d-i keyboard-configuration/variantcode string dvorak
  21.  
  22. ### Network configuration
  23. # Disable network configuration entirely. This is useful for cdrom
  24. # installations on non-networked devices where the network questions,
  25. # warning and long timeouts are a nuisance.
  26. #d-i netcfg/enable boolean false
  27.  
  28. # netcfg will choose an interface that has link if possible. This makes it
  29. # skip displaying a list if there is more than one interface.
  30. d-i netcfg/choose_interface select auto
  31.  
  32. # To pick a particular interface instead:
  33. #d-i netcfg/choose_interface select eth1
  34.  
  35. # If you have a slow dhcp server and the installer times out waiting for
  36. # it, this might be useful.
  37. #d-i netcfg/dhcp_timeout string 60
  38.  
  39. # If you prefer to configure the network manually, uncomment this line and
  40. # the static network configuration below.
  41. #d-i netcfg/disable_autoconfig boolean true
  42.  
  43. # If you want the preconfiguration file to work on systems both with and
  44. # without a dhcp server, uncomment these lines and the static network
  45. # configuration below.
  46. #d-i netcfg/dhcp_failed note
  47. #d-i netcfg/dhcp_options select Configure network manually
  48.  
  49. # Static network configuration.
  50. #d-i netcfg/get_nameservers string 192.168.1.1
  51. #d-i netcfg/get_ipaddress string 192.168.1.42
  52. #d-i netcfg/get_netmask string 255.255.255.0
  53. #d-i netcfg/get_gateway string 192.168.1.1
  54. #d-i netcfg/confirm_static boolean true
  55.  
  56. # Any hostname and domain names assigned from dhcp take precedence over
  57. # values set here. However, setting the values still prevents the questions
  58. # from being shown, even if values come from dhcp.
  59. d-i netcfg/get_hostname string unassigned-hostname
  60. d-i netcfg/get_domain string unassigned-domain
  61.  
  62. # Disable that annoying WEP key dialog.
  63. d-i netcfg/wireless_wep string
  64. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  65. #d-i netcfg/dhcp_hostname string radish
  66.  
  67. # If non-free firmware is needed for the network or other hardware, you can
  68. # configure the installer to always try to load it, without prompting. Or
  69. # change to false to disable asking.
  70. #d-i hw-detect/load_firmware boolean true
  71.  
  72. ### Network console
  73. # Use the following settings if you wish to make use of the network-console
  74. # component for remote installation over SSH. This only makes sense if you
  75. # intend to perform the remainder of the installation manually.
  76. #d-i anna/choose_modules string network-console
  77. #d-i network-console/password password r00tme
  78. #d-i network-console/password-again password r00tme
  79. # Use this instead if you prefer to use key-based authentication
  80. #d-i network-console/authorized_keys_url http://host/authorized_keys
  81.  
  82. ### Mirror settings
  83. # If you select ftp, the mirror/country string does not need to be set.
  84. #d-i mirror/protocol string ftp
  85. d-i mirror/country string manual
  86. d-i mirror/http/hostname string archive.ubuntu.com
  87. d-i mirror/http/directory string /ubuntu
  88. d-i mirror/http/proxy string
  89.  
  90. # Alternatively: by default, the installer uses CC.archive.ubuntu.com where
  91. # CC is the ISO-3166-2 code for the selected country. You can preseed this
  92. # so that it does so without asking.
  93. #d-i mirror/http/mirror select CC.archive.ubuntu.com
  94.  
  95. # Suite to install.
  96. #d-i mirror/suite string squeeze
  97. # Suite to use for loading installer components (optional).
  98. #d-i mirror/udeb/suite string squeeze
  99. # Components to use for loading installer components (optional).
  100. #d-i mirror/udeb/components multiselect main, restricted
  101.  
  102. ### Clock and time zone setup
  103. # Controls whether or not the hardware clock is set to UTC.
  104. d-i clock-setup/utc boolean true
  105.  
  106. # You may set this to any valid setting for $TZ; see the contents of
  107. # /usr/share/zoneinfo/ for valid values.
  108. d-i time/zone string US/Eastern
  109.  
  110. # Controls whether to use NTP to set the clock during the install
  111. d-i clock-setup/ntp boolean true
  112. # NTP server to use. The default is almost always fine here.
  113. #d-i clock-setup/ntp-server string ntp.example.com
  114.  
  115. ### Partitioning
  116. ## Partitioning example
  117. # If the system has free space you can choose to only partition that space.
  118. # This is only honoured if partman-auto/method (below) is not set.
  119. # Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
  120. #d-i partman-auto/init_automatically_partition select biggest_free
  121.  
  122. # Alternatively, you may specify a disk to partition. If the system has only
  123. # one disk the installer will default to using that, but otherwise the device
  124. # name must be given in traditional, non-devfs format (so e.g. /dev/hda or
  125. # /dev/sda, and not e.g. /dev/discs/disc0/disc).
  126. # For example, to use the first SCSI/SATA hard disk:
  127. #d-i partman-auto/disk string /dev/sda
  128. # In addition, you'll need to specify the method to use.
  129. # The presently available methods are:
  130. # - regular: use the usual partition types for your architecture
  131. # - lvm: use LVM to partition the disk
  132. # - crypto: use LVM within an encrypted partition
  133. d-i partman-auto/method string lvm
  134.  
  135. # If one of the disks that are going to be automatically partitioned
  136. # contains an old LVM configuration, the user will normally receive a
  137. # warning. This can be preseeded away...
  138. d-i partman-lvm/device_remove_lvm boolean true
  139. # The same applies to pre-existing software RAID array:
  140. d-i partman-md/device_remove_md boolean true
  141. # And the same goes for the confirmation to write the lvm partitions.
  142. d-i partman-lvm/confirm boolean true
  143.  
  144. # For LVM partitioning, you can select how much of the volume group to use
  145. # for logical volumes.
  146. #d-i partman-auto-lvm/guided_size string max
  147. #d-i partman-auto-lvm/guided_size string 10GB
  148. #d-i partman-auto-lvm/guided_size string 50%
  149.  
  150. # You can choose one of the three predefined partitioning recipes:
  151. # - atomic: all files in one partition
  152. # - home: separate /home partition
  153. # - multi: separate /home, /usr, /var, and /tmp partitions
  154. d-i partman-auto/choose_recipe select atomic
  155.  
  156. # Or provide a recipe of your own...
  157. # If you have a way to get a recipe file into the d-i environment, you can
  158. # just point at it.
  159. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  160.  
  161. # If not, you can put an entire recipe into the preconfiguration file in one
  162. # (logical) line. This example creates a small /boot partition, suitable
  163. # swap, and uses the rest of the space for the root partition:
  164. #d-i partman-auto/expert_recipe string \
  165. # boot-root :: \
  166. # 40 50 100 ext3 \
  167. # $primary{ } $bootable{ } \
  168. # method{ format } format{ } \
  169. # use_filesystem{ } filesystem{ ext3 } \
  170. # mountpoint{ /boot } \
  171. # . \
  172. # 500 10000 1000000000 ext3 \
  173. # method{ format } format{ } \
  174. # use_filesystem{ } filesystem{ ext3 } \
  175. # mountpoint{ / } \
  176. # . \
  177. # 64 512 300% linux-swap \
  178. # method{ swap } format{ } \
  179. # .
  180.  
  181. # If you just want to change the default filesystem from ext3 to something
  182. # else, you can do that without providing a full recipe.
  183. #d-i partman/default_filesystem string ext4
  184.  
  185. # The full recipe format is documented in the file partman-auto-recipe.txt
  186. # included in the 'debian-installer' package or available from D-I source
  187. # repository. This also documents how to specify settings such as file
  188. # system labels, volume group names and which physical devices to include
  189. # in a volume group.
  190.  
  191. # This makes partman automatically partition without confirmation, provided
  192. # that you told it what to do using one of the methods above.
  193. d-i partman-partitioning/confirm_write_new_label boolean true
  194. d-i partman/choose_partition select finish
  195. d-i partman/confirm boolean true
  196. d-i partman/confirm_nooverwrite boolean true
  197.  
  198. ## Partitioning using RAID
  199. # The method should be set to "raid".
  200. #d-i partman-auto/method string raid
  201. # Specify the disks to be partitioned. They will all get the same layout,
  202. # so this will only work if the disks are the same size.
  203. #d-i partman-auto/disk string /dev/sda /dev/sdb
  204.  
  205. # Next you need to specify the physical partitions that will be used.
  206. #d-i partman-auto/expert_recipe string \
  207. # multiraid :: \
  208. # 1000 5000 4000 raid \
  209. # $primary{ } method{ raid } \
  210. # . \
  211. # 64 512 300% raid \
  212. # method{ raid } \
  213. # . \
  214. # 500 10000 1000000000 raid \
  215. # method{ raid } \
  216. # .
  217.  
  218. # Last you need to specify how the previously defined partitions will be
  219. # used in the RAID setup. Remember to use the correct partition numbers
  220. # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
  221. # devices are separated using "#".
  222. # Parameters are:
  223. # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
  224. # <devices> <sparedevices>
  225.  
  226. #d-i partman-auto-raid/recipe string \
  227. # 1 2 0 ext3 / \
  228. # /dev/sda1#/dev/sdb1 \
  229. # . \
  230. # 1 2 0 swap - \
  231. # /dev/sda5#/dev/sdb5 \
  232. # . \
  233. # 0 2 0 ext3 /home \
  234. # /dev/sda6#/dev/sdb6 \
  235. # .
  236.  
  237. # For additional information see the file partman-auto-raid-recipe.txt
  238. # included in the 'debian-installer' package or available from D-I source
  239. # repository.
  240.  
  241. # This makes partman automatically partition without confirmation.
  242. d-i partman-md/confirm boolean true
  243. d-i partman-partitioning/confirm_write_new_label boolean true
  244. d-i partman/choose_partition select finish
  245. d-i partman/confirm boolean true
  246. d-i partman/confirm_nooverwrite boolean true
  247.  
  248. ## Controlling how partitions are mounted
  249. # The default is to mount by UUID, but you can also choose "traditional" to
  250. # use traditional device names, or "label" to try filesystem labels before
  251. # falling back to UUIDs.
  252. #d-i partman/mount_style select uuid
  253.  
  254. ### Base system installation
  255. # Configure APT to not install recommended packages by default. Use of this
  256. # option can result in an incomplete system and should only be used by very
  257. # experienced users.
  258. #d-i base-installer/install-recommends boolean false
  259.  
  260. # The kernel image (meta) package to be installed; "none" can be used if no
  261. # kernel is to be installed.
  262. #d-i base-installer/kernel/image string linux-generic
  263.  
  264. ### Account setup
  265. # Skip creation of a root account (normal user account will be able to
  266. # use sudo). The default is false; preseed this to true if you want to set
  267. # a root password.
  268. #d-i passwd/root-login boolean false
  269. # Alternatively, to skip creation of a normal user account.
  270. #d-i passwd/make-user boolean false
  271.  
  272. # Root password, either in clear text
  273. #d-i passwd/root-password password r00tme
  274. #d-i passwd/root-password-again password r00tme
  275. # or encrypted using an MD5 hash.
  276. #d-i passwd/root-password-crypted password [MD5 hash]
  277.  
  278. # To create a normal user account.
  279. d-i passwd/user-fullname string Spencer Colton
  280. d-i passwd/username string scolton
  281. # Normal user's password, either in clear text
  282. #d-i passwd/user-password password insecure
  283. #d-i passwd/user-password-again password insecure
  284. # or encrypted using an MD5 hash.
  285. d-i passwd/user-password-crypted password 1eeaa170f80d5f24099bfc05d0154b0b
  286. # Create the first user with the specified UID instead of the default.
  287. #d-i passwd/user-uid string 1010
  288. # The installer will warn about weak passwords. If you are sure you know
  289. # what you're doing and want to override it, uncomment this.
  290. #d-i user-setup/allow-password-weak boolean true
  291.  
  292. # The user account will be added to some standard initial groups. To
  293. # override that, use this.
  294. #d-i passwd/user-default-groups string audio cdrom video
  295.  
  296. # Set to true if you want to encrypt the first user's home directory.
  297. d-i user-setup/encrypt-home boolean false
  298.  
  299. ### Apt setup
  300. # You can choose to install restricted and universe software, or to install
  301. # software from the backports repository.
  302. d-i apt-setup/restricted boolean true
  303. d-i apt-setup/universe boolean true
  304. d-i apt-setup/backports boolean true
  305. # Uncomment this if you don't want to use a network mirror.
  306. #d-i apt-setup/use_mirror boolean false
  307. # Select which update services to use; define the mirrors to be used.
  308. # Values shown below are the normal defaults.
  309. #d-i apt-setup/services-select multiselect security
  310. #d-i apt-setup/security_host string security.ubuntu.com
  311. #d-i apt-setup/security_path string /ubuntu
  312.  
  313. # Additional repositories, local[0-9] available
  314. #d-i apt-setup/local0/repository string \
  315. # http://local.server/ubuntu squeeze main
  316. #d-i apt-setup/local0/comment string local server
  317. # Enable deb-src lines
  318. #d-i apt-setup/local0/source boolean true
  319. # URL to the public key of the local repository; you must provide a key or
  320. # apt will complain about the unauthenticated repository and so the
  321. # sources.list line will be left commented out
  322. #d-i apt-setup/local0/key string http://local.server/key
  323.  
  324. # By default the installer requires that repositories be authenticated
  325. # using a known gpg key. This setting can be used to disable that
  326. # authentication. Warning: Insecure, not recommended.
  327. #d-i debian-installer/allow_unauthenticated boolean true
  328.  
  329. ### Package selection
  330. tasksel tasksel/first multiselect ubuntu-desktop
  331. #tasksel tasksel/first multiselect lamp-server, print-server
  332. #tasksel tasksel/first multiselect kubuntu-desktop
  333.  
  334. # Individual additional packages to install
  335. #d-i pkgsel/include string openssh-server build-essential
  336. # Whether to upgrade packages after debootstrap.
  337. # Allowed values: none, safe-upgrade, full-upgrade
  338. #d-i pkgsel/upgrade select none
  339.  
  340. # Language pack selection
  341. #d-i pkgsel/language-packs multiselect de, en, zh
  342.  
  343. # Policy for applying updates. May be "none" (no automatic updates),
  344. # "unattended-upgrades" (install security updates automatically), or
  345. # "landscape" (manage system with Landscape).
  346. #d-i pkgsel/update-policy select none
  347.  
  348. # Some versions of the installer can report back on what software you have
  349. # installed, and what software you use. The default is not to report back,
  350. # but sending reports helps the project determine what software is most
  351. # popular and include it on CDs.
  352. #popularity-contest popularity-contest/participate boolean false
  353.  
  354. # By default, the system's locate database will be updated after the
  355. # installer has finished installing most packages. This may take a while, so
  356. # if you don't want it, you can set this to "false" to turn it off.
  357. #d-i pkgsel/updatedb boolean true
  358.  
  359. ### Boot loader installation
  360. # Grub is the default boot loader (for x86). If you want lilo installed
  361. # instead, uncomment this:
  362. #d-i grub-installer/skip boolean true
  363. # To also skip installing lilo, and install no bootloader, uncomment this
  364. # too:
  365. #d-i lilo-installer/skip boolean true
  366.  
  367. # With a few exceptions for unusual partitioning setups, GRUB 2 is now the
  368. # default. If you need GRUB Legacy for some particular reason, then
  369. # uncomment this:
  370. #d-i grub-installer/grub2_instead_of_grub_legacy boolean false
  371.  
  372. # This is fairly safe to set, it makes grub install automatically to the MBR
  373. # if no other operating system is detected on the machine.
  374. d-i grub-installer/only_debian boolean true
  375.  
  376. # This one makes grub-installer install to the MBR if it also finds some other
  377. # OS, which is less safe as it might not be able to boot that other OS.
  378. d-i grub-installer/with_other_os boolean true
  379.  
  380. # Alternatively, if you want to install to a location other than the mbr,
  381. # uncomment and edit these lines:
  382. #d-i grub-installer/only_debian boolean false
  383. #d-i grub-installer/with_other_os boolean false
  384. #d-i grub-installer/bootdev string (hd0,0)
  385. # To install grub to multiple disks:
  386. #d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
  387.  
  388. # Optional password for grub, either in clear text
  389. #d-i grub-installer/password password r00tme
  390. #d-i grub-installer/password-again password r00tme
  391. # or encrypted using an MD5 hash, see grub-md5-crypt(8).
  392. #d-i grub-installer/password-crypted password [MD5 hash]
  393.  
  394. # Use the following option to add additional boot parameters for the
  395. # installed system (if supported by the bootloader installer).
  396. # Note: options passed to the installer will be added automatically.
  397. #d-i debian-installer/add-kernel-opts string nousb
  398.  
  399. ### Finishing up the installation
  400. # During installations from serial console, the regular virtual consoles
  401. # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
  402. # line to prevent this.
  403. #d-i finish-install/keep-consoles boolean true
  404.  
  405. # Avoid that last message about the install being complete.
  406. d-i finish-install/reboot_in_progress note
  407.  
  408. # This will prevent the installer from ejecting the CD during the reboot,
  409. # which is useful in some situations.
  410. #d-i cdrom-detect/eject boolean false
  411.  
  412. # This is how to make the installer shutdown when finished, but not
  413. # reboot into the installed system.
  414. #d-i debian-installer/exit/halt boolean true
  415. # This will power off the machine instead of just halting it.
  416. #d-i debian-installer/exit/poweroff boolean true
  417.  
  418. ### X configuration
  419. # X can detect the right driver for some cards, but if you're preseeding,
  420. # you override whatever it chooses. Still, vesa will work most places.
  421. #xserver-xorg xserver-xorg/config/device/driver select vesa
  422.  
  423. # A caveat with mouse autodetection is that if it fails, X will retry it
  424. # over and over. So if it's preseeded to be done, there is a possibility of
  425. # an infinite loop if the mouse is not autodetected.
  426. xserver-xorg xserver-xorg/autodetect_mouse boolean true
  427.  
  428. # Monitor autodetection is recommended.
  429. xserver-xorg xserver-xorg/autodetect_monitor boolean true
  430. # Uncomment if you have an LCD display.
  431. xserver-xorg xserver-xorg/config/monitor/lcd boolean true
  432. # X has three configuration paths for the monitor. Here's how to preseed
  433. # the "medium" path, which is always available. The "simple" path may not
  434. # be available, and the "advanced" path asks too many questions.
  435. xserver-xorg xserver-xorg/config/monitor/selection-method \
  436. select medium
  437. xserver-xorg xserver-xorg/config/monitor/mode-list \
  438. select 1024x768 @ 60 Hz
  439.  
  440. ### Preseeding other packages
  441. # Depending on what software you choose to install, or if things go wrong
  442. # during the installation process, it's possible that other questions may
  443. # be asked. You can preseed those too, of course. To get a list of every
  444. # possible question that could be asked during an install, do an
  445. # installation, and then run these commands:
  446. # debconf-get-selections --installer > file
  447. # debconf-get-selections >> file
  448.  
  449.  
  450. #### Advanced options
  451. ### Running custom commands during the installation
  452. # d-i preseeding is inherently not secure. Nothing in the installer checks
  453. # for attempts at buffer overflows or other exploits of the values of a
  454. # preconfiguration file like this one. Only use preconfiguration files from
  455. # trusted locations! To drive that home, and because it's generally useful,
  456. # here's a way to run any shell command you'd like inside the installer,
  457. # automatically.
  458.  
  459. # This first command is run as early as possible, just after
  460. # preseeding is read.
  461. #d-i preseed/early_command string anna-install some-udeb
  462. # This command is run immediately before the partitioner starts. It may be
  463. # useful to apply dynamic partitioner preseeding that depends on the state
  464. # of the disks (which may not be visible when preseed/early_command runs).
  465. #d-i partman/early_command \
  466. # string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
  467. # This command is run just before the install finishes, but when there is
  468. # still a usable /target directory. You can chroot to /target and use it
  469. # directly, or use the apt-install and in-target commands to easily install
  470. # packages and run commands in the target system.
  471. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement