Skip to content

Instantly share code, notes, and snippets.

@Adam-Ant
Created October 2, 2016 00:18
Show Gist options
  • Save Adam-Ant/ee56e9f96e5a2d565b4231bc25b91238 to your computer and use it in GitHub Desktop.
Save Adam-Ant/ee56e9f96e5a2d565b4231bc25b91238 to your computer and use it in GitHub Desktop.
####################################################################
# PRESEED - Created Sat Oct 1 16:28:22 2016
####################################################################
# Wiki: http://wiki.debian.org/DebianInstaller/Preseed
# Great work! Thanks for preseed and the d-i installer
####################################################################
# Installation Sources
####################################################################
# Where are we pulling bits from?
# Note: To use your own local repository, this is what you want
# to edit.
#
# It should look like this:
#d-i mirror/http/hostname string (IP Address of your local server)
#d-i mirror/http/directory string (HTTP Path to your Repository - like /natty )
d-i mirror/http/hostname string ftp.uk.debian.org
d-i mirror/http/directory string /debian/
d-i mirror/suite string
# Post install APT setup
d-i apt-setup/uri_type select d-i
d-i apt-setup/hostname string ftp.uk.debian.org
d-i apt-setup/directory string /debian/
d-i apt-setup/another boolean false
d-i apt-setup/security-updates boolean false
d-i finish-install/reboot_in_progress note
d-i prebaseconfig/reboot_in_progress note
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
####################################################################
# Networking
####################################################################
# Network Configuration
#d-i netcfg/get_hostname string DockerGames
#d-i netcfg/get_domain string localdomain
d-i netcfg/disable_dhcp boolean false
d-i mirror/http/proxy string
d-i netcfg/choose_interface select eth0
d-i netcfg/wireless_wep string
####################################################################
# Disk Partitioning/Boot loader
####################################################################
d-i partman-auto/disk string /dev/vda
d-i partman-auto/method string regular
# Disable swap
d-i partman-basicfilesystems/no_swap boolean false
d-i partman-auto/expert_recipe string myroot :: 1000 50 -1 ext4 \
$primary{ } $bootable{ } method{ format } \
format{ } use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman-auto/choose_recipe select myroot
# This makes partman automatically partition without confirmation.
d-i partman/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
# This one makes grub-installer install to the MBR even if finds some other OS
# too, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
####################################################################
# Localizations
####################################################################
# Install Time
d-i console-tools/archs string skip-config
d-i debian-installer/locale string en_US
d-i console-keymaps-at/keymap select us
d-i languagechooser/language-name-fb select English
d-i debian-installer/locale select en_US.UTF-8
# Timezone
d-i tzconfig/gmt boolean true
d-i tzconfig/choose_country_zone/Europe select London
d-i tzconfig/choose_country_zone_single boolean true
d-i time/zone select Europe/London
d-i clock-setup/utc boolean true
d-i kbd-chooser/method select American English
d-i mirror/country string manual
d-i clock-setup/ntp boolean true
####################################################################
# User Creation
####################################################################
# Root User
d-i passwd/root-login boolean false
# Mortal User
d-i passwd/user-fullname string Adam
d-i passwd/username string adam
d-i passwd/user-password-crypted passwd $1$BCcom7uU$owU5VwBZU.kFDLwAlv4hk1
####################################################################
# Software Selections
####################################################################
tasksel tasksel/first multiselect ssh-server standard
####################################################################
# Additional preseed entries (from data/debconf)
####################################################################
exim4-config exim4/no_config boolean true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment