Skip to content

Instantly share code, notes, and snippets.

Created May 15, 2013 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5588337 to your computer and use it in GitHub Desktop.
Save anonymous/5588337 to your computer and use it in GitHub Desktop.
auto.seed
####################################################################
# CSCE PRESEED - Created Thu Jan 22 14:18:36 2009
####################################################################
# 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?
d-i mirror/http/hostname string www.gtlib.gatech.edu
d-i mirror/http/directory string /pub/ubuntu/
#d-i mirror/suite string squeeze
#d-i mirror/udeb/suite string squeeze
#d-i mirror/udeb/components multiselect main, restricted, multiverse, universe
# Post install APT setup
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i apt-setup/backports boolean true
d-i apt-setup/use_mirror boolean true
#d-i apt-setup/uri_type select d-i
d-i apt-setup/hostname string www.gtlib.gatech.edu
d-i apt-setup/directory string /pub/ubuntu/
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/services-select multiselect security
d-i apt-setup/security_host string security.ubuntu.com
d-i apt-setup/security_path string /ubuntu
#d-i apt-setup/mirror/error select Change mirror
#d-i archive-copier/desktop-task string
#d-i archive-copier/ship-task string
#base-config apt-setup/security-updates boolean true
####################################################################
# Networking
####################################################################
# Network Configuration
#d-i netcfg/get_hostname string localhost
d-i netcfg/get_domain string xxxxx.xxxx.org
d-i netcfg/disable_dhcp boolean false
d-i mirror/http/proxy string
d-i netcfg/choose_interface select auto
#d-i netcfg/wireless_wep string
d-i netcfg/get_nameservers string xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
####################################################################
# Disk Partitioning/Boot loader
####################################################################
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
# This makes partman automatically partition without confirmation.
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i partman-auto/choose_recipe select atomic
# This is fairly safe to set, it makes grub install automatically to the MBR
# # if no other operating system is detected on the machine.
# d-i grub-installer/only_debian 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
d-i grub-installer/only_debian boolean true
d-i grub-installer/password-crypted password $1$PPyxxx$UffxxxxQovi.xxxxxxxxxx
####################################################################
# Localizations
####################################################################
# Install Time
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
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 clock-setup/utc boolean true
d-i time/zone string US/Eastern
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp1.xxxxxx.xxx
#d-i tzconfig/gmt boolean true
#d-i tzconfig/choose_country_zone/US select Central
#d-i tzconfig/choose_country_zone_single boolean true
#d-i time/zone select US/Central
#d-i clock-setup/utc boolean true
#d-i kbd-chooser/method select American English
#d-i mirror/country string enter information manually
# X11 config
xserver-xorg xserver-xorg/autodetect_monitor boolean true
xserver-xorg xserver-xorg/config/monitor/selection-method select medium
xserver-xorg xserver-xorg/config/monitor/mode-list select 1024x768 @ 60 Hz
#xserver-xorg xserver-xorg/config/display/modes multiselect 1024x768, 800x600
####################################################################
# User Creation
####################################################################
# Root User
d-i passwd/root-login boolean true
d-i passwd/root-password-crypted password $1$u/ye90$xxxxMwaFPHzxxxxxxxxxxx
# Mortal User
#d-i passwd/user-fullname string
#d-i passwd/username string adminuser
#set the password, generate MD5 hash with this command `echo "r00tme" | mkpasswd -s -H MD5`
#d-i passwd/user-password-crypted passwd $$$$$$$$$$$$$$$$$$$$$$$$$
# set a clear text password
#d-i passwd/user-password password
#d-i passwd/user-password-again password
#OR let the user enter the password at install time by setting `d-i passwd/allow-password-empty boolean false` and not including the next 3 lines
#OR don't create a normal user
d-i passwd/make-user boolean false
# make sure to comment out home directory encryption on Ubuntu 8.10 and earlier
d-i user-setup/encrypt-home boolean false
####################################################################
# Software Selections
####################################################################
tasksel tasksel/first multiselect ubuntu-desktop, print-server, openssh-server
# set up puppet
d-i pkgsel/include string puppet
d-i preseed/late_command string chroot /target; mount /proc; /usr/sbin/puppetd --server puppet.ctisl.gtri.org --waitforcert 60 --test
#d-i preseed/late_command string in-target sed -i '/127.0.1.1/ a xxx.xxx.xxx.xxx puppet.xxxxx.xxxx.org puppet' /etc/hosts; in-target sed -i 's/DAEMON_OPTS="-w 0"/DAEMON_OPTS="--server puppet.xxxxx.xxxx.org"/' /etc/init.d/puppet; in-target sed -i 's/exit 0/sleep 30/' /etc/rc.local; in-target sed -i '$a /etc/init.d/puppet start' /etc/rc.local; in-target sed -i '$a exit 0' /etc/rc.local
# Setup addional packages
d-i pkgsel/include string libnss-ldapd libpam-ldapd nss-updatedb libnss-db libpam-ccreds nslcd nscd vim git
d-i pkgsel/upgrade select full-upgrade
#d-i pkgsel/include string libpam-ldapd
#d-i pkgsel/include string nss-updatedb
#d-i pkgsel/include string libnss-db
#d-i pkgsel/include string libpam-ccreds
#d-i pkgsel/include string nslcd
#d-i pkgsel/include string nscd
#d-i pkgsel/include string vim
#d-i pkgsel/include string git
#d-i pkgsel/include string ubuntu-desktop
####################################################################
## Finnishing UP
#####################################################################
# This will prevent the installer from ejecting the CD during the reboot,
# # which is useful in some situations.
d-i cdrom-detect/eject boolean true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment