~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to nl/appendix/example-preseed-etch.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 30373 untranslated -->
 
3
 
 
4
<informalexample condition="etch"><screen>
 
5
#### Startup.
 
6
 
 
7
# To use a preseed file, you'll first need to boot the installer,
 
8
# and tell it what preseed file to use. This is done by passing the
 
9
# kernel a boot parameter, either manually at boot or by editing the
 
10
# syslinux.cfg (or similar) file and adding the parameter to the end
 
11
# of the append line(s) for the kernel.
 
12
#
 
13
# If you're netbooting, use this:
 
14
#   preseed/url=http://host/path/to/preseed
 
15
# If you're remastering a CD, you could use this:
 
16
#   preseed/file=/cdrom/preseed
 
17
# If you're installing from USB media, use this, and put the preseed file
 
18
# in the toplevel directory of the USB stick.
 
19
#   preseed/file=/hd-media/preseed
 
20
#
 
21
# If you feel comfortable modifying the installer's initrd image,
 
22
# you can also place a preseed file in the root directory of the initrd's
 
23
# filesystem, named "preseed.cfg" -- the installer will always use this
 
24
# file if it is present. Otherwise, be sure to copy this file to the location
 
25
# you specify.
 
26
#
 
27
# To make sure the installer gets the right preseed file, you can specify
 
28
# a checksum for the file. Currently this needs to be a md5sum, and if
 
29
# specified it must match the file or the installer will refuse to use the
 
30
# file.
 
31
#   preseed/url/checksum=5da499872becccfeda2c4872f9171c3d
 
32
#   preseed/file/checksum=5da499872becccfeda2c4872f9171c3d
 
33
#
 
34
# Some parts of the installation process cannot be automated using
 
35
# some forms of preseeding, because the questions are asked before
 
36
# the preseed file is loaded. For example, if the preseed file is
 
37
# downloaded over the network, the network setup must be done first.
 
38
# One reason to use initrd preseeding is that it allows preseeding
 
39
# of even these early steps of the installation process.
 
40
#
 
41
# If a preseed file cannot be used to preseed some steps, the install can
 
42
# still be fully automated, since you can pass preseed values to the kernel
 
43
# on the command line. Just pass path/to/var=value for any of the preseed
 
44
# variables listed below.
 
45
#
 
46
# While you're at it, you may want to throw a debconf/priority=critical in
 
47
# there, to avoid most questions even if the preseeding below misses some.
 
48
# And you might set the timeout to 1 in syslinux.cfg to avoid needing to hit
 
49
# enter to boot the installer.
 
50
#
 
51
# Note that the 2.4 kernel accepts a maximum of 8 command line options and
 
52
# 8 environment options (including any options added by default for the
 
53
# installer). If these numbers are exceeded, 2.4 kernels will drop any
 
54
# excess options and 2.6 kernels will panic. With kernel 2.6.9 or newer,
 
55
# you can use 32 command line options and 32 environment options.
 
56
#
 
57
# Some of the default options, like 'vga=normal' may be safely removed
 
58
# for most installations, which may allow you to add more options for
 
59
# preseeding.
 
60
 
 
61
# To select your language and country, use this setting, but remember
 
62
# that this will only work for initrd based preseeding, for other forms of
 
63
# preseeding you must convert it into a kernel parameter,
 
64
# such as debian-installer/locale=en_US
 
65
d-i debian-installer/locale string en_US
 
66
 
 
67
# To select your keyboard, use this setting. Again it will need to be
 
68
# passed as a kernel parameter for most preseed setups.
 
69
d-i console-keymaps-at/keymap select us
 
70
 
 
71
#### Network configuration.
 
72
 
 
73
# Of course, this won't work if you're loading your preseed file from the
 
74
# network! But it's great if you're booting from CD or USB stick. You can
 
75
# also pass network config parameters in on the kernel params if you are
 
76
# loading preseed files from the network.
 
77
 
 
78
# netcfg will choose an interface that has link if possible. This makes it
 
79
# skip displaying a list if there is more than one interface.
 
80
d-i netcfg/choose_interface select auto
 
81
 
 
82
# If you have a slow dhcp server and the installer times out waiting for
 
83
# it, this might be useful.
 
84
#d-i netcfg/dhcp_timeout string 60
 
85
 
 
86
# If you prefer to configure the network manually, here's how:
 
87
#d-i netcfg/disable_dhcp boolean true
 
88
#d-i netcfg/get_nameservers string 192.168.1.1
 
89
#d-i netcfg/get_ipaddress string 192.168.1.42
 
90
#d-i netcfg/get_netmask string 255.255.255.0
 
91
#d-i netcfg/get_gateway string 192.168.1.1
 
92
#d-i netcfg/confirm_static boolean true
 
93
 
 
94
# Note that any hostname and domain names assigned from dhcp take
 
95
# precedence over values set here. However, setting the values still
 
96
# prevents the questions from being shown even if values come from dhcp.
 
97
d-i netcfg/get_hostname string unassigned-hostname
 
98
d-i netcfg/get_domain string unassigned-domain
 
99
 
 
100
# Disable that annoying WEP key dialog.
 
101
d-i netcfg/wireless_wep string
 
102
# The wacky dhcp hostname that some ISPs use as a password of sorts.
 
103
#d-i netcfg/dhcp_hostname string radish
 
104
 
 
105
#### Mirror settings.
 
106
 
 
107
d-i mirror/country string enter information manually
 
108
d-i mirror/http/hostname string http.us.debian.org
 
109
d-i mirror/http/directory string /debian
 
110
d-i mirror/http/proxy string
 
111
 
 
112
# What suite of Debian to install.
 
113
#d-i mirror/suite string testing
 
114
# What suite of Debian to use for loading installer components.
 
115
# (Defaults to same as mirror/suite.)
 
116
#d-i mirror/udeb/suite string testing
 
117
 
 
118
#### Partitioning.
 
119
 
 
120
# If the system has free space you can choose to only partition that space.
 
121
#d-i partman-auto/init_automatically_partition \
 
122
#      select Use the largest continuous free space
 
123
 
 
124
# Alternatively, you can specify a disk to partition. The device name can
 
125
# be given in either devfs or traditional non-devfs format.
 
126
# For example, to use the first disk devfs knows of:
 
127
d-i partman-auto/disk string /dev/discs/disc0/disc
 
128
 
 
129
# You can choose from any of the predefined partitioning recipes:
 
130
d-i partman-auto/choose_recipe \
 
131
       select All files in one partition (recommended for new users)
 
132
#d-i partman-auto/choose_recipe select Desktop machine
 
133
#d-i partman-auto/choose_recipe select Multi-user workstation
 
134
 
 
135
# Or provide a recipe of your own...
 
136
# The recipe format is documented in the file devel/partman-auto-recipe.txt.
 
137
# If you have a way to get a recipe file into the d-i environment, you can
 
138
# just point at it.
 
139
#d-i partman-auto/expert_recipe_file string /hd-media/recipe
 
140
 
 
141
# If not, you can put an entire recipe the preseed file in one (logical)
 
142
# line. This example creates a small /boot partition, suitable swap, and
 
143
# uses the rest of the space for the root partition:
 
144
#d-i partman-auto/expert_recipe string                         \
 
145
#      boot-root ::                                            \
 
146
#              40 50 100 ext3                                  \
 
147
#                      $primary{ } $bootable{ }                \
 
148
#                      method{ format } format{ }              \
 
149
#                      use_filesystem{ } filesystem{ ext3 }    \
 
150
#                      mountpoint{ /boot }                     \
 
151
#              .                                               \
 
152
#              500 10000 1000000000 ext3                       \
 
153
#                      method{ format } format{ }              \
 
154
#                      use_filesystem{ } filesystem{ ext3 }    \
 
155
#                      mountpoint{ / }                         \
 
156
#              .                                               \
 
157
#              64 512 300% linux-swap                          \
 
158
#                      method{ swap } format{ }                \
 
159
#              .
 
160
 
 
161
# This makes partman automatically partition without confirmation.
 
162
d-i partman/confirm_write_new_label boolean true
 
163
d-i partman/choose_partition \
 
164
       select Finish partitioning and write changes to disk
 
165
d-i partman/confirm boolean true
 
166
 
 
167
#### Boot loader installation.
 
168
 
 
169
# Grub is the default boot loader (for x86). If you want lilo installed
 
170
# instead, uncomment this:
 
171
#d-i grub-installer/skip boolean true
 
172
 
 
173
# This is fairly safe to set, it makes grub install automatically to the MBR
 
174
# if no other operating system is detected on the machine.
 
175
d-i grub-installer/only_debian boolean true
 
176
 
 
177
# This one makes grub-installer install to the MBR if if finds some other OS
 
178
# too, which is less safe as it might not be able to boot that other OS.
 
179
d-i grub-installer/with_other_os boolean true
 
180
 
 
181
# Alternatively, if you want to install to a location other than the mbr,
 
182
# uncomment and edit these lines:
 
183
#d-i grub-installer/bootdev  string (hd0,0)
 
184
#d-i grub-installer/only_debian boolean false
 
185
#d-i grub-installer/with_other_os boolean false
 
186
 
 
187
#### Finishing up the first stage install.
 
188
 
 
189
# Avoid that last message about the install being complete.
 
190
d-i prebaseconfig/reboot_in_progress note
 
191
 
 
192
# This will prevent the installer from ejecting the CD during the reboot,
 
193
# which is useful in some situations.
 
194
#d-i cdrom-detect/eject boolean false
 
195
 
 
196
#### Shell commands.
 
197
 
 
198
# d-i preseeding is inherently not secure. Nothing in the installer checks
 
199
# for attempts at buffer overflows or other exploits of the values of a
 
200
# preseed file like this one. Only use preseed files from trusted
 
201
# locations! To drive that home, and because it's generally useful, here's
 
202
# a way to run any shell command you'd like inside the installer,
 
203
# automatically.
 
204
 
 
205
# This first command is run as early as possible, just after
 
206
# preseeding is read.
 
207
#d-i preseed/early_command string anna-install some-udeb
 
208
 
 
209
# This command is run just before the install finishes, but when there is
 
210
# still a usable /target directory.
 
211
#d-i preseed/late_command string echo foo > /target/etc/bar
 
212
 
 
213
# This command is run just as base-config is starting up.
 
214
#base-config base-config/early_command string echo hi mom
 
215
 
 
216
# This command is run after base-config is done, just before the login:
 
217
# prompt. This is a good way to install a set of packages you want, or to
 
218
# tweak the configuration of the system.
 
219
#base-config base-config/late_command \
 
220
#      string apt-get install zsh; chsh -s /bin/zsh
 
221
 
 
222
###### Preseeding the 2nd stage of the installation.
 
223
 
 
224
#### Preseeding base-config.
 
225
 
 
226
# Avoid the introductory message.
 
227
base-config base-config/intro note
 
228
 
 
229
# Avoid the final message.
 
230
base-config base-config/login note
 
231
 
 
232
# If you installed a display manager, but don't want to start it immediately
 
233
# after base-config finishes.
 
234
#base-config base-config/start-display-manager boolean false
 
235
 
 
236
# Some versions of the installer can report back on what you've installed.
 
237
# The default is not to report back, but sending reports helps the project
 
238
# determine what software is most popular and include it on CDs.
 
239
#popularity-contest popularity-contest/participate boolean false
 
240
 
 
241
#### Clock and time zone setup.
 
242
 
 
243
# Controls whether or not the hardware clock is set to UTC.
 
244
d-i clock-setup/utc boolean true
 
245
 
 
246
# You may set this to any valid setting for $TZ; see the contents of
 
247
# /usr/share/zoneinfo/ for options.
 
248
d-i time/zone string US/Eastern
 
249
 
 
250
#### Account setup.
 
251
 
 
252
# To preseed the root password, you have to put it in the clear in this
 
253
# file. That is not a very good idea, use caution!
 
254
#passwd passwd/root-password password r00tme
 
255
#passwd passwd/root-password-again password r00tme
 
256
 
 
257
# If you want to skip creation of a normal user account.
 
258
#passwd passwd/make-user boolean false
 
259
 
 
260
# Alternatively, you can preseed the user's name and login.
 
261
#passwd passwd/user-fullname string Debian User
 
262
#passwd passwd/username string debian
 
263
# And their password, but use caution!
 
264
#passwd passwd/user-password password insecure
 
265
#passwd passwd/user-password-again password insecure
 
266
 
 
267
#### Apt setup.
 
268
 
 
269
# This question controls what source the second stage installation uses
 
270
# for packages. Choices are cdrom, http, ftp, filesystem, edit sources list
 
271
# by hand
 
272
base-config apt-setup/uri_type select http
 
273
 
 
274
# If you choose ftp or http, you'll be asked for a country and a mirror.
 
275
base-config apt-setup/country select enter information manually
 
276
base-config apt-setup/hostname string http.us.debian.org
 
277
base-config apt-setup/directory string /debian
 
278
# Stop after choosing one mirror.
 
279
base-config apt-setup/another boolean false
 
280
 
 
281
# You can choose to install non-free and contrib software.
 
282
#base-config apt-setup/non-free boolean true
 
283
#base-config apt-setup/contrib boolean true
 
284
 
 
285
# Do enable security updates.
 
286
base-config apt-setup/security-updates boolean true
 
287
 
 
288
#### Package selection.
 
289
 
 
290
# You can choose to install any combination of tasks that are available.
 
291
# Available tasks as of this writing include: Desktop environment,
 
292
# Web server, Print server, DNS server, File server, Mail server,
 
293
# SQL database, Laptop, Standard system, manual package selection. The
 
294
# last of those will run aptitude. You can also choose to install no
 
295
# tasks, and force the installation of a set of packages in some other
 
296
# way. We recommend always including the Standard system task.
 
297
tasksel tasksel/first multiselect Desktop environment, Standard system
 
298
#tasksel tasksel/first multiselect Web server, Standard system
 
299
 
 
300
#### Mailer configuration.
 
301
 
 
302
# During a normal install, exim asks only a few questions. Here's how to
 
303
# avoid even those. More complicated preseeding is possible.
 
304
exim4-config exim4/dc_eximconfig_configtype \
 
305
       select no configuration at this time
 
306
exim4-config exim4/no_config boolean true
 
307
exim4-config exim4/no_config boolean true
 
308
 
 
309
# It's a good idea to set this to whatever user account you choose to
 
310
# create. Leaving the value blank results in postmaster mail going to
 
311
# /var/mail/mail.
 
312
exim4-config exim4/dc_postmaster string
 
313
 
 
314
#### X Configuration.
 
315
 
 
316
# Preseeding Debian's X config is possible, but you probably need to know
 
317
# some details about the video hardware of the machine, since Debian's X
 
318
# configurator does not do fully automatic configuration of everything.
 
319
 
 
320
# X can detect the right driver for some cards, but if you're preseeding,
 
321
# you override whatever it chooses. Still, vesa will work most places.
 
322
#xserver-xfree86 xserver-xfree86/config/device/driver select vesa
 
323
 
 
324
# A caveat with mouse autodetection is that if it fails, X will retry it
 
325
# over and over. So if it's preseeded to be done, there is a possibility of
 
326
# an infinite loop if the mouse is not autodetected.
 
327
#xserver-xfree86 xserver-xfree86/autodetect_mouse boolean true
 
328
 
 
329
# Monitor autodetection is recommended.
 
330
xserver-xfree86 xserver-xfree86/autodetect_monitor boolean true
 
331
# Uncomment if you have an LCD display.
 
332
#xserver-xfree86 xserver-xfree86/config/monitor/lcd boolean true
 
333
# X has three configuration paths for the monitor. Here's how to preseed
 
334
# the "medium" path, which is always available. The "simple" path may not
 
335
# be available, and the "advanced" path asks too many questions.
 
336
xserver-xfree86 xserver-xfree86/config/monitor/selection-method \
 
337
       select medium
 
338
xserver-xfree86 xserver-xfree86/config/monitor/mode-list \
 
339
       select 1024x768 @ 60 Hz
 
340
 
 
341
#### Everything else.
 
342
 
 
343
# Depending on what software you choose to install, or if things go wrong
 
344
# during the installation process, it's possible that other questions may
 
345
# be asked. You can preseed those too, of course. To get a list of every
 
346
# possible question that could be asked during an install, do an
 
347
# installation, and then run these commands:
 
348
#   debconf-get-selections --installer > file
 
349
#   debconf-get-selections >> file
 
350
 
 
351
# If you like, you can include other preseed files into this one.
 
352
# Any settings in those files will override pre-existing settings from this
 
353
# file. More that one file can be listed, separated by spaces; all will be
 
354
# loaded. The included files can have preseed/include directives of their
 
355
# own as well. Note that if the filenames are relative, they are taken from
 
356
# the same directory as the preseed file that includes them.
 
357
#d-i preseed/include string x.cfg
 
358
 
 
359
# The installer can optionally verify checksums of preseed files before
 
360
# using them. Currently only md5sums are supported, list the md5sums
 
361
# in the same order as the list of files to include.
 
362
#d-i preseed/include/checksum string 5da499872becccfeda2c4872f9171c3d
 
363
 
 
364
# More flexibly, this runs a shell command and if it outputs the names of
 
365
# preseed files, includes those files. 
 
366
#d-i preseed/include_command \
 
367
#      string echo if [ "`hostname`" = bob ]; then echo bob.cfg; fi
 
368
 
 
369
# To check the format of your preseed file before performing an install,
 
370
# you can use debconf-set-selections:
 
371
#   debconf-set-selections -c preseed.cfg
 
372
</screen></informalexample>