无人值守离线 Edubuntu 14.04 安装

Har*_*rel 6 offline preseed edubuntu kickstart system-installation

我正在寻找一种使用 Edubuntu 14.04 桌面离线执行此操作的方法。对于大规模部署,它会安装得更快更好。似乎与某些指南相反,不再需要 kickstart。这些资源让我非常接近。

我已经在 Edubuntu ISO 和以下文件方面取得了很大进展。

isolinux/isolinux.cfg

# DI 配置版本 2.0
包括 menu.cfg
默认 vesamenu.c32
提示 0
超时 30
ui gfxboot 引导标志

isolinux/txt.cfg

默认无人值守-EBA-安装
标签无人值守-EBA-安装
  菜单标签 ^为 EBA 无人值守安装
  内核/casper/vmlinuz.efi
  append file=/cdrom/preseed/EBA.seed keyboard-configuration/layoutcode=us 和 console-setup/ask_detect=false boot=casper automatic-ubiquity noprompt initrd=/casper/initrd.lz --
标签直播
  菜单标签 ^ 在不安装的情况下尝试 Edubuntu
  内核/casper/vmlinuz.efi
  附加文件=/cdrom/preseed/edubuntu.seed boot=casper initrd=/casper/initrd.lz 安静的飞溅——
标签现场安装
  菜单标签 ^安装 Edubuntu
  内核/casper/vmlinuz.efi
  附加文件=/cdrom/preseed/edubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.lz 安静的飞溅——
标签检查
  菜单标签 ^检查光盘是否有缺陷
  内核/casper/vmlinuz.efi
  附加 boot=casper 完整性检查 initrd=/casper/initrd.lz 安静的飞溅 --
标签记忆测试
  菜单标签 Test ^memory
  内核/安装/mt86plus
标签高清
  菜单标签 ^从第一个硬盘启动
  本地引导 0x80

预种子/EBA.seed

#### Kevin McCormack 为 Edubuntu 14.04 编写的预配置文件的内容
### 本地化
# 仅预置区域设置语言、国家和区域设置。
di debian-installer/locale string en_US

# 键盘选择
# 禁用自动(交互式)键盘映射检测。
di console-setup/ask_detect boolean false
di 键盘配置/xkb-keymap 选择我们
#di 控制台设置/布局代码字符串我们
# di 键盘配置/切换选择 无切换
#di 键盘配置键盘配置/布局代码字符串我们
#di 键盘配置键盘配置/布局选择英语(美国)
#di 键盘配置键盘配置/变体选择英语(美国)
#di 键盘配置键盘配置/xkb-keymap 选择我们

###网络配置
# 完全禁用网络配置。这对 cdrom 很有用
# 安装在有网络问题的非联网设备上,
# 警告和长时间超时很麻烦。
di netcfg/启用布尔值 false

# netcfg 将尽可能选择具有链接的接口。这使它
# 如果有多个界面,则跳过显示列表。
di netcfg/choose_interface 选择自动

# 选择一个特定的接口:
#di netcfg/choose_interface 选择 eth1

# 设置不同的链路检测超时时间(默认为 3 秒)。
# 值被解释为秒。
#di netcfg/link_wait_timeout 字符串 10

# 如果你的 dhcp 服务器很慢并且安装程序超时等待
#它,这可能有用。
#di netcfg/dhcp_timeout 字符串 60
#di netcfg/dhcpv6_timeout 字符串 60

# 如果您更喜欢手动配置网络,请取消注释此行并
# 下面是静态网络配置。
#di netcfg/disable_autoconfig boolean true

# 如果您希望预配置文件在具有 和 的系统上工作
# 没有 dhcp 服务器,取消注释这些行和静态网络
# 配置如下。
#di netcfg/dhcp_failed 注意
#di netcfg/dhcp_options 选择手动配置网络

# 静态网络配置。
#
# IPv4 示例
#di netcfg/get_ipaddress 字符串 192.168.1.42
#di netcfg/get_netmask 字符串 255.255.255.0
#di netcfg/get_gateway 字符串 192.168.1.1
#di netcfg/get_nameservers 字符串 192.168.1.1
#di netcfg/confirm_static boolean true
#
# IPv6 示例
#di netcfg/get_ipaddress 字符串 fc00::2
#di netcfg/get_netmask 字符串 ffff:ffff:ffff:ffff::
#di netcfg/get_gateway 字符串 fc00::1
#di netcfg/get_nameservers 字符串 fc00::1
#di netcfg/confirm_static boolean true

# 从 dhcp 分配的任何主机名和域名优先于
# 此处设置的值。但是,设置值仍然可以防止出现问题
# 从被显示,即使值来自 dhcp。
di netcfg/get_hostname string unassigned-hostname
#di netcfg/get_hostname string "$(cat /sys/class/dmi/id/chassis_asset_tag)"
#di netcfg/get_hostname 字符串 $(cat /sys/class/dmi/id/product_name)
di netcfg/get_domain string unassigned-domain

# 如果你想强制一个主机名,不管是什么 DHCP
# 服务器返回或 IP 的反向 DNS 条目是什么,取消注释
# 并调整以下行。
#di netcfg/hostname 字符串 somehost

# 禁用那个烦人的 WEP 密钥对话框。
di netcfg/wireless_wep 字符串
# 一些 ISP 用作各种密码的古怪 dhcp 主机名。
#di netcfg/dhcp_hostname 字符串萝卜

# 如果网络或其他硬件需要非免费固件,您可以
# 将安装程序配置为始终尝试加载它,而不提示。或者
# 更改为 false 以禁用询问。
#di hw-detect/load_firmware boolean true

### 网络控制台
# 如果您想使用网络控制台,请使用以下设置
# 用于通过 SSH 进行远程安装的组件。这只有在你
# 打算手动执行安装的其余部分。
#di anna/choose_modules 字符串网络控制台
#di 网络控制台/authorized_keys_url 字符串 http://10.0.0.1/openssh-key
#di 网络控制台/密码 密码 r00tme
#di network-console/password-again 密码 r00tme

###镜像设置
# 如果选择ftp,镜像/国家字符串不需要设置。
#di 镜像/协议字符串 ftp
#di 镜像/国家字符串手册
#di mirror/http/hostname string http.us.debian.org
#di mirror/http/directory string /debian
#di 镜像/http/代理字符串

# 安装套件。
#di 镜像/套件字符串测试
# 用于加载安装程序组件的套件(可选)。
#di mirror/udeb/suite 字符串测试

###账户设置
# 跳过创建 root 帐户(普通用户帐户就可以
# 使用 sudo)。
#di passwd/root-login boolean false
# 或者,跳过创建普通用户帐户。
#di passwd/make-user boolean false

# Root 密码,可以是明文
#di passwd/root-password 密码 r00tme
#di passwd/root-password-again 密码 r00tme
# 或使用 MD5 哈希加密。
#di passwd/root-password-crypted 密码 [MD5 hash]

# 创建一个普通用户帐户。
di passwd/user-fullname string EBA Tech
di passwd/用户名字符串 eba
# 普通用户的密码,可以是明文
#di passwd/user-password 密码不安全
#di passwd/user-password-again 密码不安全
# 或使用 MD5 哈希加密。
di passwd/user-password-crypted password $1$jofdV3Qt$MhQLCV8ollmdpIazbibYZ/
# 使用指定的 UID 而不是默认创建第一个用户。
#di passwd/user-uid 字符串 1010

# 用户帐户将被添加到一些标准的初始组中。到
# 覆盖它,使用它。
#di passwd/user-default-groups string 音频 cdrom 视频

### 时钟和时区设置
# 控制硬件时钟是否设置为UTC。
di clock-setup/utc boolean true

# 您可以将其设置为 $TZ 的任何有效设置;看内容
# /usr/share/zoneinfo/ 用于有效值。
di 时区字符串 美国/东部

# 控制在安装过程中是否使用NTP设置时钟
di 时钟设置/ntp boolean true
# 要使用的 NTP 服务器。这里的默认值几乎总是好的。
#di 时钟设置/ntp-server 字符串 ntp.example.com

### 分区
## 分区示例
# 如果系统有可用空间,您可以选择仅对该空间进行分区。
# 这仅在未设置 partman-auto/method(如下)时有效。
#di partman-auto/init_automatically_partition 选择最大的_空闲

# 或者,您可以指定要分区的磁盘。如果系统只有
# 安装程序将默认使用一张磁盘,否则设备
# 名称必须以传统的非 devfs 格式给出(例如 /dev/sda
# 而不是例如 /dev/discs/disc0/disc)。
# 例如,要使用第一个 SCSI/SATA 硬盘:
di partman-auto/磁盘字符串/dev/sda
# 此外,您需要指定要使用的方法。
# 目前可用的方法有:
# - 常规:为您的架构使用通常的分区类型
# - lvm:使用LVM对磁盘进行分区
# - 加密:在加密分区内使用 LVM
di partman-auto/方法字符串 lvm

# 如果要自动分区的磁盘之一
# 包含旧的 LVM 配置,用户通常会收到一个
# 警告。这可以预先设定...
di partman-lvm/device_remove_lvm boolean true
# 这同样适用于预先存在的软件 RAID 阵列:
di partman-md/device_remove_md boolean true
# 写入lvm分区的确认也是如此。
di partman-lvm/confirm boolean true
di partman-lvm/confirm_nooverwrite boolean true

# 您可以选择三种预定义的分区方法之一:
# - atomic:一个分区中的所有文件
# - home: 单独的 /home 分区
# - multi: 分隔 /home、/var 和 /tmp 分区
di partman-auto/choose_recipe 选择原子

# 或提供您自己的食谱...
# 如果你有办法把recipe文件放到di环境中,你可以
# 指向它。
#di partman-auto/expert_recipe_file 字符串/hd-media/recipe

# 如果没有,您可以将整个配方一次性放入预配置文件中
#(逻辑)行。这个例子创建了一个小的 /boot 分区,适合
# 交换,并将剩余空间用于根分区:
#di partman-auto/expert_recipe 字符串 \
# 引导root :: \
# 40 50 100 ext3 \
# $primary{ } $bootable{ } \
#方法{格式}格式{}\
# use_filesystem{ } 文件系统{ ext3 } \
# 挂载点{ /boot } \
# . \
# 500 10000 1000000000 ext3 \
#方法{格式}格式{}\
# use_filesystem{ } 文件系统{ ext3 } \
# 挂载点{ / } \
# . \
# 64 512 300% linux-swap \
#方法{交换}格式{}\
# .

# 完整的配方格式记录在文件 partman-auto-recipe.txt 中
# 包含在 'debian-installer' 包中或可从 DI 源获得
# 存储库。这也记录了如何指定设置,如文件
# 系统标签、卷组名称以及要包含的物理设备
# 在卷组中。

# 这会让partman自动分区,无需确认,提供
# 您告诉它使用上述方法之一做什么。
di partman-partitioning/confirm_write_new_label boolean true
di partman/choose_partition 选择完成
di partman/confirm boolean true
di partman/confirm_nooverwrite boolean true


## 控制分区的挂载方式
# 默认是通过UUID挂载,但是你也可以选择“traditional”来挂载
# 之前使用传统的设备名称或“标签”来尝试文件系统标签
# 回到 UUID。
#di partman/mount_style 选择 uuid

###基础系统安装
# 配置APT默认不安装推荐包。使用这个
# 选项可能导致系统不完整,只能由非常
# 有经验的用户。
#di base-installer/install-recommends boolean false

# 要安装的内核映像(元)包;如果没有,可以使用“无”
# 内核将被安装。
#di base-installer/kernel/image string linux-image-586




### Apt 设置
# 可以选择安装受限和宇宙软件,或者安装
# 来自 backports 存储库的软件。
di apt-setup/restricted boolean true
di apt-setup/universe boolean true
#di apt-setup/backports boolean true
# 如果您不想使用网络镜像,请取消注释。
#di apt-setup/use_mirror boolean false
# 选择要使用的更新服务;定义要使用的镜像。
# 下面显示的值是正常的默认值。
#di apt-setup/services-select 多选安全
#di apt-setup/security_host 字符串 security.ubuntu.com
#di apt-setup/security_path 字符串 /ubuntu

# 其他存储库,本地 [0-9] 可用
#di apt-setup/local0/repository 字符串 \
# http://local.server/ubuntu &releasename; 主要的
#di apt-setup/local0/comment string 本地服务器
# 启用 deb-src 行
#di apt-setup/local0/source boolean true
# 本地仓库公钥的 URL;您必须提供钥匙或
# apt 会抱怨未经身份验证的存储库,因此
# sources.list 行将被注释掉
#di apt-setup/local0/key 字符串 http://local.server/key

# 默认情况下,安装程序要求对存储库进行身份验证
# 使用已知的 gpg 密钥。此设置可用于禁用
# 验证。警告:不安全,不推荐。
#di debian-installer/allow_unauthenticated string true

###包选择
tasksel tasksel/第一个多选 ubuntu-desktop ubuntu-edu-secondary
tasksel tasksel/第一次看到错误


# 要安装的单独附加包
di pkgsel/include 字符串 openssh-server
# 应用更新的策略。可能是“无”(没有自动更新),
# “无人值守升级”(自动安装安全更新),或
# "landscape"(使用景观管理系统)。
di pkgsel/update-policy 选择无人值守升级
# 启用 extras.ubuntu.com。
di apt-setup/extras boolean true

# 安装程序的某些版本可以报告您拥有的软件
# 已安装,以及您使用的软件。默认是不回电,
# 但是发送报告可以帮助项目确定最适合的软件
# 流行并将其包含在 CD 中。
#popularity-contest 流行性竞赛/参与布尔假

###引导加载程序安装
# Grub 是默认的引导加载程序(适用于 x86)。如果你想安装 lilo
# 相反,取消注释:
#di grub-installer/skip boolean true
# 要也跳过安装 lilo,并且不安装引导加载程序,请取消注释
# 也:
#di lilo-installer/skip boolean true


# 这个设置相当安全,它使 grub 自动安装到 MBR
# 如果在机器上没有检测到其他操作系统。
di grub-installer/only_debian boolean true

# 如果它也找到其他一些
# 操作系统,这不太安全,因为它可能无法启动其他操作系统。
di grub-installer/with_other_os boolean true

# 由于潜在的 USB 记忆棒,MBR 的位置不能
# 一般确定是安全的,所以需要指定:
di grub-installer/bootdev 字符串 /dev/sda
# 要安装到第一个设备(假设它不是 U 盘):
#di grub-installer/bootdev 字符串默认值

# 或者,如果你想安装到 mbr 以外的位置,
# 取消注释并编辑这些行:
#di grub-installer/only_debian boolean false
#di grub-installer/with_other_os boolean false
#di grub-installer/bootdev 字符串 (hd0,1)
# 将 grub 安装到多个磁盘:
#di grub-installer/bootdev 字符串 (hd0,1) (hd1,1) (hd2,1)

# grub 的可选密码,可以是明文
#di grub-installer/密码 密码 r00tme
#di grub-installer/password-again 密码 r00tme
# 或使用 MD5 哈希加密,请参阅 grub-md5-crypt(8)。
#di grub-installer/password-crypted 密码 [MD5 hash]

# 使用以下选项为系统添加额外的引导参数
# 已安装的系统(如果引导加载程序安装程序支持)。
# 注意:传递给安装程序的选项将自动添加。
#di debian-installer/add-kernel-opts string nousb

###完成安装
# 在从串行控制台安装期间,常规虚拟控制台
# (VT1-VT6) 通常在 /etc/inittab 中被禁用。取消注释下一个
# 行来防止这种情况。
#di finish-install/keep-consoles boolean true

# 避免关于安装完成的最后一条消息。
di finish-install/reboot_in_progress 注意

# 这将防止安装程序在重新启动期间弹出 CD,
# 这在某些情况下很有用。
#di cdrom-detect/eject boolean false

# 这是如何使安装程序在完成后关闭,但不是
# 重新启动到已安装的系统。
#di debian-installer/exit/halt boolean true
# 这将关闭机器而不是停止它。
#di debian-installer/exit/poweroff boolean true

### 预置其他包
# 取决于您选择安装的软件,或者是否出现问题
# 在安装过程中,可能会出现其他问题
#被问到。当然,你也可以预先设定这些。获取每个列表
# 可能在安装过​​程中被问到的问题,做一个
# 安装,然后运行这些命令:
# debconf-get-selections --installer > 文件
# debconf-get-selections >> 文件



### 无处不在的选项
ubiquity ubiquity/summary string 空
# 自动重启,在内核命令行添加'noprompt'
ubiquity ubiquity/use_nonfree boolean true
ubiquity ubiquity/reboot boolean true
#ubiquity languagechooser/language-name 选择英文
#ubiquity countrychooser/候选名单选择美国
无处不在的 localechooser/supported-locales en_US.UTF-8
无处不在的 console-keymaps-at/keymap 选择我们
无处不在/edubuntu-addon_fallback_install booolean false
无处不在/edubuntu-addon_ltsp_install booolean false
无处不在/edubuntu-addon_ltsp_interface 选择 eth0
ubiquity ubiquity/install/generate-blacklist multiselect ubuntu-edu-preschool ubuntu-edu-primary ubuntu-edu-tertiary

#### 高级选项
### 在安装过程中运行自定义命令
# di preseeding 本质上是不安全的。安装程序中没有任何检查
# 用于尝试缓冲区溢出或其他对 a 值的利用
# 像这样的预配置文件。仅使用来自的预配置文件
# 受信任的位置!开车回家 因为它通常很有用
# 这是一种在安装程序中运行任何你想要的 shell 命令的方法,
# 自动地。

# 第一个命令尽可能早地运行,紧随其后
# 预置已读取。
#di preseed/early_command 字符串 anna-install some-udeb
# 此命令在分区程序启动之前立即运行。它可能是
# 用于应用依赖于状态的动态分区器预置
# 磁盘(在 preseed/early_command 运行时可能不可见)。
#di partman/early_command \
# string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
# 这个命令在安装完成之前运行,但是当安装完成时
# 仍然是一个可用的 /target 目录。您可以 chroot 到 /target 并使用它
# 直接安装,或者使用apt-install和in-target命令轻松安装
# 在目标系统中打包并运行命令。
#di preseed/late_command 字符串 apt-install zsh; 目标内 chsh -s /bin/zsh
di preseed/late_command 字符串 apt-install openssh-server

我如何回答 gnome 回退、LTSP 和已安装教育包的 Edubuntu 安装选项?此外,还要求键盘布局(已在更新的 isolinux/txt.cfg 中修复)。

不会安装附加包 openssh-server。更新:它现在与ubiquity ubiquity/success_command string in-target apt-get -y install openssh-server;

我还想根据资产标签设置主机名,例如

di netcfg/get_hostname 字符串 $(cat /sys/class/dmi/id/chassis_asset_tag)

更新:我能够在之后使用以下命令设置主机名 ubiquity ubiquity/success_command string

if [ "$(cat /sys/class/dmi/id/chassis_asset_tag)" != ""]; 然后 \
    目标主机名 $(cat /sys/class/dmi/id/chassis_asset_tag) ;\
    目标内 sed -i "1s/.*/$(cat /sys/class/dmi/id/chassis_asset_tag)/" /etc/hostname ;\
    目标内 sed -i "2s/.*/127.0.1.1\t$(cat /sys/class/dmi/id/chassis_asset_tag)/" /etc/hosts ;\
别的 \
    目标内主机名 $(cat /sys/class/dmi/id/product_name) ;\
    目标内 sed -i "1s/.*/$(cat /sys/class/dmi/id/product_name)/" /etc/hostname ;\
    目标内 sed -i "2s/.*/127.0.1.1\t$(cat /sys/class/dmi/id/product_name)/" /etc/hosts ;\
fi;

更新:我可以删除软件包,ubiquity ubiquity/success_command string in-target apt-get -y purge unity-scope-yahoostock但这似乎效率低下,因为它在安装后立即删除软件包。有谁知道排除包裹的方法?Debiand-i pkgsel/exclude string unity-scope-yahoostock似乎不适用于 Ubiquity。

Har*_*rel 3

除了预先解决 Edubuntu 特定问题之外,我能够解决所有问题,因此我将采用具有以下自定义功能的 Ubuntu vanilla 安装。我将安装 Edubuntu 软件包并使用 bash 脚本设置更多内容,这些脚本将通过 SSH 运行。

  • keyboard-configuration/layoutcode=us and console-setup/ask_detect=false键盘布局通过启动参数设置
  • 软件包被删除ubiquity ubiquity/success_command string in-target apt-get -y purge package
  • 软件包安装有ubiquity ubiquity/success_command string in-target apt-get -y install openssh-server;
  • 之后我能够使用命令设置主机名ubiquity ubiquity/success_command string(请参阅下面的 EBA.seed)

isolinux/isolinux.cfg

# DI 配置版本 2.0
包含菜单.cfg
默认 vesamenu.c32
提示0
超时50
ui gfxboot 引导标志

isolinux/txt.cfg

默认无人值守 EBA 安装
标签无人值守-EBA-安装
  菜单标签 ^为 EBA 无人值守安装
  内核/casper/vmlinuz.efi
  附加文件=/cdrom/preseed/EBA.seed 键盘配置/layoutcode=us 和 console-setup/ask_detect=false boot=casperautomatic-ubiquity noprompt initrd=/casper/initrd.lz --
标签直播
  菜单标签 ^尝试 Ubuntu,无需安装
  内核/casper/vmlinuz.efi
  附加文件=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz 安静的启动 --
标签实时安装
  菜单标签 ^安装 Ubuntu
  内核/casper/vmlinuz.efi
  附加文件=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.lz 安静启动 --
标签检查
  菜单标签 ^检查光盘是否有缺陷
  内核/casper/vmlinuz.efi
  附加 boot=casper 完整性检查 initrd=/casper/initrd.lz 安静启动 --
标签内存测试
  菜单标签测试^内存
  内核/安装/mt86plus
标签高清
  菜单标签 ^从第一个硬盘启动
  本地启动 0x80

预种子/EBA.seed

#### EBA 自定义预置
### 凯文
### Ubuntu/Edubuntu 14.04
#################################################### ##################################



### 一般的
##################

# 预置空以避免显示摘要页面
普遍性普遍性/摘要字符串为空
# 自动重启,在内核命令行中添加“noprompt”
普遍性 普遍性/重启 boolean true



### 本地化
####################
# 仅预置语言环境设置语言、国家/地区和语言环境。
debian-installer/locale 字符串 en_US

# 键盘选择
# 禁用自动(交互式)键盘映射检测。
di 控制台设置/ask_detect 布尔值 false
di 键盘配置/xkb-keymap 选择我们

普遍存在的语言选择器/语言名称选择英语
无处不在的国家/地区选择者/入围名单选择美国
普遍存在的 localechooser/supported-locales en_US.UTF-8
无处不在的 console-keymaps-at/keymap 选择我们


### 网络配置
#############################
# 完全禁用网络配置。这对于 cdrom 很有用
# 在出现网络问题的非联网设备上安装,
# 警告和长时间超时很麻烦。
di netcfg/启用布尔值 false

# 如果可能,netcfg 将选择有链路的接口。这使得
# 如果有多个接口,则跳过显示列表。
di netcfg/choose_interface 选择自动

# 禁用那个烦人的 WEP 密钥对话框。
#di netcfg/wireless_wep 字符串
# 一些 ISP 用作密码的古怪 dhcp 主机名。
#di netcfg/dhcp_hostname 串萝卜

# 如果网络或其他硬件需要非免费固件,您可以
# 将安装程序配置为始终尝试加载它,而不进行提示。或者
# 更改为 false 以禁用询问。
di 硬件检测/load_firmware 布尔 true

### 镜像设置
# 如果选择ftp,则无需设置镜像/国家字符串。
#di 镜像/协议字符串 ftp
#di镜像/国弦手册
#di 镜像/http/主机名字符串 http.us.debian.org
#di镜像/http/目录字符串/debian
di 镜像/http/代理字符串 http://proxy:8002



### 账户设置
####################

# 创建一个普通用户帐户。
di passwd/用户全名字符串 EBA Tech
di 密码/用户名字符串 eba
di passwd/用户密码加密的密码 ****

### 时钟和时区设置
# 控制硬件时钟是否设置为 UTC。
di 时钟设置/UTC 布尔值 true

# 您可以将其设置为 $TZ 的任何有效设置;看到的内容
# /usr/share/zoneinfo/ 获取有效值。
di 时/区字符串 美国/东部

# 控制安装过程中是否使用NTP设置时钟
di 时钟设置/ntp 布尔 true
# 要使用的 NTP 服务器。这里默认值几乎总是可以的。
#di 时钟设置/ntp-服务器字符串 ntp.example.com



### 分区
####################

dipartman-auto/方法字符串lvm
dipartman-lvm/device_remove_lvm 布尔 true
dipartman-md/device_remove_md 布尔 true
dipartman-lvm/确认布尔值 true
dipartman-lvm/confirm_nooverwrite 布尔 true

