1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 30372 -->
3
<!-- reviewed by Felipe Augusto van de Wiel (faw) 2006.01.01 -->
4
<!-- For now we are leaving this file untranslated, we will
5
work on this pretty soon (probably after 2006.Jan.01
9
<informalexample condition="sarge"><screen>
12
# To use a preseed file, you'll first need to boot the installer,
13
# and tell it what preseed file to use. This is done by passing the
14
# kernel a boot parameter, either manually at boot or by editing the
15
# syslinux.cfg (or similar) file and adding the parameter to the end
16
# of the append line(s) for the kernel.
18
# If you're netbooting, use this:
19
# preseed/url=http://host/path/to/preseed
20
# If you're remastering a CD, you could use this:
21
# preseed/file=/cdrom/preseed
22
# If you're installing from USB media, use this, and put the preseed file
23
# in the toplevel directory of the USB stick.
24
# preseed/file=/hd-media/preseed
25
# Be sure to copy this file to the location you specify.
27
# Some parts of the installation process cannot be automated using
28
# some forms of preseeding, because the questions are asked before
29
# the preseed file is loaded. For example, if the preseed file is
30
# downloaded over the network, the network setup must be done first.
31
# One reason to use initrd preseeding is that it allows preseeding
32
# of even these early steps of the installation process.
34
# If a preseed file cannot be used to preseed some steps, the install can
35
# still be fully automated, since you can pass preseed values to the kernel
36
# on the command line. Just pass path/to/var=value for any of the preseed
37
# variables listed below.
39
# While you're at it, you may want to throw a debconf/priority=critical in
40
# there, to avoid most questions even if the preseeding below misses some.
41
# And you might set the timeout to 1 in syslinux.cfg to avoid needing to hit
42
# enter to boot the installer.
44
# Note that the kernel accepts a maximum of 8 command line options and
45
# 8 environment options (including any options added by default for the
46
# installer). If these numbers are exceeded, 2.4 kernels will drop any
47
# excess options and 2.6 kernels will panic. With kernel 2.6.9 or newer,
48
# you can use 32 command line options and 32 environment options.
50
# Some of the default options, like 'vga=normal' may be safely removed
51
# for most installations, which may allow you to add more options for
54
# It is not possible to use preseeding to set language, country, and
55
# keyboard. Instead you should use kernel parameters. Example:
56
# languagechooser/language-name=English
57
# countrychooser/shortlist=US
58
# console-keymaps-at/keymap=us
60
#### Network configuration.
62
# Of course, this won't work if you're loading your preseed file from the
63
# network! But it's great if you're booting from CD or USB stick. You can
64
# also pass network config parameters in on the kernel params if you are
65
# loading preseed files from the network.
67
# netcfg will choose an interface that has link if possible. This makes it
68
# skip displaying a list if there is more than one interface.
69
d-i netcfg/choose_interface select auto
71
# If you have a slow dhcp server and the installer times out waiting for
72
# it, this might be useful.
73
#d-i netcfg/dhcp_timeout string 60
75
# If you prefer to configure the network manually, here's how:
76
#d-i netcfg/disable_dhcp boolean true
77
#d-i netcfg/get_nameservers string 192.168.1.1
78
#d-i netcfg/get_ipaddress string 192.168.1.42
79
#d-i netcfg/get_netmask string 255.255.255.0
80
#d-i netcfg/get_gateway string 192.168.1.1
81
#d-i netcfg/confirm_static boolean true
83
# Note that any hostname and domain names assigned from dhcp take
84
# precedence over values set here. However, setting the values still
85
# prevents the questions from being shown even if values come from dhcp.
86
d-i netcfg/get_hostname string unassigned-hostname
87
d-i netcfg/get_domain string unassigned-domain
89
# Disable that annoying WEP key dialog.
90
d-i netcfg/wireless_wep string
91
# The wacky dhcp hostname that some ISPs use as a password of sorts.
92
#d-i netcfg/dhcp_hostname string radish
96
d-i mirror/country string enter information manually
97
d-i mirror/http/hostname string http.us.debian.org
98
d-i mirror/http/directory string /debian
99
d-i mirror/suite string testing
100
d-i mirror/http/proxy string
104
# If the system has free space you can choose to only partition that space.
105
#d-i partman-auto/init_automatically_partition \
106
# select Use the largest continuous free space
108
# Alternatively, you can specify a disk to partition. The device name can
109
# be given in either devfs or traditional non-devfs format.
110
# For example, to use the first disk devfs knows of:
111
d-i partman-auto/disk string /dev/discs/disc0/disc
113
# You can choose from any of the predefined partitioning recipes:
114
d-i partman-auto/choose_recipe select \
115
All files in one partition (recommended for new users)
116
#d-i partman-auto/choose_recipe select Desktop machine
117
#d-i partman-auto/choose_recipe select Multi-user workstation
119
# Or provide a recipe of your own...
120
# The recipe format is documented in the file devel/partman-auto-recipe.txt.
121
# If you have a way to get a recipe file into the d-i environment, you can
123
#d-i partman-auto/expert_recipe_file string /hd-media/recipe
125
# If not, you can put an entire recipe in one line. This example creates
126
# a small /boot partition, suitable swap, and uses the rest of the space
127
# for the root partition:
128
#d-i partman-auto/expert_recipe string boot-root :: \
129
# 20 50 100 ext3 $primary{ } $bootable{ } method{ format } format{ } \
130
# use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . \
131
# 500 10000 1000000000 ext3 method{ format } format{ } \
132
# use_filesystem{ } filesystem{ ext3 } mountpoint{ / } . \
133
# 64 512 300% linux-swap method{ swap } format{ } .
134
# For reference, here is that same recipe in a more readable form:
137
# $primary{ } $bootable{ }
138
# method{ format } format{ }
139
# use_filesystem{ } filesystem{ ext3 }
140
# mountpoint{ /boot }
142
# 500 10000 1000000000 ext3
143
# method{ format } format{ }
144
# use_filesystem{ } filesystem{ ext3 }
147
# 64 512 300% linux-swap
148
# method{ swap } format{ }
151
# This makes partman automatically partition without confirmation.
152
d-i partman/confirm_write_new_label boolean true
153
d-i partman/choose_partition select \
154
Finish partitioning and write changes to disk
155
d-i partman/confirm boolean true
157
#### Boot loader installation.
159
# Grub is the default boot loader (for x86). If you want lilo installed
160
# instead, uncomment this:
161
#d-i grub-installer/skip boolean true
163
# This is fairly safe to set, it makes grub install automatically to the MBR
164
# if no other operating system is detected on the machine.
165
d-i grub-installer/only_debian boolean true
167
# This one makes grub-installer install to the MBR if if finds some other OS
168
# too, which is less safe as it might not be able to boot that other OS.
169
d-i grub-installer/with_other_os boolean true
171
# Alternatively, if you want to install to a location other than the mbr,
172
# uncomment and edit these lines:
173
#d-i grub-installer/bootdev string (hd0,0)
174
#d-i grub-installer/only_debian boolean false
175
#d-i grub-installer/with_other_os boolean false
177
#### Finishing up the first stage install.
179
# Avoid that last message about the install being complete.
180
d-i prebaseconfig/reboot_in_progress note
184
# d-i preseeding is inherently not secure. Nothing in the installer checks
185
# for attempts at buffer overflows or other exploits of the values of a
186
# preseed file like this one. Only use preseed files from trusted
187
# locations! To drive that home, and because it's generally useful, here's
188
# a way to run any shell command you'd like inside the installer,
191
# This first command is run as early as possible, just after
192
# preseeding is read.
193
#d-i preseed/early_command string anna-install some-udeb
195
# This command is run just before the install finishes, but when there is
196
# still a usable /target directory.
197
#d-i preseed/late_command string echo foo > /target/etc/bar
199
# This command is run just as base-config is starting up.
200
#base-config base-config/early_command string echo hi mom
202
# This command is run after base-config is done, just before the login:
203
# prompt. This is a good way to install a set of packages you want, or to
204
# tweak the configuration of the system.
205
#base-config base-config/late_command string \
206
# apt-get install zsh; chsh -s /bin/zsh
208
###### Preseeding the 2nd stage of the installation.
210
#### Preseeding base-config.
212
# Avoid the introductory message.
213
base-config base-config/intro note
215
# Avoid the final message.
216
base-config base-config/login note
218
# If you installed a display manager, but don't want to start it immediately
219
# after base-config finishes.
220
#base-config base-config/start-display-manager boolean false
222
# Some versions of the installer can report back on what you've installed.
223
# The default is not to report back, but sending reports helps the project
224
# determine what software is most popular and include it on CDs.
225
#popularity-contest popularity-contest/participate boolean false
227
#### Clock and time zone setup.
229
# Controls whether or not the hardware clock is set to UTC.
230
#base-config tzconfig/gmt boolean true
231
# If you told the installer that you're in the United States, then you
232
# can set the time zone using this variable.
233
# (Choices are: Eastern, Central, Mountain, Pacific, Alaska, Hawaii,
234
# Aleutian, Arizona East-Indiana, Indiana-Starke, Michigan, Samoa, other)
235
#base-config tzconfig/choose_country_zone/US select Eastern
236
# If you told it you're in Canada.
237
# (Choices are: Newfoundland, Atlantic, Eastern, Central,
238
# East-Saskatchewan, Saskatchewan, Mountain, Pacific, Yukon, other)
239
#base-config tzconfig/choose_country_zone/CA select Eastern
240
# If you told it you're in Brazil. (Choices are: East, West, Acre,
242
#base-config tzconfig/choose_country_zone/BR select East
243
# Many countries have only one time zone. If you told the installer you're
244
# in one of those countries, you can choose its standard time zone via this
246
#base-config tzconfig/choose_country_zone_single boolean true
247
# This question is asked as a fallback for countries other than those
248
# listed above, which have more than one time zone. You can preseed one of
249
# the time zones, or "other".
250
#base-config tzconfig/choose_country_zone_multiple select
254
# To preseed the root password, you have to put it in the clear in this
255
# file. That is not a very good idea, use caution!
256
#passwd passwd/root-password password r00tme
257
#passwd passwd/root-password-again password r00tme
259
# If you want to skip creation of a normal user account.
260
#passwd passwd/make-user boolean false
262
# Alternatively, you can preseed the user's name and login.
263
#passwd passwd/user-fullname string Debian User
264
#passwd passwd/username string debian
265
# And their password, but use caution!
266
#passwd passwd/user-password password insecure
267
#passwd passwd/user-password-again password insecure
271
# This question controls what source the second stage installation uses
272
# for packages. Choices are cdrom, http, ftp, filesystem, edit sources list
274
base-config apt-setup/uri_type select http
276
# If you choose ftp or http, you'll be asked for a country and a mirror.
277
base-config apt-setup/country select enter information manually
278
base-config apt-setup/hostname string http.us.debian.org
279
base-config apt-setup/directory string /debian
280
# Stop after choosing one mirror.
281
base-config apt-setup/another boolean false
283
# You can choose to install non-free and contrib software.
284
#base-config apt-setup/non-free boolean true
285
#base-config apt-setup/contrib boolean true
287
# Do enable security updates.
288
base-config apt-setup/security-updates boolean true
290
#### Package selection.
292
# You can choose to install any combination of tasks that are available.
293
# Available tasks as of this writing include: Desktop environment,
294
# Web server, Print server, DNS server, File server, Mail server,
295
# SQL database, Laptop, Standard system, manual package selection. The
296
# last of those will run aptitude. You can also choose to install no
297
# tasks, and force the installation of a set of packages in some other
298
# way. We recommend always including the Standard system task.
299
tasksel tasksel/first multiselect Desktop environment, Standard system
300
#tasksel tasksel/first multiselect Web server, Standard system
302
#### Mailer configuration.
304
# During a normal install, exim asks only a few questions. Here's how to
305
# avoid even those. More complicated preseeding is possible.
306
exim4-config exim4/dc_eximconfig_configtype \
307
select no configuration at this time
308
exim4-config exim4/no_config boolean true
309
exim4-config exim4/no_config boolean true
311
# It's a good idea to set this to whatever user account you choose to
312
# create. Leaving the value blank results in postmaster mail going to
314
exim4-config exim4/dc_postmaster string
316
#### X Configuration.
318
# Preseeding Debian's X config is possible, but you probably need to know
319
# some details about the video hardware of the machine, since Debian's X
320
# configurator does not do fully automatic configuration of everything.
322
# X can detect the right driver for some cards, but if you're preseeding,
323
# you override whatever it chooses. Still, vesa will work most places.
324
#xserver-xfree86 xserver-xfree86/config/device/driver select vesa
326
# A caveat with mouse autodetection is that if it fails, X will retry it
327
# over and over. So if it's preseeded to be done, there is a possibility of
328
# an infinite loop if the mouse is not autodetected.
329
#xserver-xfree86 xserver-xfree86/autodetect_mouse boolean true
331
# Monitor autodetection is recommended.
332
xserver-xfree86 xserver-xfree86/autodetect_monitor boolean true
333
# Uncomment if you have an LCD display.
334
#xserver-xfree86 xserver-xfree86/config/monitor/lcd boolean true
335
# X has three configuration paths for the monitor. Here's how to preseed
336
# the "medium" path, which is always available. The "simple" path may not
337
# be available, and the "advanced" path asks too many questions.
338
xserver-xfree86 xserver-xfree86/config/monitor/selection-method \
340
xserver-xfree86 xserver-xfree86/config/monitor/mode-list \
341
select 1024x768 @ 60 Hz
343
#### Everything else.
345
# Depending on what software you choose to install, or if things go wrong
346
# during the installation process, it's possible that other questions may
347
# be asked. You can preseed those too, of course. To get a list of every
348
# possible question that could be asked during an install, do an
349
# installation, and then run these commands:
350
# debconf-get-selections --installer > file
351
# debconf-get-selections >> file
353
# If you like, you can include other preseed files into this one.
354
# Any settings in those files will override pre-existing settings from this
355
# file. More that one file can be listed, separated by spaces; all will be
356
# loaded. The included files can have preseed/include directives of their
357
# own as well. Note that if the filenames are relative, they are taken from
358
# the same directory as the preseed file that includes them.
359
#d-i preseed/include string x.cfg
361
# More flexibly, this runs a shell command and if it outputs the names of
362
# preseed files, includes those files. For example, to switch configs based
363
# on a particular usb storage device (in this case, a built-in card reader):
364
#d-i preseed/include_command string \
365
# if $(grep -q "GUID: 0aec3050aec305000001a003" /proc/scsi/usb-storage-*/*); \
366
# then echo kraken.cfg; else echo otherusb.cfg; fi
368
# To check the format of your preseed file before performing an install,
369
# you can use debconf-set-selections:
370
# debconf-set-selections -c preseed.cfg
371
</screen></informalexample>