Product SiteDocumentation Site

第 4 章 安装

4.1. 安装方式
4.1.1. 从CD-ROM/DVD-ROM安装
4.1.2. 从U盘引导
4.1.3. 从网络引导安装
4.1.4. 其他安装方式
4.2. 安装,一步一步来
4.2.1. 引导和开始安装
4.2.2. 选择语言
4.2.3. 选择国家
4.2.4. 选择键盘布局
4.2.5. 检测硬件
4.2.6. 加载组件
4.2.7. 检测网络硬件
4.2.8. 配置网络
4.2.9. 配置时钟
4.2.10. 管理员密码
4.2.11. 建第一个用户
4.2.12. 检测磁盘和其他设备
4.2.13. 开始分区的工具
4.2.14. 安装基本系统
4.2.15. 配置包管理 (apt)
4.2.16. Debian 软件包流行度竞赛
4.2.17. 选择安装包
4.2.18. 安装 GRUB 引导程序
4.2.19. 完成安装并重启
4.3. 在首次启动之后
4.3.1. 安装附加软件
4.3.2. 升级系统
为了使用Debian,你需要把它安装到计算机上;这项任务涉及debian-installer程序。合理的安装涉及到许多操作。这章将按照时间顺序来介绍。
Wheezy的安装程序基于debian-installer。它的模块化设计使安装程序能适应各种情况,并可随机改变。尽管受到需要支持多种架构的限制,本安装程序对于新手还是具有很好的可操作性,基于它对用户在各个过程中的帮助。自动化的硬件检测,分区引导,和图形用户界面,已经解决了新手需要面对的大部分问题。
安装硬件需求至少需要 80MB 内存和 700MB 的硬盘空间。所有 Falcot 电脑都符合这些标准。但是请注意,这样的配置只能安装非常有限的没有图形化桌面的系统。 一部办公桌面环境的工作站需要至少 512MB 内存和 5GB 的硬盘空间。

4.1. 安装方式

Debian系统可以从不同媒介安装,只要机器BIOS允许的话。可以从光驱,U盘,甚至是网络引导安装。

4.1.1. 从CD-ROM/DVD-ROM安装

最常见的安装介质是从CD光驱(或者DVD光驱,都一样):计算机从此处引导,然后安装程序接管。
Various CD-ROM families have different purposes: netinst (network installation) contains the installer and the base Debian system; all other programs are then downloaded. Its “image”, that is the ISO-9660 filesystem that contains the exact contents of the disk, only takes up about 150 to 250 MB (depending on architecture). On the other hand, the complete set offers all packages and allows for installation on a computer that has no Internet access; it requires around 70 CD-ROMs (or 10 DVD-ROMs, or two Blu-ray disks). But the programs are divided among the disks according to their popularity and importance; the first three disks will be sufficient for most installations, since they contain the most used software.
Debian also used to provide a businesscard or bizcard CD-ROM, which only contained the installer, and which required all the Debian packages (including the base system) to be downloaded. Since its image only took up 35 MB, it was meant to be burnt on a “business card” type CD-ROM. This CD-ROM is no longer provided for Wheezy: the debian-installer developers estimated that the work required to maintain that image was no longer worth it. Furthermore, the mini.iso image that they already provide as by-product of the installer is very similar.
为了获得 Debian CD-ROM 镜像,你可以下载并刻度到光盘上。也可以购买它们,嗯,因此,要提供小小的金钱支持了。请查看网站 CD-ROM 镜像列表。

4.1.2. 从U盘引导

自从计算机可以通过 USB 设备引导以来,你也能通过 U 盘来安装 Debian 了(其实就是个小小的闪盘)。然而,不是所有的 BIOS 都一样的;有的能够引导 USB 2.0 设备,其他的只能引导 USB 1.1。 除此外,U 盘必须有512 比特的引导扇区,这虽是个普通的需求, 但在你买的 U盘包装上是不会被注明的。
The installation manual explains how to create a USB key that contains the debian-installer. The procedure has been significantly simplified for the Squeeze release compared to the previous versions; the ISO images for i386 and amd64 architectures are now hybrid images that can boot from a CD-ROM as well as from a USB key.
You must first identify the device name of the USB key (ex: /dev/sdb); the simplest means to do this is to check the messages issued by the kernel using the dmesg command. Then you must copy the previously downloaded ISO image (for example debian-7.0.0-amd64-i386-netinst.iso) with the command cat debian-7.0.0-amd64-i386-netinst.iso >/dev/sdb; sync. This command requires administrator rights, since it accesses the USB key directly and blindly erases its content.
A more detailed explanation is available in the installation manual. Among other things, it describes an alternative method of preparing a USB key that is more complex, but that allows to customize the installer's default options (those set in the kernel command line).

4.1.3. 从网络引导安装

Many BIOSes allow booting directly from the network by downloading a kernel and a minimal filesystem image. This method (which has several names, such as PXE or TFTP boot) can be a life-saver if the computer does not have a CD-ROM reader, or if the BIOS can't boot from such media.
This installation method works in two steps. First, while booting the computer, the BIOS (or the network card) issues a BOOTP/DHCP request to automatically acquire an IP address. When a BOOTP or DHCP server returns a response, it includes a filename, as well as network settings. After having configured the network, the client computer then issues a TFTP (Trivial File Transfer Protocol) request for a file whose name was previously indicated. Once this file is acquired, it is executed as though it were a bootloader. This then launches the Debian installation program, which is executed as though it were running from the hard drive, a CD-ROM, or a USB key.
All the details of this method are available in the installation guide (“Preparing files for TFTP Net Booting” section).

4.1.4. 其他安装方式

When we have to deploy customized installations for a large number of computers, we generally choose an automated rather than a manual installation method. Depending on the situation and the complexity of the installations to be made, we can use FAI (Fully Automatic Installer, described in 第 12.3.1 节 “Fully Automatic Installer (FAI)”), or even a customized installation CD with preseeding (see 第 12.3.2 节 “Preseeding Debian-Installer”).