shenlan
deepin
2016-11-29 00:41 preseed.cfg 参考配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | ### Localization d-i debian-installer/locale string en_US d-i debian-installer/language string en d-i debian-installer/country string CN d-i debian-installer/locale string en_US.UTF-8 d-i localechooser/supported-locales multiselect en_US.UTF-8,zh_CN.UTF-8, zh_CN.GBK, zh_CN.GB18030, zh_CN GB2312 ### Keyboard selection. d-i keyboard-configuration/xkb-keymap select us ### Preseed Early d-i preseed/early_command string kill-all-dhcp; netcfg ### Network configuration d-i netcfg/choose_interface select auto d-i netcfg/hostname string deepin d-i hw-detect/load_firmware boolean true ### Mirror settings d-i mirror/country string manual d-i mirror/http/hostname string http_server_ip d-i mirror/http/directory string / d-i mirror/suite string kui d-i mirror/udeb/suite string kui d-i debian-installer/allow_unauthenticated string true ### Account setup 请将下文中 D44pin2016 替换为你定义的密码 d-i passwd/root-login boolean false d-i passwd/username string deepin d-i passwd/user-fullname string deepin d-i passwd/user-password password D44pin2016 d-i passwd/user-password-again password D44pin2016 ### Clock and time zone setup d-i clock-setup/utc boolean true d-i time/zone string Asia/Shanghai d-i clock-setup/ntp boolean false ### Partitioning d-i partman-auto/method string regular 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 d-i partman/mount_style select uuid ### Apt setup d-i apt-setup/non-free boolean true d-i apt-setup/contrib boolean true d-i apt-setup/local0/repository string http://http_server_ip/ kui main non-free contrib d-i apt-setup/security_host string base-config apt-setup/security-updates boolean false ### Package selection tasksel tasksel/first multiselect d-i pkgsel/include string openssh-server vim popularity-contest popularity-contest/participate boolean false ### GRUB 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 d-i debian-installer/exit/poweroff boolean true |
以上配置仅供参考,其中 http_server_ip 请修改为实际IP
优劣差异- 手动安装
- 优点:最通用的安装方式,安装过程可交互
- 缺点: 只能一台台的安装
- 自动安装
- U盘自动安装
- 优点:步骤简单,制作调试方便,不依赖网络
- 缺点:仅仅适用于小规模机器安装部署
- 网络自动安装
- 优点:大规模部署具有明显的效率优势
- 缺点:搭建步骤繁琐,严重依赖网络
- U盘自动安装
- 网络安装压缩包下载地址: http://dl.sndu.cn/netboot.tar.gz
- 深度服务器版本下载地址: http://dl.sndu.cn/deepin-server-15-general-amd64-DVD-20161028.iso
- 深度启动盘制作工具下载: https://www.deepin.org/download.html
- Debian社区 preseed参考: https://www.debian.org/releases/etch/amd64/apbs04.html.en
Reply Like 0 View the author


中文 



概述
自动安装
U盘自动安装
网络自动安装
配置HTTP服务器
2
3
4
5
6
7
8
9
10
11
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
autoindex on;
location / {
try_files $uri $uri/ =404;
}
}
搭建内网软件仓库
2
3
ln -sv kui kui-updates
ln -sv kui stable
编写 preseed.cfg 文件
- 可以通过命令 debconf-get-selections --installer > file 获取preseed参考配置
- 可以通过命令 debconf-set-selections -c preseed.cfg 检查preseed文件的语法错误
配置TFTP服务2
3
4
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
2
3
4
5
6
label Install-Deepin-Server
menu label ^Install-Deepin-Server
menu default
kernel debian-installer/amd64/linux
append vga=788 initrd=debian-installer/amd64/initrd.gz auto=true priority=critical url=http://http_server_ip/preseed.cfg --- quiet
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
max-lease-time 7200;
allow booting;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1; # our router
option domain-name-servers 192.168.1.1; # our router, again
filename "pxelinux.0"; # 指定引导文件名称
}
group {
next-server 192.168.1.108; # 指定 TFTP 服务器IP
host tftpclient {
filename "pxelinux.0"; # (this we will provide later)
}
}