Skip to content

Instantly share code, notes, and snippets.

@debxp
Last active June 10, 2019 20:33
Show Gist options
  • Save debxp/36f994cf0d14ad0f2a966c08ab24e630 to your computer and use it in GitHub Desktop.
Save debxp/36f994cf0d14ad0f2a966c08ab24e630 to your computer and use it in GitHub Desktop.
preseed
# ------------------------------------------------------
# Important: these settings doesn't change
# the graphic installer!
# ------------------------------------------------------
# What it changes?
#
# - no domain asking (deafult to 'localhome')
# - no root password asking
# - default to sid main contrib non-free
# - no 2nd CD asking
# - no telemetry asking
# - no tasksel asking
# - install git netselect-apt lynx
# - generate fastest sources.list with netselect-apt
# ------------------------------------------------------
# Disable domain question?
d-i netcfg/get_domain string localhome
# Suite to install.
d-i mirror/suite string unstable
# Suite to use for loading installer components (optional).
d-i mirror/udeb/suite string unstable
# Skip creation of a root account (normal user use sudo).
d-i passwd/root-login boolean false
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# Mount style
d-i partman/mount_style select uuid
# Install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
# Disable mirror selection?
d-i apt-setup/use_mirror boolean false
# Disable asking for another CD or DVD
d-i apt-setup/cdrom/set-first boolean false
# Additional repositories, local[0-9] available
d-i apt-setup/local0/repository string \
http://deb.debian.org/debian unstable main contrib non-free
d-i apt-setup/local0/source boolean true
# Default selection (only standard)
tasksel tasksel/first multiselect standard
# Packages to include
d-i pkgsel/include string git netselect-apt lynx htop \
openssh-server openssh-client
# Disable popularity contest
popularity-contest popularity-contest/participate boolean false
# This command is run just before the install finishes.
# Select fastest sid mirror, remove comments and replace sources.list.
d-i preseed/late_command string \
in-target netselect-apt -s -n sid -o /etc/apt/sources.list-tmp; \
cd /target/etc/apt/; \
grep -o '^[^#]*' sources.list-tmp > sources.list; \
rm sources.list-tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment