### 本地化 # 中文 d-i debian-installer/locale string zh_CN.UTF-8 d-i keyboard-configuration/xkb-keymap select us d-i localechooser/supported-locales multiselect en_US.UTF-8, zh_CN.UTF-8 ### Account setup d-i passwd/root-login boolean true d-i passwd/make-user boolean false d-i passwd/root-password password 123456 d-i passwd/root-password-again password 123456 ### 时区 d-i clock-setup/utc boolean true d-i time/zone string Asia/Shanghai d-i clock-setup/ntp boolean true ### Package selection # 标准安装 tasksel tasksel/first multiselect standard d-i pkgsel/upgrade select none d-i pkgsel/language-packs multiselect en, zh d-i pkgsel/include string openssh-server d-i pkgsel/update-policy select none # 禁止在安装的时候弹出popularity popularity-contest popularity-contest/participate boolean false ### Boot loader installation d-i grub-installer/only_debian boolean true d-i grub-installer/bootdev string /dev/[sv]da # 安装完成之后不要弹出安装完成的界面,直接重启 d-i finish-install/reboot_in_progress note # 允许ssh服务使用root用户登录 d-i preseed/late_command string in-target sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config