example-preseed.txt
changeset 0 bd32cd43a116
equal deleted inserted replaced
-1:000000000000 0:bd32cd43a116
       
     1 #### Contents of the preconfiguration file (for wheezy)
       
     2 ### Localization
       
     3 # Preseeding only locale sets language, country and locale.
       
     4 d-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 multiselect en_US.UTF-8, nl_NL.UTF-8
       
    12 
       
    13 # Keyboard selection.
       
    14 # keymap is an alias for keyboard-configuration/xkb-keymap
       
    15 d-i keymap select us
       
    16 # d-i keyboard-configuration/toggle select No toggling
       
    17 
       
    18 ### Network configuration
       
    19 # Disable network configuration entirely. This is useful for cdrom
       
    20 # installations on non-networked devices where the network questions,
       
    21 # warning and long timeouts are a nuisance.
       
    22 #d-i netcfg/enable boolean false
       
    23 
       
    24 # netcfg will choose an interface that has link if possible. This makes it
       
    25 # skip displaying a list if there is more than one interface.
       
    26 d-i netcfg/choose_interface select auto
       
    27 
       
    28 # To pick a particular interface instead:
       
    29 #d-i netcfg/choose_interface select eth1
       
    30 
       
    31 # To set a different link detection timeout (default is 3 seconds).
       
    32 # Values are interpreted as seconds.
       
    33 #d-i netcfg/link_detection_timeout string 10
       
    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 #d-i netcfg/dhcpv6_timeout string 60
       
    39 
       
    40 # If you prefer to configure the network manually, uncomment this line and
       
    41 # the static network configuration below.
       
    42 #d-i netcfg/disable_autoconfig boolean true
       
    43 
       
    44 # If you want the preconfiguration file to work on systems both with and
       
    45 # without a dhcp server, uncomment these lines and the static network
       
    46 # configuration below.
       
    47 #d-i netcfg/dhcp_failed note
       
    48 #d-i netcfg/dhcp_options select Configure network manually
       
    49 
       
    50 # Static network configuration.
       
    51 #
       
    52 # IPv4 example
       
    53 #d-i netcfg/get_ipaddress string 192.168.1.42
       
    54 #d-i netcfg/get_netmask string 255.255.255.0
       
    55 #d-i netcfg/get_gateway string 192.168.1.1
       
    56 #d-i netcfg/get_nameservers string 192.168.1.1
       
    57 #d-i netcfg/confirm_static boolean true
       
    58 #
       
    59 # IPv6 example
       
    60 #d-i netcfg/get_ipaddress string fc00::2
       
    61 #d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
       
    62 #d-i netcfg/get_gateway string fc00::1
       
    63 #d-i netcfg/get_nameservers string fc00::1
       
    64 #d-i netcfg/confirm_static boolean true
       
    65 
       
    66 # Any hostname and domain names assigned from dhcp take precedence over
       
    67 # values set here. However, setting the values still prevents the questions
       
    68 # from being shown, even if values come from dhcp.
       
    69 d-i netcfg/get_hostname string unassigned-hostname
       
    70 d-i netcfg/get_domain string unassigned-domain
       
    71 
       
    72 # If you want to force a hostname, regardless of what either the DHCP
       
    73 # server returns or what the reverse DNS entry for the IP is, uncomment
       
    74 # and adjust the following line.
       
    75 #d-i netcfg/hostname string somehost
       
    76 
       
    77 # Disable that annoying WEP key dialog.
       
    78 d-i netcfg/wireless_wep string
       
    79 # The wacky dhcp hostname that some ISPs use as a password of sorts.
       
    80 #d-i netcfg/dhcp_hostname string radish
       
    81 
       
    82 # If non-free firmware is needed for the network or other hardware, you can
       
    83 # configure the installer to always try to load it, without prompting. Or
       
    84 # change to false to disable asking.
       
    85 #d-i hw-detect/load_firmware boolean true
       
    86 
       
    87 ### Network console
       
    88 # Use the following settings if you wish to make use of the network-console
       
    89 # component for remote installation over SSH. This only makes sense if you
       
    90 # intend to perform the remainder of the installation manually.
       
    91 #d-i anna/choose_modules string network-console
       
    92 #d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
       
    93 #d-i network-console/password password r00tme
       
    94 #d-i network-console/password-again password r00tme
       
    95 
       
    96 ### Mirror settings
       
    97 # If you select ftp, the mirror/country string does not need to be set.
       
    98 #d-i mirror/protocol string ftp
       
    99 d-i mirror/country string manual
       
   100 d-i mirror/http/hostname string http.us.debian.org
       
   101 d-i mirror/http/directory string /debian
       
   102 d-i mirror/http/proxy string
       
   103 
       
   104 # Suite to install.
       
   105 #d-i mirror/suite string testing
       
   106 # Suite to use for loading installer components (optional).
       
   107 #d-i mirror/udeb/suite string testing
       
   108 
       
   109 ### Account setup
       
   110 # Skip creation of a root account (normal user account will be able to
       
   111 # use sudo).
       
   112 #d-i passwd/root-login boolean false
       
   113 # Alternatively, to skip creation of a normal user account.
       
   114 #d-i passwd/make-user boolean false
       
   115 
       
   116 # Root password, either in clear text
       
   117 #d-i passwd/root-password password r00tme
       
   118 #d-i passwd/root-password-again password r00tme
       
   119 # or encrypted using an MD5 hash.
       
   120 #d-i passwd/root-password-crypted password [MD5 hash]
       
   121 
       
   122 # To create a normal user account.
       
   123 #d-i passwd/user-fullname string Debian User
       
   124 #d-i passwd/username string debian
       
   125 # Normal user's password, either in clear text
       
   126 #d-i passwd/user-password password insecure
       
   127 #d-i passwd/user-password-again password insecure
       
   128 # or encrypted using an MD5 hash.
       
   129 #d-i passwd/user-password-crypted password [MD5 hash]
       
   130 # Create the first user with the specified UID instead of the default.
       
   131 #d-i passwd/user-uid string 1010
       
   132 
       
   133 # The user account will be added to some standard initial groups. To
       
   134 # override that, use this.
       
   135 #d-i passwd/user-default-groups string audio cdrom video
       
   136 
       
   137 ### Clock and time zone setup
       
   138 # Controls whether or not the hardware clock is set to UTC.
       
   139 d-i clock-setup/utc boolean true
       
   140 
       
   141 # You may set this to any valid setting for $TZ; see the contents of
       
   142 # /usr/share/zoneinfo/ for valid values.
       
   143 d-i time/zone string US/Eastern
       
   144 
       
   145 # Controls whether to use NTP to set the clock during the install
       
   146 d-i clock-setup/ntp boolean true
       
   147 # NTP server to use. The default is almost always fine here.
       
   148 #d-i clock-setup/ntp-server string ntp.example.com
       
   149 
       
   150 ### Partitioning
       
   151 ## Partitioning example
       
   152 # If the system has free space you can choose to only partition that space.
       
   153 # This is only honoured if partman-auto/method (below) is not set.
       
   154 #d-i partman-auto/init_automatically_partition select biggest_free
       
   155 
       
   156 # Alternatively, you may specify a disk to partition. If the system has only
       
   157 # one disk the installer will default to using that, but otherwise the device
       
   158 # name must be given in traditional, non-devfs format (so e.g. /dev/hda or
       
   159 # /dev/sda, and not e.g. /dev/discs/disc0/disc).
       
   160 # For example, to use the first SCSI/SATA hard disk:
       
   161 #d-i partman-auto/disk string /dev/sda
       
   162 # In addition, you'll need to specify the method to use.
       
   163 # The presently available methods are:
       
   164 # - regular: use the usual partition types for your architecture
       
   165 # - lvm:     use LVM to partition the disk
       
   166 # - crypto:  use LVM within an encrypted partition
       
   167 d-i partman-auto/method string lvm
       
   168 
       
   169 # If one of the disks that are going to be automatically partitioned
       
   170 # contains an old LVM configuration, the user will normally receive a
       
   171 # warning. This can be preseeded away...
       
   172 d-i partman-lvm/device_remove_lvm boolean true
       
   173 # The same applies to pre-existing software RAID array:
       
   174 d-i partman-md/device_remove_md boolean true
       
   175 # And the same goes for the confirmation to write the lvm partitions.
       
   176 d-i partman-lvm/confirm boolean true
       
   177 d-i partman-lvm/confirm_nooverwrite boolean true
       
   178 
       
   179 # You can choose one of the three predefined partitioning recipes:
       
   180 # - atomic: all files in one partition
       
   181 # - home:   separate /home partition
       
   182 # - multi:  separate /home, /usr, /var, and /tmp partitions
       
   183 d-i partman-auto/choose_recipe select atomic
       
   184 
       
   185 # Or provide a recipe of your own...
       
   186 # If you have a way to get a recipe file into the d-i environment, you can
       
   187 # just point at it.
       
   188 #d-i partman-auto/expert_recipe_file string /hd-media/recipe
       
   189 
       
   190 # If not, you can put an entire recipe into the preconfiguration file in one
       
   191 # (logical) line. This example creates a small /boot partition, suitable
       
   192 # swap, and uses the rest of the space for the root partition:
       
   193 #d-i partman-auto/expert_recipe string                         \
       
   194 #      boot-root ::                                            \
       
   195 #              40 50 100 ext3                                  \
       
   196 #                      $primary{ } $bootable{ }                \
       
   197 #                      method{ format } format{ }              \
       
   198 #                      use_filesystem{ } filesystem{ ext3 }    \
       
   199 #                      mountpoint{ /boot }                     \
       
   200 #              .                                               \
       
   201 #              500 10000 1000000000 ext3                       \
       
   202 #                      method{ format } format{ }              \
       
   203 #                      use_filesystem{ } filesystem{ ext3 }    \
       
   204 #                      mountpoint{ / }                         \
       
   205 #              .                                               \
       
   206 #              64 512 300% linux-swap                          \
       
   207 #                      method{ swap } format{ }                \
       
   208 #              .
       
   209 
       
   210 # The full recipe format is documented in the file partman-auto-recipe.txt
       
   211 # included in the 'debian-installer' package or available from D-I source
       
   212 # repository. This also documents how to specify settings such as file
       
   213 # system labels, volume group names and which physical devices to include
       
   214 # in a volume group.
       
   215 
       
   216 # This makes partman automatically partition without confirmation, provided
       
   217 # that you told it what to do using one of the methods above.
       
   218 d-i partman-partitioning/confirm_write_new_label boolean true
       
   219 d-i partman/choose_partition select finish
       
   220 d-i partman/confirm boolean true
       
   221 d-i partman/confirm_nooverwrite boolean true
       
   222 
       
   223 ## Partitioning using RAID
       
   224 # The method should be set to "raid".
       
   225 #d-i partman-auto/method string raid
       
   226 # Specify the disks to be partitioned. They will all get the same layout,
       
   227 # so this will only work if the disks are the same size.
       
   228 #d-i partman-auto/disk string /dev/sda /dev/sdb
       
   229 
       
   230 # Next you need to specify the physical partitions that will be used. 
       
   231 #d-i partman-auto/expert_recipe string \
       
   232 #      multiraid ::                                         \
       
   233 #              1000 5000 4000 raid                          \
       
   234 #                      $primary{ } method{ raid }           \
       
   235 #              .                                            \
       
   236 #              64 512 300% raid                             \
       
   237 #                      method{ raid }                       \
       
   238 #              .                                            \
       
   239 #              500 10000 1000000000 raid                    \
       
   240 #                      method{ raid }                       \
       
   241 #              .
       
   242 
       
   243 # Last you need to specify how the previously defined partitions will be
       
   244 # used in the RAID setup. Remember to use the correct partition numbers
       
   245 # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
       
   246 # devices are separated using "#".
       
   247 # Parameters are:
       
   248 # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
       
   249 #          <devices> <sparedevices>
       
   250 
       
   251 #d-i partman-auto-raid/recipe string \
       
   252 #    1 2 0 ext3 /                    \
       
   253 #          /dev/sda1#/dev/sdb1       \
       
   254 #    .                               \
       
   255 #    1 2 0 swap -                    \
       
   256 #          /dev/sda5#/dev/sdb5       \
       
   257 #    .                               \
       
   258 #    0 2 0 ext3 /home                \
       
   259 #          /dev/sda6#/dev/sdb6       \
       
   260 #    .
       
   261 
       
   262 # For additional information see the file partman-auto-raid-recipe.txt
       
   263 # included in the 'debian-installer' package or available from D-I source
       
   264 # repository.
       
   265 
       
   266 # This makes partman automatically partition without confirmation.
       
   267 d-i partman-md/confirm boolean true
       
   268 d-i partman-partitioning/confirm_write_new_label boolean true
       
   269 d-i partman/choose_partition select finish
       
   270 d-i partman/confirm boolean true
       
   271 d-i partman/confirm_nooverwrite boolean true
       
   272 
       
   273 ## Controlling how partitions are mounted
       
   274 # The default is to mount by UUID, but you can also choose "traditional" to
       
   275 # use traditional device names, or "label" to try filesystem labels before
       
   276 # falling back to UUIDs.
       
   277 #d-i partman/mount_style select uuid
       
   278 
       
   279 ### Base system installation
       
   280 # Configure APT to not install recommended packages by default. Use of this
       
   281 # option can result in an incomplete system and should only be used by very
       
   282 # experienced users.
       
   283 #d-i base-installer/install-recommends boolean false
       
   284 
       
   285 # The kernel image (meta) package to be installed; "none" can be used if no
       
   286 # kernel is to be installed.
       
   287 #d-i base-installer/kernel/image string linux-image-486
       
   288 
       
   289 ### Apt setup
       
   290 # You can choose to install non-free and contrib software.
       
   291 #d-i apt-setup/non-free boolean true
       
   292 #d-i apt-setup/contrib boolean true
       
   293 # Uncomment this if you don't want to use a network mirror.
       
   294 #d-i apt-setup/use_mirror boolean false
       
   295 # Select which update services to use; define the mirrors to be used.
       
   296 # Values shown below are the normal defaults.
       
   297 #d-i apt-setup/services-select multiselect security, volatile
       
   298 #d-i apt-setup/security_host string security.debian.org
       
   299 #d-i apt-setup/volatile_host string volatile.debian.org
       
   300 
       
   301 # Additional repositories, local[0-9] available
       
   302 #d-i apt-setup/local0/repository string \
       
   303 #       http://local.server/debian stable main
       
   304 #d-i apt-setup/local0/comment string local server
       
   305 # Enable deb-src lines
       
   306 #d-i apt-setup/local0/source boolean true
       
   307 # URL to the public key of the local repository; you must provide a key or
       
   308 # apt will complain about the unauthenticated repository and so the
       
   309 # sources.list line will be left commented out
       
   310 #d-i apt-setup/local0/key string http://local.server/key
       
   311 
       
   312 # By default the installer requires that repositories be authenticated
       
   313 # using a known gpg key. This setting can be used to disable that
       
   314 # authentication. Warning: Insecure, not recommended.
       
   315 #d-i debian-installer/allow_unauthenticated boolean true
       
   316 
       
   317 ### Package selection
       
   318 #tasksel tasksel/first multiselect standard, web-server
       
   319 # If the desktop task is selected, install the kde and xfce desktops
       
   320 # instead of the default gnome desktop.
       
   321 #tasksel tasksel/desktop multiselect kde, xfce
       
   322 
       
   323 # Individual additional packages to install
       
   324 #d-i pkgsel/include string openssh-server build-essential
       
   325 # Whether to upgrade packages after debootstrap.
       
   326 # Allowed values: none, safe-upgrade, full-upgrade
       
   327 #d-i pkgsel/upgrade select none
       
   328 
       
   329 # Some versions of the installer can report back on what software you have
       
   330 # installed, and what software you use. The default is not to report back,
       
   331 # but sending reports helps the project determine what software is most
       
   332 # popular and include it on CDs.
       
   333 #popularity-contest popularity-contest/participate boolean false
       
   334 
       
   335 ### Finishing up the installation
       
   336 # During installations from serial console, the regular virtual consoles
       
   337 # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
       
   338 # line to prevent this.
       
   339 #d-i finish-install/keep-consoles boolean true
       
   340 
       
   341 # Avoid that last message about the install being complete.
       
   342 d-i finish-install/reboot_in_progress note
       
   343 
       
   344 # This will prevent the installer from ejecting the CD during the reboot,
       
   345 # which is useful in some situations.
       
   346 #d-i cdrom-detect/eject boolean false
       
   347 
       
   348 # This is how to make the installer shutdown when finished, but not
       
   349 # reboot into the installed system.
       
   350 #d-i debian-installer/exit/halt boolean true
       
   351 # This will power off the machine instead of just halting it.
       
   352 #d-i debian-installer/exit/poweroff boolean true
       
   353 
       
   354 ### Preseeding other packages
       
   355 # Depending on what software you choose to install, or if things go wrong
       
   356 # during the installation process, it's possible that other questions may
       
   357 # be asked. You can preseed those too, of course. To get a list of every
       
   358 # possible question that could be asked during an install, do an
       
   359 # installation, and then run these commands:
       
   360 #   debconf-get-selections --installer > file
       
   361 #   debconf-get-selections >> file
       
   362 
       
   363 
       
   364 #### Advanced options
       
   365 ### Running custom commands during the installation
       
   366 # d-i preseeding is inherently not secure. Nothing in the installer checks
       
   367 # for attempts at buffer overflows or other exploits of the values of a
       
   368 # preconfiguration file like this one. Only use preconfiguration files from
       
   369 # trusted locations! To drive that home, and because it's generally useful,
       
   370 # here's a way to run any shell command you'd like inside the installer,
       
   371 # automatically.
       
   372 
       
   373 # This first command is run as early as possible, just after
       
   374 # preseeding is read.
       
   375 #d-i preseed/early_command string anna-install some-udeb
       
   376 # This command is run immediately before the partitioner starts. It may be
       
   377 # useful to apply dynamic partitioner preseeding that depends on the state
       
   378 # of the disks (which may not be visible when preseed/early_command runs).
       
   379 #d-i partman/early_command \
       
   380 #       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
       
   381 # This command is run just before the install finishes, but when there is
       
   382 # still a usable /target directory. You can chroot to /target and use it
       
   383 # directly, or use the apt-install and in-target commands to easily install
       
   384 # packages and run commands in the target system.
       
   385 #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
       
   386