reboot.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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-reboot">
  8. <?dbhtml filename="reboot.html"?>
  9. <title>重启系统</title>
  10. <!--para>Now that all of the software has been installed, it is time to reboot
  11. your computer. However, you should be aware of a few things. The system you
  12. have created in this book is quite minimal, and most likely will not have
  13. the functionality you would need to be able to continue forward. By installing
  14. a few extra packages from the BLFS book while still in our current chroot
  15. environment, you can leave yourself in a much better position to continue on
  16. once you reboot into your new LFS installation. Here are some suggestions:</para-->
  17. <para>现在已经安装好了本书中的所有软件,可以重新启动进入 LFS 了。
  18. 然而,您应该注意,按照本书的指令构建的系统是很小的,
  19. 可能会缺失一些功能,导致您无法继续使用系统。
  20. 通过在当前的 chroot 环境中安装一些额外的 BLFS 软件包,
  21. 您可以在重启进入新安装的 LFS 后更容易继续工作。
  22. 以下是一些建议安装的软件包:</para>
  23. <itemizedlist>
  24. <listitem><para>字符模式浏览器,例如 <ulink
  25. url='&blfs-book;basicnet/lynx.html'>Lynx</ulink>,
  26. 这样您可以在一个虚拟终端中阅读 BLFS 手册,
  27. 同时在另一个虚拟终端中构建 BLFS 软件包。</para></listitem>
  28. <listitem><para><ulink
  29. url='&blfs-book;general/gpm.html'>GPM</ulink>
  30. 软件包允许您在虚拟终端中进行复制粘贴操作。</para></listitem>
  31. <listitem><para>如果静态 IP 配置不符合您的网络环境要求,
  32. 安装 <ulink url='&blfs-book;basicnet/dhcpcd.html'>dhcpcd</ulink>
  33. 或 <ulink url='&blfs-book;basicnet/dhcp.html'>dhcp</ulink>
  34. 的客户端部分之类的软件包,用于 DHCP 客户端。</para></listitem>
  35. <listitem><para>安装 <ulink
  36. url='&blfs-book;postlfs/sudo.html'>sudo</ulink>,
  37. 这样就能以非 root 身份构建软件包,再很容易地切换到 root 身份进行安装。
  38. </para></listitem>
  39. <listitem><para>如果您想在拥有舒适的 GUI 环境的远程计算机访问新系统,
  40. 安装 <ulink
  41. url='&blfs-book;postlfs/openssh.html'>openssh</ulink>。
  42. </para></listitem>
  43. <listitem><para>为了更方便地从网络中下载文件,安装
  44. <ulink url='&blfs-book;basicnet/wget.html'>wget</ulink>。
  45. </para></listitem>
  46. <listitem><para>如果您有 GUID 分区表(GPT)磁盘,可能需要安装
  47. <ulink
  48. url='&blfs-book;postlfs/gptfdisk.html'>gptfdisk</ulink> 或者 <ulink
  49. url='&blfs-book;postlfs/parted.html'>parted</ulink> 。
  50. </para></listitem>
  51. <listitem><para>最后,再次检查以下配置文件:</para>
  52. <itemizedlist>
  53. <listitem><para>/etc/bashrc </para></listitem>
  54. <listitem><para>/etc/dircolors </para></listitem>
  55. <listitem><para>/etc/fstab </para></listitem>
  56. <listitem><para>/etc/hosts </para></listitem>
  57. <listitem><para>/etc/inputrc </para></listitem>
  58. <listitem><para>/etc/profile </para></listitem>
  59. <listitem><para>/etc/resolv.conf </para></listitem>
  60. <listitem><para>/etc/vimrc </para></listitem>
  61. <listitem><para>/root/.bash_profile </para></listitem>
  62. <listitem><para>/root/.bashrc </para></listitem>
  63. <listitem revision="sysv"><para>/etc/sysconfig/network </para></listitem>
  64. <listitem revision="sysv"><para>/etc/sysconfig/ifconfig.eth0 </para></listitem>
  65. </itemizedlist>
  66. </listitem>
  67. </itemizedlist>
  68. <!--para>Now that we have said that, let's move on to booting our shiny new LFS
  69. installation for the first time! First exit from the chroot environment:</para-->
  70. <para>现在,终于可以引导全新的 LFS 系统了!首先退出 chroot 环境:</para>
  71. <screen><userinput>logout</userinput></screen>
  72. <para>解挂虚拟文件系统:</para>
  73. <screen><userinput>umount -v $LFS/dev/pts
  74. umount -v $LFS/dev
  75. umount -v $LFS/run
  76. umount -v $LFS/proc
  77. umount -v $LFS/sys</userinput></screen>
  78. <para>解挂 LFS 文件系统:</para>
  79. <screen><userinput>umount -v $LFS</userinput></screen>
  80. <para>如果建立了多个挂载点,在解挂主挂载点 LFS 前,
  81. 先解挂其他挂载点:</para>
  82. <screen role="nodump"><userinput>umount -v $LFS/usr
  83. umount -v $LFS/home
  84. umount -v $LFS</userinput></screen>
  85. <para>重新启动系统:</para>
  86. <screen role="nodump"><userinput>shutdown -r now</userinput></screen>
  87. <para>如果 GRUB 引导加载器如前文所述安装并配置正确,
  88. 它应该会自动引导 <emphasis>LFS &version;</emphasis> 启动项。</para>
  89. <para>重启后,LFS 系统就可以使用了,您可以安装更多的软件包,
  90. 以满足自己的需求。</para>
  91. </sect1>