Created
April 20, 2017 12:49
-
-
Save sxlderek/a73c8cdfa6739afd7fbaac1bbb0d576f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # search ubuntu preseed for more info | |
| #### Contents of the preconfiguration file (for &releasename;) | |
| ### Localization | |
| d-i debian-installer/locale string en_US.UTF-8 | |
| d-i debian-installer/language string en | |
| d-i debian-installer/country string HK | |
| # Keyboard selection | |
| d-i console-setup/ask_detect boolean false | |
| d-i console-setup/layoutcode string us | |
| ### Mirror settings | |
| d-i mirror/country string manual | |
| d-i mirror/http/proxy string http://acng.sxl.net:33142 | |
| #d-i mirror/http/hostname string repo.sxl.net | |
| d-i mirror/http/hostname string tw.archive.ubuntu.com | |
| d-i mirror/http/directory string /ubuntu/ | |
| ### Base system installation | |
| #force it to use server kernel | |
| #d-i base-installer/kernel/override-image string linux-server | |
| d-i base-installer/kernel/image string linux-server | |
| ### Account setup | |
| # preseed root password, do not create normal user | |
| d-i passwd/root-login boolean true | |
| d-i passwd/make-user boolean false | |
| d-i passwd/root-password password changeme | |
| d-i passwd/root-password-again password changeme | |
| d-i user-setup/allow-password-weak boolean true | |
| d-i user-setup/encrypt-home boolean false | |
| ### Clock and time zone setup | |
| d-i clock-setup/utc boolean true | |
| d-i time/zone string Asia/Hong_Kong | |
| d-i clock-setup/ntp boolean true | |
| ### Partition disk | |
| #d-i partman/mount_style select uuid | |
| #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-md/device_remove_md boolean true | |
| d-i partman-auto/purge_lvm_from_device boolean true | |
| d-i partman-auto-lvm/new_vg_name string vg00 | |
| d-i partman-lvm/confirm boolean true | |
| #if no confirm, the swap partition is not created | |
| d-i partman-lvm/confirm_nooverwrite boolean true | |
| d-i partman-auto-lvm/guided_size string max | |
| d-i partman-auto/choose_recipe select automic | |
| d-i partman/default_filesystem string ext4 | |
| 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 | |
| #d-i partman/confirm_write_changes_to_disks_and_configure_lvm boolean true | |
| ### Setup Repository | |
| d-i apt-setup/use_mirror boolean false | |
| d-i apt-setup/proposed boolean true | |
| d-i apt-setup/restricted boolean true | |
| d-i apt-setup/universe boolean true | |
| d-i apt-setup/backports boolean true | |
| ### Package selection | |
| # install only basic system and open-ssh server | |
| d-i pkgsel/language-packs multiselect en, zh | |
| tasksel tasksel/first multiselect standard | |
| d-i pkgsel/include string openssh-server vim-nox | |
| d-i grub-installer/only_debian boolean true | |
| d-i pkgsel/updatedb boolean false | |
| ### Finalize | |
| # don't ask me to reboot | |
| d-i finish-install/reboot_in_progress note | |
| ### allow root ssh password login | |
| d-i preseed/late_command string \ | |
| in-target sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment