Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Ubuntu Server 14.04 Preseed
- #
- # Usage:
- #
- # This Ubuntu Preseed file is meant to be used when installing Ubuntu
- # from the ISO. The following menus will require user input, everything
- # after will be an unattended install:
- #
- # * Select a language
- # * Select your location
- # * Configure the keyboard
- # * Configure the network
- #
- # References:
- #
- # https://help.ubuntu.com/14.04/installation-guide/example-preseed.txt
- # http://www.claudiokuenzler.com/blog/513/debian-ubuntu-preseed-create-two-volume-groups-same-disk
- #############
- #
- # Networking
- #
- #############
- # Network Configuration
- d-i netcfg/enable boolean true
- d-i netcfg/choose_interface select auto
- d-i netcfg/dhcp_failed note
- d-i netcfg/dhcp_options select Configure network manually
- # Default static
- d-i netcfg/get_ipaddress string 192.168.137.55
- d-i netcfg/get_netmask string 255.255.255.0
- d-i netcfg/get_gateway string 192.168.137.1
- d-i netcfg/get_nameservers string 4.2.2.2 4.2.2.1
- d-i netcfg/confirm_static boolean true
- d-i netcfg/hostname string obe
- #############
- #
- # Pre Install
- #
- #############
- # Command Line 1: This is necessary otherwise you will be prompted to umount /dev/sda. See Ubuntu bug #1347726.
- d-i preseed/early_command string umount /media || true;
- #############
- #
- # Localization
- #
- #############
- d-i debian-installer/locale string en_GB
- d-i debian-installer/country string GB
- d-i debian-installer/locale string en_GB.UTF-8
- d-i debian-installer/language string en
- #############
- #
- # Keyboard
- #
- #############
- # Disable automatic (interactive) keymap detection.
- d-i console-setup/ask_detect boolean false
- d-i console-setup/layoutcode string gb
- d-i console-setup/variantcode string
- d-i keyboard-configuration/layoutcode string gb
- #############
- #
- # Mirror
- #
- #############
- d-i mirror/http/mirror string gb.archive.ubuntu.com
- #############
- #
- # Clock and Time Zone
- #
- #############
- # Controls whether to use NTP to set the clock during the install
- d-i clock-setup/ntp boolean true
- d-i clock-setup/ntp-server string ntp.ubuntu.com
- # You may set this to any valid setting for $TZ; see the contents of
- # /usr/share/zoneinfo/ for valid values.
- d-i time/zone string Europe/London
- # Controls whether or not the hardware clock is set to UTC.
- d-i clock-setup/utc boolean true
- #############
- #
- # Partitioning
- #
- #############
- ## Partitioning example
- d-i partman/filter_mounted boolean false
- d-i partman/unmount_active boolean false
- d-i partman-auto/disk string /dev/sda
- d-i partman-auto/method string lvm
- d-i partman-lvm/device_remove_lvm boolean true
- d-i partman-lvm/device_remove_lvm_span boolean true
- d-i partman-auto/purge_lvm_from_device boolean true
- d-i partman-md/device_remove_md boolean true
- d-i partman-lvm/confirm boolean true
- d-i partman-lvm/confirm_nooverwrite boolean true
- # You can choose one of the three predefined partitioning recipes:
- # - atomic: all files in one partition
- # - home: separate /home partition
- # - multi: separate /home, /usr, /var, and /tmp partitions
- d-i partman-auto/choose_recipe select atomic
- # This makes partman automatically partition without confirmation, provided
- # that you told it what to do using one of the methods above.
- 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
- #############
- #
- # Packages
- #
- #############
- # Package selection
- tasksel tasksel/first multiselect openssh-server
- # Individual additional packages to install
- d-i pkgsel/include string unzip wget
- # Whether to upgrade packages after debootstrap.
- # Allowed values: none, safe-upgrade, full-upgrade
- d-i pkgsel/upgrade select safe-upgrade
- # Policy for applying updates. May be "none" (no automatic updates),
- # "unattended-upgrades" (install security updates automatically), or
- # "landscape" (manage system with Landscape).
- d-i pkgsel/update-policy select none
- # Some versions of the installer can report back on what software you have
- # installed, and what software you use. The default is not to report back,
- # but sending reports helps the project determine what software is most
- # popular and include it on CDs.
- popularity-contest popularity-contest/participate boolean false
- #############
- #
- # Users and Password
- #
- #############
- # The installer will warn about weak passwords. If you are sure you know
- # what you're doing and want to override it, uncomment this.
- d-i user-setup/allow-password-weak boolean true
- # Skip creation of a root account (normal user account will be able to
- # use sudo). The default is false; preseed this to true if you want to set
- # a root password.
- d-i passwd/root-login boolean false
- # Root password, either in clear text
- # d-i passwd/root-password password password
- # d-i passwd/root-password-again password password
- # Alternatively, to skip creation of a normal user account.
- d-i passwd/make-user boolean true
- # Mortal User
- d-i passwd/user-fullname string obe
- d-i passwd/username string obe
- d-i passwd/user-password password password
- d-i passwd/user-password-again password password
- d-i passwd/auto-login boolean false
- #############
- #
- # Bootloader
- #
- #############
- # 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/skip boolean false
- d-i grub-installer/bootdev string /dev/sda
- d-i grub-installer/only_debian boolean true
- d-i grub-installer/with_other_os boolean true
- #############
- #
- # Finish
- #
- #############
- # Reboot after the install is finished.
- finish-install finish-install/reboot_in_progress note
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement