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

📄 chapter04.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;4.&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;II.&nbsp;构建前的准备工作
        </h3>
      </div>
      <ul class="headerlinks">
        <li class="prev">
          <a accesskey="p" href="../chapter03/patches.html" title="Needed Patches">后退</a>
          <p>
            Needed Patches
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="creatingtoolsdir.html" title="Creating the $LFS/tools Directory">前进</a>
          <p>
            Creating the $LFS/tools Directory
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="../part2.html" title="Part&nbsp;II.&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">
          4. 最后的准备工作
        </h1>
      </div>
      <div class="sect1" lang="zh_cn" xml:lang="zh_cn">
        <div class="titlepage">
          <a id="prepare-aboutlfs" name="prepare-aboutlfs"></a>
          <h2 class="sect1">
            4.1. 关于 $LFS
          </h2>
        </div>
        <p>
          环境变量<tt class="envar">LFS</tt>的使用贯穿全书。保持<tt class="envar">LFS</tt>总是已定义是很重要的,它应该被设置为所选择的 LFS 分区的挂载点。用下面的命令检查它的设置是否恰当:</p>
        <pre class="userinput"><kbd class="command">echo $LFS</kbd></pre>
        <p>
          请确认输出的是 LFS 分区挂载点的路径,如果您遵循我们提供的例子,那应该是 <tt class="filename">/mnt/lfs</tt> 。如果输出结果不正确,用下面的命令设置它:
        </p>
        <pre class="userinput"><kbd class="command">export LFS=/mnt/lfs</kbd></pre>
        <p>
          设置这个环境变量的好处是您以后可以照字输入形如
          <span><strong class="command">mkdir $LFS/tools</strong></span> 的命令,当 shell 处理这个命令行的时候,会自动用&ldquo;<span class="quote">/mnt/lfs</span>&rdquo;(或者该环境变量所设定的值)替换&ldquo;<span class="quote">$LFS</span>&rdquo; 。
        </p>
        <p>
          当您离开然后重新进入当前工作环境的时候(像 &ldquo;<span class="quote">su</span>&rdquo; 到
          <span class="emphasis"><em>root</em></span> 或者其他用户),不要忘记检查 <tt class="envar">$LFS</tt>是否设置正确。
        </p>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="../chapter03/patches.html" title="Needed Patches">后退</a>
          <p>
            Needed Patches
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="creatingtoolsdir.html" title="Creating the $LFS/tools Directory">前进</a>
          <p>
            Creating the $LFS/tools Directory
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="../part2.html" title="Part&nbsp;II.&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 + -