aboutlfs.po 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:11
  20. msgid "Setting The $LFS Variable"
  21. msgstr ""
  22. #. type: Content of: <sect1><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:13
  24. msgid ""
  25. "Throughout this book, the environment variable <envar>LFS</envar> will be "
  26. "used several times. You should ensure that this variable is always defined "
  27. "throughout the LFS build process. It should be set to the name of the "
  28. "directory where you will be building your LFS system - we will use <filename "
  29. "class=\"directory\">/mnt/lfs</filename> as an example, but the directory "
  30. "choice is up to you. If you are building LFS on a separate partition, this "
  31. "directory will be the mount point for the partition. Choose a directory "
  32. "location and set the variable with the following command:"
  33. msgstr ""
  34. #. type: Content of: <sect1><screen>
  35. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:23
  36. #, no-wrap
  37. msgid "<userinput>export LFS=<replaceable>/mnt/lfs</replaceable></userinput>"
  38. msgstr ""
  39. #. type: Content of: <sect1><para>
  40. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:25
  41. msgid ""
  42. "Having this variable set is beneficial in that commands such as "
  43. "<command>mkdir -v $LFS/tools</command> can be typed literally. The shell "
  44. "will automatically replace <quote>$LFS</quote> with <quote>/mnt/lfs</quote> "
  45. "(or whatever the variable was set to) when it processes the command line."
  46. msgstr ""
  47. #. type: Content of: <sect1><caution><para>
  48. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:32
  49. msgid ""
  50. "Do not forget to check that <envar>LFS</envar> is set whenever you leave and "
  51. "reenter the current working environment (such as when doing a "
  52. "<command>su</command> to <systemitem class=\"username\">root</systemitem> or "
  53. "another user). Check that the <envar>LFS</envar> variable is set up properly "
  54. "with:"
  55. msgstr ""
  56. #. type: Content of: <sect1><caution><screen>
  57. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:38
  58. #, no-wrap
  59. msgid "<userinput>echo $LFS</userinput>"
  60. msgstr ""
  61. #. type: Content of: <sect1><caution><para>
  62. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:40
  63. msgid ""
  64. "Make sure the output shows the path to your LFS system's build location, "
  65. "which is <filename class=\"directory\">/mnt/lfs</filename> if the provided "
  66. "example was followed. If the output is incorrect, use the command given "
  67. "earlier on this page to set <envar>$LFS</envar> to the correct directory "
  68. "name."
  69. msgstr ""
  70. #. type: Content of: <sect1><note><para>
  71. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:47
  72. msgid ""
  73. "One way to ensure that the <envar>LFS</envar> variable is always set is to "
  74. "edit the <filename>.bash_profile</filename> file in both your personal home "
  75. "directory and in <filename>/root/.bash_profile</filename> and enter the "
  76. "export command above. In addition, the shell specified in the "
  77. "<filename>/etc/passwd</filename> file for all users that need the "
  78. "<envar>LFS</envar> variable needs to be bash to ensure that the "
  79. "<filename>/root/.bash_profile</filename> file is incorporated as a part of "
  80. "the login process."
  81. msgstr ""
  82. #. type: Content of: <sect1><note><para>
  83. #: /home/xry111/svn-repos/LFS-BOOK/chapter02/aboutlfs.xml:56
  84. msgid ""
  85. "Another consideration is the method that is used to log into the host "
  86. "system. If logging in through a graphical display manager, the user's "
  87. "<filename>.bash_profile</filename> is not normally used when a virtual "
  88. "terminal is started. In this case, add the export command to the "
  89. "<filename>.bashrc</filename> file for the user and root. In addition, some "
  90. "distributions have instructions to not run the <filename>.bashrc</filename> "
  91. "instructions in a non-interactive bash invocation. Be sure to add the "
  92. "export command before the test for non-interactive use."
  93. msgstr ""