Created
December 17, 2013 19:19
-
-
Save Ichag/8010958 to your computer and use it in GitHub Desktop.
Debian 7.2 preseed.cfg with focus on a virtualbox development environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Options to set on the command line | |
d-i debian-installer/language string en | |
d-i debian-installer/country string US | |
d-i debian-installer/locale string en_GB.UTF-8 | |
# Optionally specify additional locales to be generated. | |
d-i localechooser/supported-locales multiselect en_US.UTF-8, de_DE.UTF-8 | |
# Keyboard selection. | |
# keymap is an alias for keyboard-configuration/xkb-keymap | |
d-i keymap select de | |
#d-i netcfg/get_hostname string dummy | |
d-i netcfg/get_hostname string unassigned-hostname | |
d-i netcfg/get_domain string unassigned-domain | |
# Continue without a default route | |
# Not working , specify a dummy in the DHCP | |
#d-i netcfg/no_default_route boolean | |
d-i time/zone string UTC | |
d-i clock-setup/utc-auto boolean true | |
d-i clock-setup/utc boolean true | |
#d-i kbd-chooser/method select American English | |
d-i netcfg/wireless_wep string | |
d-i base-installer/kernel/override-image string linux-server | |
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic | |
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive | |
d-i debconf debconf/frontend select Noninteractive | |
d-i pkgsel/install-language-support boolean false | |
tasksel tasksel/first multiselect ssh-server | |
#d-i partman-auto/method string regular | |
d-i partman-auto/method string lvm | |
#d-i partman-auto/purge_lvm_from_device boolean true | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-auto/choose_recipe select atomic | |
d-i partman/confirm_write_new_label boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883 | |
#Message: "write the changes to disk and configure lvm preseed" | |
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input | |
#preseed partman-lvm/confirm_nooverwrite boolean true | |
# Write the changes to disks and configure LVM? | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
d-i partman-auto-lvm/guided_size string max | |
# root pw is "vagrant" | |
d-i passwd/root-password password vagrant | |
d-i passwd/root-password-again password vagrant | |
## Default user, we can get away with a recipe to change this | |
# adapt user from travis to vagrant | |
d-i passwd/user-fullname string vagrant | |
d-i passwd/username string vagrant | |
d-i passwd/user-password password vagrant | |
d-i passwd/user-password-again password vagrant | |
d-i user-setup/encrypt-home boolean false | |
d-i user-setup/allow-password-weak boolean true | |
## minimum is ntp, sudo | |
# Individual additional packages to install | |
d-i pkgsel/include string ntp sudo | |
# Whether to upgrade packages after debootstrap. | |
# Allowed values: none, safe-upgrade, full-upgrade | |
d-i pkgsel/upgrade select full-upgrade | |
d-i grub-installer/only_debian boolean true | |
d-i grub-installer/with_other_os boolean true | |
d-i finish-install/reboot_in_progress note | |
#For the update | |
d-i pkgsel/update-policy select none | |
# debconf-get-selections --install | |
### Mirror settings | |
# If you select ftp, the mirror/country string does not need to be set. | |
#d-i mirror/protocol string ftp | |
d-i mirror/country string manual | |
# hostname is ftp, however we still use http protocol | |
d-i mirror/http/hostname string ftp2.de.debian.org | |
d-i mirror/http/directory string /debian | |
d-i mirror/http/proxy string | |
# adding user(s) into sudo, as found on: http://lackof.org/taggart/hacking/d-i_preseed/ | |
#d-i preseed/late_command string in-target update-alternatives --set editor /usr/bin/vim.tiny;echo "taggart ALL=(ALL) ALL">>/target/etc/sudoers;sync | |
d-i preseed/late_command string in-target update-alternatives --set editor /usr/bin/vim.tiny;echo "vagrant ALL=NOPASSWD:ALL">>/target/etc/sudoers.d/vagrant;sync | |
# dispable popcontest | |
popularity-contest popularity-contest/participate boolean false | |
# This first command is run as early as possible, just after | |
# preseeding is read. | |
# Prevent packaged version of VirtualBox Guest Additions being installed: | |
d-i preseed/early_command string sed -i \ | |
'/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \ | |
/usr/lib/pre-pkgsel.d/20install-hwpackages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment