个人工具
登录
查看“定制Ubuntu安装CD”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“定制Ubuntu安装CD”的源代码
来自Ubuntu中文
←
定制Ubuntu安装CD
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
==== 写preseed文件 ==== 这里有很多实例;看看这个在安装盘里的--server.seed: <pre><nowiki> d-i base-installer/kernel/linux/extra-packages-2.6 string d-i archive-copier/desktop-task string ubuntu-standard d-i archive-copier/ship-task string base-config base-config/package-selection string ~t^ubuntu-standard$ base-config base-config/language-pack-patterns string language-pack-$LL base-config base-config/install-language-support boolean false </nowiki></pre> (Note that the version of this file on breezy CD images was buggy: it set base-config/package-selection to "~tubuntu-standard" rather than "~t^ubuntu-standard$". Use the new version in preference; the old one will break with Ubuntu 6.04.) 首先注意格式,有 4 个部分: ** 取得变量的程序名称 ** 答案的变量名 ** 变量类型 ** 变量值 两个要注意的地方:现在,d-i 期望有精确的类型和值;在breezy这个版本不支持用 \ 来处理多行(新的版本支持)。 我建议您从一些现有的 preseed 来修改--这儿有一个可以用的 [http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/doc/manual/en/apcs01.html 点击]。 如果您没能在这儿找到,那就试着执行这些命令; <pre><nowiki> debconf-get-selections --installer > somefile.txt debconf-get-selections >> somefile.txt </nowiki></pre> 这会输出一个您在安装时候作出的选择的列表;这文件相当地长,并且实际上不那么适合用在安装盘里。特别是,'''NOTE:''' debconf-get-selections 会在类型和值之间放 '''2''' 个空格。您得在把她放在安装盘上以前修改他们。 如果您想让 d-i 安装额外的软件包,或者一个最小的系统,您需要在preseed里修改 "base-config base-config/package-selection"。This should be set to an aptitude pattern; see the aptitude documentation for more information on these. 例如,标准安装一个SSH服务,用这一行: <pre><nowiki> base-config base-config/package-selection string ~t<sup>ubuntu-standard$|~t^ubuntu-desktop$|~n</sup>openssh-server$ </nowiki></pre> 这里提供不同的安装机制以安装其他的语言支持,即在安装预置文件中提出详细的区域问题 To install support for additional languages, a different mechanism is available, namely to preseed the detailed locale question asked by the installer in expert mode. See the first column of `/usr/share/i18n/SUPPORTED` for the locale names you can use here. 例如, 增加孟加拉语和泰米尔语的支持,用这一行: <pre><nowiki> d-i localechooser/supported-locales multiselect ba_IN, ta_IN </nowiki></pre>
返回至
定制Ubuntu安装CD
。