blob: 80f334ba8e7a34a0a4b48bb48969d62a2d2c3990 [file] [log] [blame]
Renuka Apte360e29b2012-04-09 16:24:53 -07001### Contents of the preconfiguration file (for squeeze)
2### Localization
3# Preseeding only locale sets language, country and locale.
4d-i debian-installer/locale string en_US
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.
15d-i console-setup/ask_detect boolean false
16#d-i keyboard-configuration/modelcode string pc105
17d-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.
30d-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.
Mate Lakat53d6fa62013-09-27 12:30:28 +010037d-i netcfg/dhcp_timeout string 120
Renuka Apte360e29b2012-04-09 16:24:53 -070038
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.
59d-i netcfg/get_hostname string stack
60d-i netcfg/get_domain string stackpass
61
62# Disable that annoying WEP key dialog.
63d-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
80### Mirror settings
81# If you select ftp, the mirror/country string does not need to be set.
82#d-i mirror/protocol string ftp
83d-i mirror/country string manual
84d-i mirror/http/hostname string archive.ubuntu.com
85d-i mirror/http/directory string /ubuntu
86d-i mirror/http/proxy string
87
88# Alternatively: by default, the installer uses CC.archive.ubuntu.com where
89# CC is the ISO-3166-2 code for the selected country. You can preseed this
90# so that it does so without asking.
91#d-i mirror/http/mirror select CC.archive.ubuntu.com
92
93# Suite to install.
94#d-i mirror/suite string squeeze
95# Suite to use for loading installer components (optional).
96#d-i mirror/udeb/suite string squeeze
97# Components to use for loading installer components (optional).
98#d-i mirror/udeb/components multiselect main, restricted
99
100### Clock and time zone setup
101# Controls whether or not the hardware clock is set to UTC.
102d-i clock-setup/utc boolean true
103
104# You may set this to any valid setting for $TZ; see the contents of
105# /usr/share/zoneinfo/ for valid values.
106d-i time/zone string US/Pacific
107
108# Controls whether to use NTP to set the clock during the install
109d-i clock-setup/ntp boolean true
110# NTP server to use. The default is almost always fine here.
111d-i clock-setup/ntp-server string 0.us.pool.ntp.org
112
113### Partitioning
114## Partitioning example
115# If the system has free space you can choose to only partition that space.
116# This is only honoured if partman-auto/method (below) is not set.
117# Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
118#d-i partman-auto/init_automatically_partition select biggest_free
119
120# Alternatively, you may specify a disk to partition. If the system has only
121# one disk the installer will default to using that, but otherwise the device
122# name must be given in traditional, non-devfs format (so e.g. /dev/hda or
123# /dev/sda, and not e.g. /dev/discs/disc0/disc).
124# For example, to use the first SCSI/SATA hard disk:
125#d-i partman-auto/disk string /dev/sda
126# In addition, you'll need to specify the method to use.
127# The presently available methods are:
128# - regular: use the usual partition types for your architecture
129# - lvm: use LVM to partition the disk
130# - crypto: use LVM within an encrypted partition
131d-i partman-auto/method string regular
132
133# If one of the disks that are going to be automatically partitioned
134# contains an old LVM configuration, the user will normally receive a
135# warning. This can be preseeded away...
136d-i partman-lvm/device_remove_lvm boolean true
137# The same applies to pre-existing software RAID array:
138d-i partman-md/device_remove_md boolean true
139# And the same goes for the confirmation to write the lvm partitions.
140d-i partman-lvm/confirm boolean true
141
142# For LVM partitioning, you can select how much of the volume group to use
143# for logical volumes.
144#d-i partman-auto-lvm/guided_size string max
145#d-i partman-auto-lvm/guided_size string 10GB
146#d-i partman-auto-lvm/guided_size string 50%
147
148# You can choose one of the three predefined partitioning recipes:
149# - atomic: all files in one partition
150# - home: separate /home partition
151# - multi: separate /home, /usr, /var, and /tmp partitions
152d-i partman-auto/choose_recipe select atomic
153
154# Or provide a recipe of your own...
155# If you have a way to get a recipe file into the d-i environment, you can
156# just point at it.
157#d-i partman-auto/expert_recipe_file string /hd-media/recipe
158
159# If not, you can put an entire recipe into the preconfiguration file in one
160# (logical) line. This example creates a small /boot partition, suitable
161# swap, and uses the rest of the space for the root partition:
162#d-i partman-auto/expert_recipe string \
163# boot-root :: \
164# 40 50 100 ext3 \
165# $primary{ } $bootable{ } \
166# method{ format } format{ } \
167# use_filesystem{ } filesystem{ ext3 } \
168# mountpoint{ /boot } \
169# . \
170# 500 10000 1000000000 ext3 \
171# method{ format } format{ } \
172# use_filesystem{ } filesystem{ ext3 } \
173# mountpoint{ / } \
174# . \
175# 64 512 300% linux-swap \
176# method{ swap } format{ } \
177# .
178
179# If you just want to change the default filesystem from ext3 to something
180# else, you can do that without providing a full recipe.
181d-i partman/default_filesystem string ext3
182
183# The full recipe format is documented in the file partman-auto-recipe.txt
184# included in the 'debian-installer' package or available from D-I source
185# repository. This also documents how to specify settings such as file
186# system labels, volume group names and which physical devices to include
187# in a volume group.
188
189# This makes partman automatically partition without confirmation, provided
190# that you told it what to do using one of the methods above.
191d-i partman-partitioning/confirm_write_new_label boolean true
192d-i partman/choose_partition select finish
193d-i partman/confirm boolean true
194d-i partman/confirm_nooverwrite boolean true
195
196## Partitioning using RAID
197# The method should be set to "raid".
198#d-i partman-auto/method string raid
199# Specify the disks to be partitioned. They will all get the same layout,
200# so this will only work if the disks are the same size.
201#d-i partman-auto/disk string /dev/sda /dev/sdb
202
203# Next you need to specify the physical partitions that will be used.
204#d-i partman-auto/expert_recipe string \
205# multiraid :: \
206# 1000 5000 4000 raid \
207# $primary{ } method{ raid } \
208# . \
209# 64 512 300% raid \
210# method{ raid } \
211# . \
212# 500 10000 1000000000 raid \
213# method{ raid } \
214# .
215
216# Last you need to specify how the previously defined partitions will be
217# used in the RAID setup. Remember to use the correct partition numbers
218# for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
219# devices are separated using "#".
220# Parameters are:
221# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
222# <devices> <sparedevices>
223
224#d-i partman-auto-raid/recipe string \
225# 1 2 0 ext3 / \
226# /dev/sda1#/dev/sdb1 \
227# . \
228# 1 2 0 swap - \
229# /dev/sda5#/dev/sdb5 \
230# . \
231# 0 2 0 ext3 /home \
232# /dev/sda6#/dev/sdb6 \
233# .
234
235# For additional information see the file partman-auto-raid-recipe.txt
236# included in the 'debian-installer' package or available from D-I source
237# repository.
238
239# This makes partman automatically partition without confirmation.
240d-i partman-md/confirm boolean true
241d-i partman-partitioning/confirm_write_new_label boolean true
242d-i partman/choose_partition select finish
243d-i partman/confirm boolean true
244d-i partman/confirm_nooverwrite boolean true
245
246## Controlling how partitions are mounted
247# The default is to mount by UUID, but you can also choose "traditional" to
248# use traditional device names, or "label" to try filesystem labels before
249# falling back to UUIDs.
250#d-i partman/mount_style select uuid
251
252### Base system installation
253# Configure APT to not install recommended packages by default. Use of this
254# option can result in an incomplete system and should only be used by very
255# experienced users.
256#d-i base-installer/install-recommends boolean false
257
258# The kernel image (meta) package to be installed; "none" can be used if no
259# kernel is to be installed.
Mate Lakat6e207ce2013-03-13 09:42:58 +0000260d-i base-installer/kernel/image string linux-virtual
Renuka Apte360e29b2012-04-09 16:24:53 -0700261
262### Account setup
263# Skip creation of a root account (normal user account will be able to
264# use sudo). The default is false; preseed this to true if you want to set
265# a root password.
266d-i passwd/root-login boolean true
267# Alternatively, to skip creation of a normal user account.
268d-i passwd/make-user boolean false
269
270# Root password, either in clear text
271d-i passwd/root-password password stackpass
272d-i passwd/root-password-again password stackpass
273# or encrypted using an MD5 hash.
274#d-i passwd/root-password-crypted password [MD5 hash]
275
276# To create a normal user account.
277#d-i passwd/user-fullname string Ubuntu User
278#d-i passwd/username string ubuntu
279# Normal user's password, either in clear text
280#d-i passwd/user-password password insecure
281#d-i passwd/user-password-again password insecure
282# or encrypted using an MD5 hash.
283#d-i passwd/user-password-crypted password [MD5 hash]
284# Create the first user with the specified UID instead of the default.
285#d-i passwd/user-uid string 1010
286# The installer will warn about weak passwords. If you are sure you know
287# what you're doing and want to override it, uncomment this.
288d-i user-setup/allow-password-weak boolean true
289
290# The user account will be added to some standard initial groups. To
291# override that, use this.
292#d-i passwd/user-default-groups string audio cdrom video
293
294# Set to true if you want to encrypt the first user's home directory.
295d-i user-setup/encrypt-home boolean false
296
297### Apt setup
298# You can choose to install restricted and universe software, or to install
299# software from the backports repository.
Bob Ball3cd17712014-09-29 12:53:02 +0100300d-i apt-setup/restricted boolean true
301d-i apt-setup/universe boolean true
302d-i apt-setup/backports boolean true
Renuka Apte360e29b2012-04-09 16:24:53 -0700303# Uncomment this if you don't want to use a network mirror.
304#d-i apt-setup/use_mirror boolean false
305# Select which update services to use; define the mirrors to be used.
306# Values shown below are the normal defaults.
307#d-i apt-setup/services-select multiselect security
308#d-i apt-setup/security_host string security.ubuntu.com
309#d-i apt-setup/security_path string /ubuntu
310
311# Additional repositories, local[0-9] available
312#d-i apt-setup/local0/repository string \
313# http://local.server/ubuntu squeeze main
314#d-i apt-setup/local0/comment string local server
315# Enable deb-src lines
316#d-i apt-setup/local0/source boolean true
317# URL to the public key of the local repository; you must provide a key or
318# apt will complain about the unauthenticated repository and so the
319# sources.list line will be left commented out
320#d-i apt-setup/local0/key string http://local.server/key
321
322# By default the installer requires that repositories be authenticated
323# using a known gpg key. This setting can be used to disable that
324# authentication. Warning: Insecure, not recommended.
325#d-i debian-installer/allow_unauthenticated boolean true
326
327### Package selection
328#tasksel tasksel/first multiselect ubuntu-desktop
329#tasksel tasksel/first multiselect lamp-server, print-server
330#tasksel tasksel/first multiselect kubuntu-desktop
331tasksel tasksel/first multiselect openssh-server
332
333# Individual additional packages to install
Bob Ball5b9adb62015-02-10 08:09:08 +0000334d-i pkgsel/include string cracklib-runtime curl wget ssh openssh-server tcpdump ethtool git sudo python-netaddr coreutils
335
Renuka Apte360e29b2012-04-09 16:24:53 -0700336# Whether to upgrade packages after debootstrap.
337# Allowed values: none, safe-upgrade, full-upgrade
Bob Ball5b9adb62015-02-10 08:09:08 +0000338d-i pkgsel/upgrade select safe-upgrade
Renuka Apte360e29b2012-04-09 16:24:53 -0700339
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).
346d-i pkgsel/update-policy select unattended-upgrades
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.
357d-i pkgsel/updatedb boolean false
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:
Bob Ball3cd17712014-09-29 12:53:02 +0100370d-i grub-installer/grub2_instead_of_grub_legacy boolean false
Renuka Apte360e29b2012-04-09 16:24:53 -0700371
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.
374d-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.
378d-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.
403d-i finish-install/keep-consoles boolean true
404
405# Avoid that last message about the install being complete.
406d-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.
429xserver-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.
435xserver-xorg xserver-xorg/config/monitor/selection-method \
436 select medium
437xserver-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.
Bob Ball5b9adb62015-02-10 08:09:08 +0000471d-i preseed/late_command string