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

# This is an answer file for the Debian 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.UTF-8

# Choose the keyboard configuration (noop, must be set as a boot parameter).
d-i console-keymaps-at/keymap select us

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

# 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

# Set the root password: root.
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

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

# Add an extra repository for Debian backports.
d-i apt-setup/local0/repository string squeeze-backports main

# 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

# 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.