⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chapter01.html

📁 Linux From Scratch的中文指导,学习LINUX很有用
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=gb2312" />
    <title>
      Chapter&nbsp;1.&nbsp;介绍
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
  </head>
  <body id="lfs" class="6.1">
    <div class="navheader">
      <div class="headertitles">
        <h4>
          Linux From Scratch - Version 6.1
        </h4>
        <h3>
          Part&nbsp;I.&nbsp;介绍
        </h3>
      </div>
      <ul class="headerlinks">
        <li class="prev">
          <a accesskey="p" href="../part1.html" title="Introduction">后退</a>
          <p>
            Introduction
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="changelog.html" title="Changelog">前进</a>
          <p>
            Changelog
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="../part1.html" title="Part&nbsp;I.&nbsp;介绍">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
        </li>
      </ul>
    </div>
    <div class="chapter" lang="zh_cn" xml:lang="zh_cn">
      <div class="titlepage">
        <h1 class="chapter">
          1. 介绍
        </h1>
      </div>
      <div class="sect1" lang="zh_cn" xml:lang="zh_cn">
        <div class="titlepage">
          <a id="ch-scatter-how" name="ch-scatter-how"></a>
          <h2 class="sect1">
            1.1. 如何构建一个 LFS 系统
          </h2>
        </div>
        <p>
          我们将用一个已安装好的 Linux 发行版(例如 Debian、Mandrake、Red Hat、SuSE)来构建 LFS 系统。这个已存在的 Linux 系统(宿主系统)作为建立新系统的起点,提供包括编译器、连接器和 Shell 在内的必要的程序。您安装这个发行版的时候,需要选择“开发者”选项,以便可以用上这些工具。
        </p>
        <p>
          另一个选择是使用 Linux From Scratch 的 LiveCD。这个CD是一个非常好的宿主系统,它包含了构建一个完整LFS系统所需要的一切工具,另外还包含了所有的软件包源代码、补丁和一个本书的拷贝。使用这个CD,可以不需要任何网络连接或者下载任何额外的东西。要了解更多关于 LFS LiveCD 的信息或者想下载它,请查看:<a href="http://www.linuxfromscratch.org/livecd/"><i>http://www.linuxfromscratch.org/livecd/</i></a>。
        </p>
        <p>
          <a href="../chapter02/chapter02.html">Chapter 2</a> 描述了怎样创建一个新的 Linux 本地分区和文件系统,新的 LFS 系统将在这上面编译安装。 <a href="../chapter03/chapter03.html">Chapter 3</a> 解释了构建一个 LFS 系统需要那些软件包和补丁,以及怎样把它们存放到新文件系统上。
          <a href="../chapter04/chapter04.html">Chapter 4</a> 讨论了建立一个适当的工作环境。请仔细阅读 <a href="../chapter04/chapter04.html">Chapter 4</a>,因为它讨论了在开始完成 <a href="../chapter05/chapter05.html">Chapter 5</a> 及其后面的步骤之前,开发者需要知道的几个重要问题。
        </p>
        <p>
          <a href="../chapter05/chapter05.html">Chapter 5</a> 解释了形成一个基本开发套件(或称为工具链)所需的许多软件的安装,这个工具链将被用来构建 <a href="../chapter06/chapter06.html">Chapter 6</a> 中的实际系统。其中一些软件包需要解决循环依赖关系:例如,要编译一个编译器,您首先就需要一个编译器。
        </p>
        <p>
          <a href="../chapter05/chapter05.html">Chapter 5</a> 告诉用户如何编译第一遍工具链,包括 Binutils 和 GCC(第一遍主要的意思就是指这两个核心软件包后面还将第二次安装)。这些软件包里的程序将静态连接以便使用时独立于宿主系统。接下来的步骤是编译 Glibc,就是 C 运行库。Glibc 将由第一遍建立的工具链程序编译。然后将第二遍编译工具链动态连接到刚刚编译好的 Glibc 库上。<a href="../chapter05/chapter05.html">Chapter 5</a> 余下的软件包将使用第二遍建立的工具链来编译。完成这些步骤之后,LFS 的安装过程除了正在运行的内核外,不再依赖于宿主系统。
        </p>
        <p>
          为了不依赖宿主系统,初看起来我们要做很多工作。<a href="../chapter05/chapter05.html">Chapter 5</a>的开始提供了一个完整的技术说明,包括静态连接的程序和动态连接的程序之间差异的注解。
        </p>
        <p>
          <a href="../chapter06/chapter06.html">Chapter 6</a>将构建完整的 LFS 系统。<span><strong class="command">chroot</strong></span>(改变root)程序用来进入一个虚拟的环境并开始一个新的 Shell,其根目录是 LFS 分区。这非常类似于重启并让内核将 LFS 分区挂载为根分区。系统实际上并没有重启,而是由 chroot 代替了,因为建立一个可启动的系统需要做一些现在还不需要做的额外工作。主要的好处在于“<span><strong class="command">chroot</strong></span>”允许您在构建 LFS 的时候可以继续使用宿主系统。在等待软件包编译完成的时候,用户可以切换到不同的虚拟控制台(VC)或者 X 桌面,就像平常一样继续使用计算机。
        </p>
        <p>
          为了完成安装,<a href="../chapter07/chapter07.html">Chapter 7</a>设置启动脚本,<a href="../chapter08/chapter08.html">Chapter 8</a>安装内核和启动引导程序。<a href="../chapter09/chapter09.html">Chapter 9</a>包含在本书之外获得进一步 LFS 体验的信息。在本书中所有步骤都完成之后,计算机就已经准备好重启进入新的 LFS 系统了。
        </p>
        <p>
          以上就是概略的过程,在接下来的章节和软件包描述中会讨论每一步的细节。看似复杂的项目将详细阐明,随着开发者踏上 LFS 冒险之路,每一件事情都将依序出现。
        </p>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="../part1.html" title="Introduction">后退</a>
          <p>
            Introduction
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="changelog.html" title="Changelog">前进</a>
          <p>
            Changelog
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="../part1.html" title="Part&nbsp;I.&nbsp;介绍">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
        </li>
      </ul>
    </div>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -