theend.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-finish-theend">
  8. <?dbhtml filename="theend.html"?>
  9. <title>收尾工作</title>
  10. <indexterm zone="ch-finish-theend">
  11. <primary sortas="e-/etc/lfs-release">/etc/lfs-release</primary>
  12. </indexterm>
  13. <indexterm zone="ch-finish-theend">
  14. <primary sortas="e-/etc/lsb-release">/etc/lsb-release</primary>
  15. </indexterm>
  16. <indexterm zone="ch-finish-theend" revision="systemd">
  17. <primary sortas="e-/etc/os-release">/etc/os-release</primary>
  18. </indexterm>
  19. <!--para>Well done! The new LFS system is installed! We wish you much
  20. success with your shiny new custom-built Linux system.</para-->
  21. <para>很好!现在新的 LFS 系统已经安装好了!我们祝愿您在全新的,
  22. 自定义的 Linux 系统中取得成功!</para>
  23. <para revision="systemd">创建 systemd 需要的
  24. <filename>/etc/os-release</filename> 文件:</para>
  25. <screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
  26. NAME="Linux From Scratch"
  27. VERSION="&versiond;"
  28. ID=lfs
  29. PRETTY_NAME="Linux From Scratch &versiond;"
  30. VERSION_CODENAME="&lt;your name here&gt;"
  31. EOF</userinput></screen>
  32. <para revision="sysv">It may be a good idea to create an
  33. <filename>/etc/lfs-release</filename> file. By having this file, it is very
  34. easy for you (and for us if you need to ask for help at some point) to find
  35. out which LFS version is installed on the system. Create this file by
  36. running:</para>
  37. <screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
  38. <para revision="systemd">最好创建一个 /etc/lfs-release 文件,
  39. 保持和非 systemd LFS 分支的一致性。
  40. 有了这个文件,您(和我们,如果您需要帮助的话)
  41. 能够容易地知道安装的 LFS 版本。运行以下命令创建该文件:</para>
  42. <screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
  43. <!--para>It is also a good idea to create a file to show the status of your
  44. new system with respect to the Linux Standards Base (LSB). To create
  45. this file, run:</para-->
  46. <para>另外,最好创建一个文件,根据 Linux Standards Base (LSB)
  47. 的规则显示系统状态。运行以下命令创建该文件:</para>
  48. <screen revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  49. DISTRIB_ID="Linux From Scratch"
  50. DISTRIB_RELEASE="&version;"
  51. DISTRIB_CODENAME="&lt;your name here&gt;"
  52. DISTRIB_DESCRIPTION="Linux From Scratch"
  53. EOF</userinput></screen>
  54. <screen revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
  55. DISTRIB_ID="Linux From Scratch"
  56. DISTRIB_RELEASE="&versiond;"
  57. DISTRIB_CODENAME="&lt;your name here&gt;"
  58. DISTRIB_DESCRIPTION="Linux From Scratch"
  59. EOF</userinput></screen>
  60. <!--para>Be sure to put some sort of customization for the field
  61. 'DISTRIB_CODENAME' to make the system uniquely yours.</para-->
  62. <para>您可以修改 'DISTRIB_CODENAME' 域,体现您的系统的独特性。</para>
  63. </sect1>