2011年12月03日 星期六 18:06
原文目录
如果存在以前的相同名称的光盘镜像文件,可以尝试使用以下命令:
$ rsync -aPv rsync://ftp.skolelinux.org/cd-squeeze-test-dvd/ .
将有类似如下的结果
debian-edu-amd64-i386-DVD-1.iso
4702863360 100% 3.30MB/s 0:22:38 (xfer#1, to-check=3/7)
sent 593912 bytes received 128940204 bytes 77218.55 bytes/sec
total size is 4729766848 speedup is 36.51
在安装 Debian Edu 时,有一些选项供你选择。不必担心,那并没有许多。幸好我们隐藏了 Debian 安装过程中及其后的复杂性。Debian Edu 毕竟是 Debian,你如需要,有超过一万五千个软件包可从其中选择,以及亿万的设置选项。为了我们大多数的使用者,我们需要高质量的默认设置。
7.4.1. 选择安装类型
引导选项菜单
- Install 32位计算机默认文本模式安装
- 64 bit Install 64位机文本模式安装
- Graphical install 图形界面安装模式,可以使用鼠标
- 64 bit graphical install 64位机图形界面安装模式
- Advanced options 这一引导选项增加最少的状态选择,并转换到手工分区
右图为选中 Advanced options 选项后进入的画面
7.4.2
在引导选项菜单画面出现时按下 Tab 键,则出现一下的画面,此时可以编辑引导选项
If you want to boot the amd64 text mode with the multiarch DVD it would be amd64-install.
Likewise you can choose amd64-expertgui to get the GUI version on amd64.
If you want to boot the i386 mode with the multiarch DVD on an amd64 machine you need to manually select install (text mode) or expertgui (graphical mode).
If you have already installed the mainserver profile on a machine, you can use its http proxy service to speed up the following installations from CD. Addmirror/http/proxy=http://10.0.2.2:3128/ as additional boot parameter.
安装 GNOME 桌面来取代 KDE 桌面,在内核引导参数末尾光标处添加 desktop=gnome 参数
使用10月8日释出版此功能似乎不完善
安装 LXDE 桌面取代 KDE 桌面,在其光标处添加 desktop=lxde 参数
7.4.3 实际安装过程
• 选择语言(应用于安装时和安张完成的系统)
• 选择时区
• 选择键盘布局(通常国家缺省设置即适合)
• 选择安装项目
* 主服务器为你的学校提供一下服务: file, print, intranet, proxy, DNS, DHCP, LDAP, backup, nagios, sitesummary, and munin. 所有服务均为预先配置安装即可使用。 每一学校仅需安装一台主服务器。 这一安装项目不包括图形界面,如果你需要图形界面,还需选择安装工作站或者瘦客户端服务器。
– 工作站
* 从本地硬件引导启动计算机,运行所有程序,本地设备类似一台普通的计算机,但使用者登录需要主服务器来确认,并储存使用者的文件和桌面内容。
– 移动工作站
* 如同以上工作站,但使用贮藏证书验证功能,亦可在学校网络之外使用。使用者的文件和项目保存在本地磁盘中。笔记本电脑将选择该安装项目而非“工作站”或“独立主机”,亦于先前发行版中建议使用。
– 瘦客户机/服务器
* 痩客户机(和无盘工作站)服务器同样呼叫 LTSP 服务器。痩客户机不以硬件驱动引导而是从该服务器运行程序。这台计算机需要两块网卡和大量的内存,适宜更多的处理器。参看关于网络客户端的章节,获得这一 主题的更多信息。选取该安装项目同时也开启工作站项目(即使并没有选择“工作站”选项),一台痩客户机服务器也一直可以如同工作站使用。
– 独立主机
* 一台普通计算机,而不依赖主服务器即可工作。无需进入网络的机器,如笔记本电脑。
– 最小安装
* 该选项安装仅获得使用 ’debian-edu-expert’ 引导选项。其安装基本软件包并配置计算机不以任何服务和应用来融入 Debian Edu 网络,是手工自主服务器转移简单服务的应用平台。
前3项内容可以全部安装到同一台机器上。意味主服务器与痩客户机服务器如同工作站一样的使用。我们一直假设之后多数人将通过 PXE 安装。
• 选择是否自动分区
– 要知道选择“是”将清除硬盘上的所有数据!选择“否”获得不同的模式,需要更多的工作,需要确认分区的创建和容量。
• 请选择“是”来提交信息到 http://popcon.skolelinux.org/ 使我们知道软件包的流行度以致下一发行版。以这种简单的方式得到你的协助 :)
• 稍候
– 如果瘦客户机服务器包括在所选安装项目中,在最后安装过程将耗费一段时间, "Finishing the installation - Running debian-edu-profile-udeb..."
祝愉快
7.4.4. 手工分区说明
一般建议,如果你选择手工分区并且系统引导失败,首先尝试自动分区。
如果你决定为主服务器手工分区,要考虑这些。
确定存在 /skole/tjener/home0 目录,通常你将在这里挂载一个分区,如果不创建该目录,你仅能以 root 用户登录。因为新增用户,系统需要该目录创建使用者的主目录,没有用户主目录则该用户无法登录。
如果 /var/spool/squid 是在一个单独的分区,建议要 3G 的自由空间,Squids 存储空间设置为分区大小的百分之八十。
/boot 要有自己的分区。
7.4.5. 有关在笔记本上安装的说明
最适合你的需求是选用“移动工作站”项目(参看前文)。要清楚所有数据保存在本地计算机中(也就是说格外费心对备份的关注)和登录证书的贮存(亦即如果你的笔记本未连接到网络时以旧密码登录并记录变更密码后的新密码)。
7.4.6. 以 DVD 安装的说明
如果你从 DVD 安装,其后 /etc/apt/sources.list 文件将仅包含 DVD 中的软件源。如果你有网络连接,我们强烈建议增添以下数行,如此可以获得安装(安全)更新:
deb http://ftp.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb http://ftp.skolelinux.org/skolelinux squeeze local
7.4.7. 以 CD 安装的说明
网络安装(由我们的 CD 提供这一安装类型)将从 CD 获取若干软件包,而其余的软件包从网络下载。所获取的软件包数目取决于网络内容的变化:
主服务器:已下载 115 Mib 中的 8 Mib。
主服务器和瘦客户机服务器:已下载 1082 Mib 中的 618 Mib。
主服务器和工作站:已下载 1081 Mib 中的 618 Mib。
瘦客户机服务器:已下载 1052 Mib 中的 618 Mib。
工作站:已下载 1051 Mib 中的 618 Mib。
独立主机:已下载 1020 Mib 中的 618 Mib。
最小安装:已下载 83 Mib 中的 12 Mib。
7.4.8. 若干 RAID controllers 的说明
安装期间以 USB 设备加载未获得的固件时,若干 RAID-controllers 将 GRUB 安装到 USB 设备上。如此安装后重新引导将产生 GRUB 错误。 解决此问题的灵活方法是在加载固件之后移除 USB 设备,最好是在启动分区程序之前。
更多信息请参看 Debian-Edu bug #1395 and Debian bug 516280.
7.4.9. A note on thin-client-server installations
First of all, this profile name is confusing due to historic reasons, today this profile actually installs a LTSP server environment for thin-clients and for workstations. Debian bug 516280 has been filed to change the name of the profile into a better suited one.
By providing the kernel argument edu-skip-ltsp-make-client it is possible to skip the step which converts the LTSP chroot from a thin-client chroot into a combined thin-client/diskless workstation chroot.
This is useful in certain situations, e.g. if one wants a pure thin client chroot or if there is already a diskless chroot on another server, which can be rsynced. For these situations skipping this step will cut down the installation time considerably.
Except for the longer installation time there is no harm creating combined chroots always and this is why this is done by default.
7.4.10. Custom CD/DVDs
Creating custom CDs or DVDs is possibly quite easy since we use the debian installer, which has a modular design and other nice features. Preseeding allows you to define answers to the questions normally asked.
So all you need to do is to create a preseeding file with your answers (this is described in the appendix of the debian installer manual) and remaster the CD/DVD.
7.4.11. 以 USB记忆棒代替 CD/DVD 安装
从 Squeeze 释出版开始,可以通过简单复制 CD/DVD 镜像文件到 USB记忆棒并以之引导。类似以下的简单命令,请正确选择所需设备文件名:
sudo dd if=debian-edu-amd64-i386-XXX.iso of=/dev/sdX bs=1024
根据所选镜像,USB记忆棒将犹如 CD 或 DVD。
7.4.12. Installation over the network (PXE) and booting diskless clients
For this installation method it is required that you have a running main server. When clients boot via the main network, a new PXE menu with installer and boot selection options is displayed.
This is how the PXE menu looks like with the Main-Server profile only:
This is how the PXE menu looks like with the Main-Server and Thin-Client-Server profile:
This setup also allows to boot diskless workstations and thin clients on the main network. Diskless workstations must be added with GOsa just like normal workstations or thin client servers.
More information about network clients can be found in the Network clients HowTo chapter.
7.4.12.1. Modifying PXE installations
The PXE installation is using a debian-installer preseed file, and this file can be modified to ask for more packages to install.
A line like the following needs to be added to tjener:/etc/debian-edu/www/debian-edu-install.dat
d-i pkgsel/include string my-extra-package(s)
The PXE installation uses the files /var/lib/tftpboot/debian-edu/install.cfg and the preseeding file in /etc/debian-edu/www/debian-edu-install.dat. These files can be changed to adjust the preseeding used during installation, i.e. to avoid more questions when installing over the net. Another possibility to achieve the same is to provide extra settings in /etc/debian-edu/pxeinstall.conf and /etc/debian-edu/www/debian-edu-install.dat.local and to run /usr/sbin/debian-edu-pxeinstall to update the generated files.
Further information can be found in the manual of the Debian Installer.
To disable or change the use of the proxy when installing via PXE, the lines containing mirror/http/proxy, mirror/ftp/proxy and preseed/early_command in tjener:/etc/debian-edu/www/debian-edu-install.dat need to be changed. To disable the use of a proxy when installing, put '#' in front of the first two lines, and remove the "export xhttp_proxy="http://webcache:3128"; " part from the last one.
Some settings can not be preseeded because they are needed before the preseeding file is downloaded. These are configured in the pxelinux based boot arguments available from /var/lib/tftproot/debian-edu/install.cfg. Language, keyboard layout and desktop are examples of such settings.
%