Skip to content

Instantly share code, notes, and snippets.

@d-shimizu
Last active July 2, 2018 06:19
Show Gist options
  • Save d-shimizu/6780016e1fd31d998d6bc9a86920491a to your computer and use it in GitHub Desktop.
Save d-shimizu/6780016e1fd31d998d6bc9a86920491a to your computer and use it in GitHub Desktop.
### Localization
d-i debian-installer/locale string en_US
d-i console-keymaps-at/keymap select jp
d-i console-setup/ask_detect boolean false
# Keyboard selection.
d-i keyboard-configuration/layoutcode string jp
d-i keyboard-configuration/modelcode jp106
### Network configuration
## For DHCP
#d-i netcfg/choose_interface select auto
#d-i netcfg/disable_autoconfig boolean false
#d-i netcfg/get_domain string localdomain
#d-i netcfg/get_hostname string localhost
## For Static IP
d-i netcfg/use_autoconfig boolean false
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/choose_interface select eth0
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers string 192.168.1.X
d-i netcfg/get_ipaddress string 192.168.1.1
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.254
d-i netcfg/confirm_static boolean true
#d-i netcfg/get_hostname string XXXXXX
#d-i netcfg/get_domain string XXXX.example.com
#d-i netcfg/wireless_wep string
### Apt setup
d-i mirror/country string manual
#d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/hostname string ja.archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
### Clock and time zone setup
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Tokyo
d-i clock-setup/ntp boolean true
#d-i clock-setup/ntp-server string 0.pool.ntp.org
d-i clock-setup/ntp-server string ntp.nict.jp
### Partitioning
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/disk string /dev/sda
#d-i partman-auto/disk string /dev/vda
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-basicfilesystems/no_swap boolean false
d-i partman-auto-lvm/no_boot boolean true
d-i partman-auto-lvm/new_vg_name string main
d-i partman-auto/choose_recipe select root-boot
d-i partman-auto/expert_recipe string \
root-boot :: \
500 1000 1000000000 xfs \
$defaultignore{ } \
$lvmok{ } lv_name{ root } \
$primary{ } $bootable{ } method{ format } \
format{ } use_filesystem{ } filesystem{ xfs } \
mountpoint{ / } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish partitioning and write changes to disk
### Base system installation
d-i base-installer/install-recommends boolean false
d-i base-installer/kernel/image string linux-generic
d-i base-installer/kernel/image string linux-server
### Account setup
d-i passwd/root-login boolean true
d-i passwd/make-user boolean true
#d-i passwd/root-password password ********
#d-i passwd/root-password-again password ********
d-i passwd/root-password-crypted password $6$0GyadJRW$/oerHQ9CNPAJW2QpXQys7KIOxCK/5TXtO7NLh2H1G9ePK491Oksjk4pxmh4GtDAJOoljXgJ0kamecz0EQ6.m4.
d-i passwd/user-fullname string XXXXXXXX
d-i passwd/username string XXXXXXXX
#d-i passwd/user-password password ********
#d-i passwd/user-password-again password ********
d-i passwd/user-password-crypted password $6$0GyadJRW$/oerHQ9CNPAJW2QpXQys7KIOxCK/5TXtO7NLh2H1G9ePK491Oksjk4pxmh4GtDAJOoljXgJ0kamecz0EQ6.m4.
d-i user-setup/allow-password-weak boolean true
d-i passwd/user-default-groups string sudo
d-i user-setup/encrypt-home boolean false
### Package selection
tasksel tasksel/first multiselect none
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select none
d-i pkgsel/update-policy select none
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/updatedb boolean true
### Boot loader installation
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment