这个年纪 發表於 2020-11-10 10:42:00

Debian Jessie Preseed自动化安装示例

<pre><code>#### Contents of the preconfiguration file (for jessie)
### Localization
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us

### Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string test-host
d-i netcfg/get_domain string test-host
d-i netcfg/get_nameservers string 202.96.128.86

### Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.cn.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

### Account setup
d-i passwd/root-password password &lt;md5 hash&gt;
d-i passwd/root-password-again password &lt;md5 hash&gt;
d-i passwd/user-fullname string Testuser
d-i passwd/username string testuser
d-i passwd/user-password password &lt;md5 hash&gt;
d-i passwd/user-password-again password &lt;md5 hash&gt;

### Clock and time zone setup
d-i clock-setup/utc boolean false
d-i time/zone string Asia/Shanghai

### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select atomic
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

### Apt setup
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean false
d-i apt-setup/use_mirror boolean false
d-i apt-setup/services-select multiselect main
d-i debian-installer/allow_unauthenticated boolean true

### Package selection
tasksel tasksel/first multiselect standard
d-i pkgsel/include string nano
d-i pkgsel/upgrade select none
d-i pkgsel/language-packs multiselect en, zh
d-i pkgsel/update-policy select none

### Boot loader installation
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string default

### Finishing up the installation
d-i finish-install/keep-consoles boolean true
d-i finish-install/reboot_in_progress note
</code></pre>


</div>
<div id="MySignature" role="contentinfo">
    <div id="AllanboltSignature">
    <div>作者:Varden</div>
    <div>出处:http://www.cnblogs.com/varden/</div>
    <div>本文内容如有雷同,请联系作者!</div>
    <div>本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。</div>
</div><br><br>
来源:https://www.cnblogs.com/varden/p/13952503.html
頁: [1]
查看完整版本: Debian Jessie Preseed自动化安装示例