# 您可以选择三个预定义分区方案之一:
# - 原子性:一个分区中的所有文件
# - home:单独的/home分区
# - multi:单独的 /home、/var 和 /tmp 分区
dipartman-auto/choose_recipe 选择原子

# 这使得partman自动分区而无需确认,前提是
# 您告诉它使用上述方法之一做什么。
dipartman-partitioning/confirm_write_new_label boolean true
dipartman/choose_partition 选择完成
dipartman/确认布尔值 true
dipartman/confirm_nooverwrite 布尔值 true



### 基础系统安装
##################################

### apt 设置
# 你可以选择安装受限和宇宙软件,或者安装
# 来自向后移植存储库的软件。
#di apt-setup/backports 布尔 true
di apt-setup/extras 布尔值 true
di apt-setup/multiverse 布尔 true
di apt-setup/partner 布尔值 true
di apt-setup/restricted 布尔值 true
di apt-setup/universe 布尔值 true

# 使用非免费包
普遍性 普遍性/use_nonfree 布尔值 true

# 应用更新的策略。可能是“无”(无自动更新),
#“无人值守升级”(自动安装安全更新),或者
#“landscape”(使用景观管理系统)。
di pkgsel/update-policy 选择无人值守升级

### 引导加载程序安装
# 这个设置相当安全,它会让 grub 自动安装到 MBR
# 如果机器上没有检测到其他操作系统。
di grub-installer/only_debian boolean true



### 更有趣!
#############################

#ubiquity ubiquity/edubuntu-addon_fallback_install 布尔值 false
#ubiquity ubiquity/edubuntu-addon_ltsp_install 布尔值 false
#ubiquity ubiquity/edubuntu-addon_ltsp_interface 选择 eth0
#ubiquity ubiquity/install/generate-blacklist 多选 ubuntu-edu-preschool ubuntu-edu-primary ubuntu-edu-tertiary

# 安装/删除软件包、设置主机名、安装 wifi 驱动程序
无处不在/success_command 字符串 \
目标内 apt-get -y 安装 openssh-server;\
目标内 apt-get -y 清除 unity-scope-imdb unity-scope-musicstores unity-scope-zotero unity-scope-click-autopilot \
unity-scope-deviantart unity-scope-gallica unity-scope-gdocs unity-scope-github unity-scope-googlenews \
unity-scope-launchpad unity-scope-mediascanner unity-scope-onlinemusic unity-scope-openweathermap \
统一范围-soundcloud 统一范围-sshsearch 统一范围-yahoostock 统一镜头照片 统一镜头视频 \
unity-scope-audacious unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-click unity-scope-colourlovers \
unity-scope-gdrive unity-scope-gmusicbrowser unity-scope-gourmet unity-scope-guayadeque unity-scope-mediascanner2 \
统一范围-音乐 统一范围-openclipart 统一范围-texdoc 统一范围-假小子 统一范围-视频-远程 \
unity-scope-virtualbox unity-scope-yelp unity-webapps-service account-plugin-ubuntuone ubuntu-purchase-service \
deja-dup 指示器-消息同理心 gwibber 雷鸟传输-gtk pidgin;\
if [ "$(cat /sys/class/dmi/id/chassis_asset_tag)" != "" ]; 然后 \
    目标内主机名 $(cat /sys/class/dmi/id/chassis_asset_tag) ;\
    目标内 sed -i "1s/.*/$(cat /sys/class/dmi/id/chassis_asset_tag)/" /etc/hostname ; \
    目标内 sed -i "2s/.*/127.0.1.1\t$(cat /sys/class/dmi/id/chassis_asset_tag)/" /etc/hosts; \
别的 \
    目标内主机名 $(cat /sys/class/dmi/id/product_name) ;\
    目标内 sed -i "1s/.*/$(cat /sys/class/dmi/id/product_name)/" /etc/hostname ;\
    目标内 sed -i "2s/.*/127.0.1.1\t$(cat /sys/class/dmi/id/product_name)/" /etc/hosts; \
菲;\
如果 [ lspci -d 14e4:4315 ]; 然后 \
    目标内 apt-get -qq 安装固件-b43-安装程序 || 目标内 apt-get -qq 安装固件-b43-lpphy-installer;\
菲;