|
| 1 | +#### Contents of the preconfiguration file (for wheezy) |
| 2 | +### Localization |
| 3 | +# Locale sets language and country. |
| 4 | +d-i debian-installer/locale string en_US |
| 5 | + |
| 6 | +# Keyboard selection. |
| 7 | +#d-i keymap select us |
| 8 | +d-i keyboard-configuration/xkb-keymap select us |
| 9 | + |
| 10 | +### Network configuration |
| 11 | +# netcfg will choose an interface that has link if possible. This makes it |
| 12 | +# skip displaying a list if there is more than one interface. |
| 13 | +d-i netcfg/choose_interface select auto |
| 14 | +d-i netcfg/get_domain string vagrantup.com |
| 15 | + |
| 16 | +### Mirror settings |
| 17 | +# If you select ftp, the mirror/country string does not need to be set. |
| 18 | +#d-i mirror/protocol string ftp |
| 19 | +d-i mirror/country string manual |
| 20 | +d-i mirror/http/hostname string http.us.debian.org |
| 21 | +d-i mirror/http/directory string /debian |
| 22 | +d-i mirror/http/proxy string |
| 23 | + |
| 24 | +# Suite to install. |
| 25 | +#d-i mirror/suite string testing |
| 26 | +# Suite to use for loading installer components (optional). |
| 27 | +#d-i mirror/udeb/suite string testing |
| 28 | + |
| 29 | +### Clock and time zone setup |
| 30 | +# Controls whether or not the hardware clock is set to UTC. |
| 31 | +d-i clock-setup/utc boolean true |
| 32 | + |
| 33 | +# You may set this to any valid setting for $TZ; see the contents of |
| 34 | +# /usr/share/zoneinfo/ for valid values. |
| 35 | +d-i time/zone string UTC |
| 36 | + |
| 37 | +# Controls whether to use NTP to set the clock during the install |
| 38 | +d-i clock-setup/ntp boolean true |
| 39 | + |
| 40 | +### Partitioning |
| 41 | +# If the system has free space you can choose to only partition that space. |
| 42 | +#d-i partman-auto/init_automatically_partition select biggest_free |
| 43 | + |
| 44 | +# Alternatively, you can specify a disk to partition. The device name must |
| 45 | +# be given in traditional non-devfs format. |
| 46 | +# Note: A disk must be specified, unless the system has only one disk. |
| 47 | +# For example, to use the first SCSI/SATA hard disk: |
| 48 | +#d-i partman-auto/disk string /dev/sda |
| 49 | +# In addition, you'll need to specify the method to use. |
| 50 | +# The presently available methods are: "regular", "lvm" and "crypto" |
| 51 | +d-i partman-auto/method string lvm |
| 52 | + |
| 53 | +# If one of the disks that are going to be automatically partitioned |
| 54 | +# contains an old LVM configuration, the user will normally receive a |
| 55 | +# warning. This can be preseeded away... |
| 56 | +d-i partman-lvm/device_remove_lvm boolean true |
| 57 | +# The same applies to pre-existing software RAID array: |
| 58 | +d-i partman-md/device_remove_md boolean true |
| 59 | + |
| 60 | +# And the same goes for the confirmation to write the lvm partitions. |
| 61 | +d-i partman-lvm/confirm boolean true |
| 62 | +d-i partman-lvm/confirm_nooverwrite boolean true |
| 63 | + |
| 64 | +d-i partman/choose_partition select finish |
| 65 | +d-i partman-auto-lvm/guided_size string max |
| 66 | + |
| 67 | +# You can choose one of the three predefined partitioning recipes: |
| 68 | +# - atomic: all files in one partition |
| 69 | +# - home: separate /home partition |
| 70 | +# - multi: separate /home, /usr, /var, and /tmp partitions |
| 71 | +d-i partman-auto/choose_recipe select atomic |
| 72 | +d-i partman/default_filesystem string ext4 |
| 73 | + |
| 74 | +#The preseed line that "selects finish" needs to be in a certain order in your preseed, the example-preseed does not follow this. |
| 75 | +#http://ubuntuforums.org/archive/index.php/t-1504045.html |
| 76 | + |
| 77 | +# This makes partman automatically partition without confirmation, provided |
| 78 | +# that you told it what to do using one of the methods above. |
| 79 | +d-i partman/confirm_write_new_label boolean true |
| 80 | +d-i partman/confirm boolean true |
| 81 | +d-i partman/confirm_nooverwrite boolean true |
| 82 | + |
| 83 | + |
| 84 | +### Base system installation |
| 85 | +# Select the initramfs generator used to generate the initrd for 2.6 kernels. |
| 86 | +#d-i base-installer/kernel/linux/initramfs-generators string yaird |
| 87 | + |
| 88 | +# The kernel image (meta) package to be installed; "none" can be used if no |
| 89 | +# kernel is to be installed. |
| 90 | +#d-i base-installer/kernel/image string linux-image-2.6-486 |
| 91 | + |
| 92 | +### Account setup |
| 93 | +# Skip creation of a root account (normal user account will be able to |
| 94 | +# use sudo). |
| 95 | +d-i passwd/root-login boolean false |
| 96 | +# Alternatively, to skip creation of a normal user account. |
| 97 | +#d-i passwd/make-user boolean false |
| 98 | + |
| 99 | +# Root password, either in clear text |
| 100 | +d-i passwd/root-password password vagrant |
| 101 | +d-i passwd/root-password-again password vagrant |
| 102 | +# or encrypted using an MD5 hash. |
| 103 | +#d-i passwd/root-password-crypted password [MD5 hash] |
| 104 | + |
| 105 | +# To create a normal user account. |
| 106 | +d-i passwd/user-fullname string Vagrant User |
| 107 | +d-i passwd/username string vagrant |
| 108 | +# Normal user's password, either in clear text |
| 109 | +d-i passwd/user-password password vagrant |
| 110 | +d-i passwd/user-password-again password vagrant |
| 111 | +# or encrypted using an MD5 hash. |
| 112 | +#d-i passwd/user-password-crypted password [MD5 hash] |
| 113 | +# Create the first user with the specified UID instead of the default. |
| 114 | +#d-i passwd/user-uid string 1010 |
| 115 | +d-i user-setup/encrypt-home boolean false |
| 116 | +d-i user-setup/allow-password-weak boolean true |
| 117 | + |
| 118 | +# The user account will be added to some standard initial groups. To |
| 119 | +# override that, use this. |
| 120 | +d-i passwd/user-default-groups string audio cdrom video admin |
| 121 | + |
| 122 | +### Apt setup |
| 123 | +# You can choose to install non-free and contrib software. |
| 124 | +#d-i apt-setup/non-free boolean true |
| 125 | +d-i apt-setup/contrib boolean true |
| 126 | +# Uncomment this if you don't want to use a network mirror. |
| 127 | +#d-i apt-setup/use_mirror boolean false |
| 128 | +# Select which update services to use; define the mirrors to be used. |
| 129 | +# Values shown below are the normal defaults. |
| 130 | +#d-i apt-setup/services-select multiselect security, volatile |
| 131 | +#d-i apt-setup/security_host string security.debian.org |
| 132 | +#d-i apt-setup/volatile_host string volatile.debian.org |
| 133 | + |
| 134 | + |
| 135 | +# By default the installer requires that repositories be authenticated |
| 136 | +# using a known gpg key. This setting can be used to disable that |
| 137 | +# authentication. Warning: Insecure, not recommended. |
| 138 | +#d-i debian-installer/allow_unauthenticated string true |
| 139 | + |
| 140 | +### Package selection |
| 141 | +tasksel tasksel/first multiselect standard |
| 142 | +# If the desktop task is selected, install the kde and xfce desktops |
| 143 | +# instead of the default gnome desktop. |
| 144 | +#tasksel tasksel/desktop multiselect kde, xfce |
| 145 | + |
| 146 | +# Individual additional packages to install |
| 147 | +d-i pkgsel/include string openssh-server virtualbox-guest-utils sudo git build-essential devscripts ccache cmake qtbase5-dev libqt5webkit5-dev qtdeclarative5-dev qtscript5-dev qtmultimedia5-dev |
| 148 | + |
| 149 | +# Whether to upgrade packages after debootstrap. |
| 150 | +# Allowed values: none, safe-upgrade, full-upgrade |
| 151 | +d-i pkgsel/upgrade select full-upgrade |
| 152 | + |
| 153 | +# Some versions of the installer can report back on what software you have |
| 154 | +# installed, and what software you use. The default is not to report back, |
| 155 | +# but sending reports helps the project determine what software is most |
| 156 | +# popular and include it on CDs. |
| 157 | +popularity-contest popularity-contest/participate boolean false |
| 158 | + |
| 159 | +### Boot loader installation |
| 160 | +# This is fairly safe to set, it makes grub install automatically to the MBR |
| 161 | +# if no other operating system is detected on the machine. |
| 162 | +d-i grub-installer/only_debian boolean true |
| 163 | + |
| 164 | +# This one makes grub-installer install to the MBR if it also finds some other |
| 165 | +# OS, which is less safe as it might not be able to boot that other OS. |
| 166 | +d-i grub-installer/with_other_os boolean true |
| 167 | + |
| 168 | +# GRUB install devices: |
| 169 | +grub-pc grub-pc/install_devices multiselect /dev/sda |
| 170 | +# Choices: Enter device manually, /dev/sda |
| 171 | +grub-installer grub-installer/choose_bootdev select /dev/sda |
| 172 | + |
| 173 | +### Finishing up the installation |
| 174 | +# During installations from serial console, the regular virtual consoles |
| 175 | +# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next |
| 176 | +# line to prevent this. |
| 177 | +#d-i finish-install/keep-consoles boolean true |
| 178 | + |
| 179 | +# Avoid that last message about the install being complete. |
| 180 | +d-i finish-install/reboot_in_progress note |
| 181 | + |
| 182 | +# This will prevent the installer from ejecting the CD during the reboot, |
| 183 | +# which is useful in some situations. |
| 184 | +#d-i cdrom-detect/eject boolean false |
| 185 | + |
| 186 | +# This is how to make the installer shutdown when finished, but not |
| 187 | +# reboot into the installed system. |
| 188 | +#d-i debian-installer/exit/halt boolean true |
| 189 | +# This will power off the machine instead of just halting it. |
| 190 | +#d-i debian-installer/exit/poweroff boolean true |
| 191 | + |
| 192 | +### Preseeding other packages |
| 193 | +# Depending on what software you choose to install, or if things go wrong |
| 194 | +# during the installation process, it's possible that other questions may |
| 195 | +# be asked. You can preseed those too, of course. To get a list of every |
| 196 | +# possible question that could be asked during an install, do an |
| 197 | +# installation, and then run these commands: |
| 198 | +# debconf-get-selections --installer > file |
| 199 | +# debconf-get-selections >> file |
| 200 | + |
| 201 | + |
| 202 | +#### Advanced options |
| 203 | +### Running custom commands during the installation |
| 204 | +# d-i preseeding is inherently not secure. Nothing in the installer checks |
| 205 | +# for attempts at buffer overflows or other exploits of the values of a |
| 206 | +# preconfiguration file like this one. Only use preconfiguration files from |
| 207 | +# trusted locations! To drive that home, and because it's generally useful, |
| 208 | +# here's a way to run any shell command you'd like inside the installer, |
| 209 | +# automatically. |
| 210 | + |
| 211 | +# This first command is run as early as possible, just after |
| 212 | +# preseeding is read. |
| 213 | +# Prevent packaged version of VirtualBox Guest Additions being installed: |
| 214 | +#d-i preseed/early_command string sed -i \ |
| 215 | +# '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \ |
| 216 | +# /usr/lib/pre-pkgsel.d/20install-hwpackages |
| 217 | + |
| 218 | +# This command is run just before the install finishes, but when there is |
| 219 | +# still a usable /target directory. You can chroot to /target and use it |
| 220 | +# directly, or use the apt-install and in-target commands to easily install |
| 221 | +# packages and run commands in the target system. |
0 commit comments