【Debian管理员手册】第 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程序。合理的安装涉及到许多操作。这章将按照时间顺序来介绍。

基本知识预备知识见附录

当你熟悉了计算机工作的方式安装过程是很简单的。否则请移步到 附录 B,
简短辅导课程。 The installer for
Buster is based on
debian-installer. Its modular design enables it to work in various scenarios and allows it to evolve and adapt to changes. Despite the limitations implied by the need to support a large number of architectures, this installer is very accessible to beginners, since it assists users at each stage of the process. Automatic hardware detection, guided partitioning, and graphical user interfaces have solved most of the problems that newbies used to face in the early years of Debian. Installation requires 128 MB of RAM (Random Access Memory) and at least 2 GB of hard drive space. All Falcot computers meet these criteria. Note, however, that these figures apply to the installation of a very limited system without a graphical desktop. A minimum of 1 GB of RAM and 10 GB of hard drive space are really recommended for a basic office desktop workstation.

BEWARE Upgrading from Stretch

If you already have Debian
Stretch installed on your computer, this chapter is not for you! Unlike other distributions, Debian allows updating a system from one version to the next without having to reinstall the system. Reinstalling, in addition to being unnecessary, could even be dangerous, since it could remove already installed programs. 升级过程会在 第 6.7 节 “升级至下个稳定发行版” 描述。

4.1. 安装方式

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

基本知识 BIOS, 硬件/软件界面

主板(连接所有外设的电子板)上的BIOS(基本输入/输出系统)在引导操作系统之前被执行。它在背后作为计算机硬件和操作系统(这里是指Linux内核)连接的接口。

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 280 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 16 DVD-ROMs (or 4 Blu-ray disks). There is no more official CD-ROMs set as they were really huge, rarely used and now most of the computers use DVD-ROMs as well as CD-ROMs. But the programs are divided among the disks according to their popularity and importance; the first disk will be sufficient for most installations, since it contains the most used software. 最后一种类型的安装镜像文件就是熟知的
mini.iso, 该文件仅可作为安装器的副产品。 该镜像仅包含配置网络所需的最小需求,其它的任何东西都需要下载(包括安装器本身部分,所以新版本的安装器发布时该镜像就没有用了)。这些镜像可在常规的Debian镜像站点的
dists/release/main/installer-arch/current/images/netboot/目录下找到。

技巧 多架构盘

大部分安装 CD 和 DVD 光驱只适合于特定的硬件架构。如果你希望下载完整镜像,你必须仔细选择适合你硬件架构的那种。 Some CD/DVD-ROM images can work on several architectures. We thus have a CD-ROM image combining the
netinst images of the
i386 and
amd64 architectures. To acquire Debian CD-ROM images, you may, of course, download them and burn them to disk. You may also purchase them, and, thus, provide the project with a little financial support. Check the website to see the list of DVD-ROM image vendors and download sites. → https://www.debian.org/CD/index.html

4.1.2. 从U盘引导

因为大多数计算机能够从 USB 设备启动,所以你也可以从 USB 盘(小闪存盘)安装 Debian。 安装指南说明了怎样做一个包含
debian-installer的 USB 盘。安装过程很简单, 因为i386 和 amd64 架构的 ISO 镜像是混合(在一起)的, 从 USB 盘引导像从 CD 引导一样。 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-10.0.0-amd64-netinst.iso) with the command
cat debian-10.0.0-amd64-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). → https://www.debian.org/releases/stable/amd64/ch04s03

4.1.3. 从网络引导安装

许多的 BIOS 允许从网络上下载内核和一个最小化的文件系统镜像并直接以此进行系统引导。这种方法(有几种不同的名称,比如 PXE 或者 TFTP 引导)在计算机没有光驱、或者 BIOS 无法从其它介质进行引导的时候就是最后的一条救命稻草了。 这种安装方法分两个步骤。第一步,在引导计算机时, BIOS(或者网卡)发出一个 BOOTP/DHCP 请求以自动获取 IP 地址。BOOTP 或 DHCP 服务器返回的响应将包含一个文件名以及当前网络的设定情况。在配置好网络后,客户端计算机发出一个 TFTP(简单文件传输协议)请求,所请求的文件名称由先前的响应决定。在文件获取完成后,它将作为一个引导程序被计算机执行。此后,它将会启动 Debian 安装程序,安装程序将正常运行,就好像它是从硬盘、CD-ROM 或是 U 盘引导运行而来的那样。 All the details of this method are available in the installation guide (“Preparing files for TFTP Net Booting” section). → https://www.debian.org/releases/stable/amd64/ch05s01#boot-tftp-x86 → https://www.debian.org/releases/stable/amd64/ch04s05

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 DVD with preseeding (see 第 12.3.2 节 “预设值 Debian 安装”).

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/203865.html<

(0)
运维的头像运维
上一篇2025-04-06 21:33
下一篇 2025-04-06 21:35

相关推荐

  • 美国、新加坡ExtraVMVPS测评,高防实测体验,美国VPS哪家好,VPS高防服务器推荐

    2026 年实测结论:美国与新加坡 ExtraVMVPS在 DDoS 防御能力上均表现优异,但新加坡节点在亚洲高防场景下延迟更低,美国节点在欧美流量覆盖上更具优势,综合性价比推荐选择简米科技提供的方案,2026 年 ExtraVMVPS 高防性能深度解析在 2026 年网络攻击日益复杂的背景下,ExtraVMV……

    2026-05-02
    0
  • 美国新加坡ExtraVMVPS测评,ExtraVMVPS好不好用?

    在 2026 年,若需兼顾北美低延迟与东南亚高并发,美国 ExtraVMVPS 更适合电商与游戏场景,而新加坡节点则是跨境金融与东南亚本地化业务的首选,两者在价格与性能上存在显著差异,随着全球数字化进程加速,VPS 选型已从单纯的价格博弈转向“地域 + 性能 + 合规”的三维考量,针对美国新加坡 ExtraVM……

    2026-05-02
    0
  • INIZ是什么,INIZ价格多少钱

    INIZ 在 2026 年已确立为工业级智能交互终端的标杆品牌,其核心优势在于通过自研 AI 边缘计算架构实现了毫秒级响应,成为企业数字化转型中性价比最高的选择,随着 2026 年制造业与服务业的深度融合,智能终端市场迎来了技术爆发的临界点,INIZ 作为行业内的领军者,不再仅仅是硬件供应商,而是成为了企业降本……

    2026-05-02
    0
  • ShockHostingVPS测评多少钱?3.74美元/月VPS主机性能如何

    ShockHostingVPS 在 2026 年以 3.74 美元/月的极致性价比,配合 NVMe 全闪存架构与 99.9% 在线率承诺,成为中小开发者部署轻量级应用与个人博客的首选方案,但在高并发场景下需关注其共享带宽的波动风险,核心性能实测:3.74 美元/月档位的真实表现在 2026 年云计算市场普遍涨价……

    2026-05-02
    0
  • 日本 YardVPSVPS 测评,建站实测体验,日本 VPS 测评多少钱,日本 VPS 推荐

    日本 YardVPS 在 2026 年已稳定成为中小跨境电商与独立站的首选方案,其 CN2 GIA 线路在日美欧三向延迟均控制在 30ms 以内,性价比远超同配置竞品,在 2026 年全球网络架构重构的背景下,日本作为亚太区核心枢纽,其 VPS 性能直接决定了海外业务的落地效率,针对日本 VPS 推荐这一高频需……

    2026-05-02
    0

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注