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