htsql / cogs.local / data / vm / ubuntu-preseed.cfg

# This is an answer file for the Ubuntu installer.
# See
# for the general documentation on preseeding.
# See
# for an example of a preseed file.

# Set the locale (noop, must be set as a boot parameter).
d-i debian-installer/locale string en_US

# Choose the keyboard configuration (noop, must be set as a boot parameter).
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us

# Set the hostname and the domain.
d-i netcfg/get_hostname string linux-vm
d-i netcfg/get_domain string

# The hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# Select the time zone (we might want to use UTC here).
d-i time/zone string America/Chicago

# Choose regular partitioning, no LVM or encryption.
d-i partman-auto/method string regular

# We need to provide a custom partitioning recipe because the Oracle server
# (and the client) requires a larger swap than provided by default.
# So we allocate 2G for the swap (twice as much as required by Oracle)
# and give the rest for the root filesystem.
# For general description of the recipe format, see
# partman-auto-recipe.txt in the debian-installer package.
d-i partman-auto/expert_recipe string   \
    fs-recipe :                         \
        1024 65536 65536 ext3           \
            $primary{ }                 \
            $bootable{ }                \
            method{ format }            \
            format{ }                   \
            use_filesystem{ }           \
            filesystem{ ext3 }          \
            mountpoint{ / }             \
        .                               \
        2048 2048 2048 linux-swap       \
            method{ swap }              \
            format{ }                   \

# Confirm the partitioning.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

# Enable and set the root password: root.
d-i passwd/root-login boolean true
d-i passwd/root-password password root
d-i passwd/root-password-again password root

# Do not create a regular user.
d-i passwd/make-user boolean false

# Do not warn about weak passwords.
d-i user-setup/allow-password-weak boolean true

# Select APT mirror and proxy settings.
d-i mirror/country string US
d-i mirror/http/mirror select
d-i mirror/http/proxy string

# Package selection: standard.
tasksel tasksel/first multiselect standard

# Additional packages to install.
d-i pkgsel/include string openssh-server build-essential

# Indicate how to upgrade packages after debootstrap.
d-i pkgsel/upgrade select safe-upgrade

# No automatic updates.
d-i pkgsel/update-policy select none

# Do not participate in the popularity contest.
popularity-contest popularity-contest/participate boolean false

# Install the boot loader to the MBR.
d-i grub-installer/only_debian boolean true

# Execute the post-installation script in the chrooted environment.
d-i preseed/late_command string         \
    cp /cdrom/ /target/;      \
    cp /cdrom/ /target/;    \
    in-target /;              \
    rm /target/ /target/

# Skip the reboot warning.
d-i finish-install/reboot_in_progress note

# Power off the machine after the installation is complete.
d-i debian-installer/exit/poweroff boolean true