addinguser.po 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  5. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  6. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  7. "Language-Team: LANGUAGE <LL@li.org>\n"
  8. "Language: zh_CN\n"
  9. "MIME-Version: 1.0\n"
  10. "Content-Type: text/plain; charset=UTF-8\n"
  11. "Content-Transfer-Encoding: 8bit\n"
  12. "X-Generator: Translate Toolkit 2.2.5\n"
  13. #. type: Content of: <sect1><title>
  14. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:11
  15. msgid "Adding the LFS User"
  16. msgstr "添加 LFS 用户"
  17. #. type: Content of: <sect1><para>
  18. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:13
  19. msgid ""
  20. "When logged in as user <systemitem class=\"username\">root</systemitem>, "
  21. "making a single mistake can damage or destroy a system. Therefore, the "
  22. "packages in the next two chapters are built as an unprivileged user. You "
  23. "could use your own user name, but to make it easier to set up a clean "
  24. "working environment, create a new user called <systemitem class=\"username"
  25. "\">lfs</systemitem> as a member of a new group (also named <systemitem class="
  26. "\"groupname\">lfs</systemitem>) and use this user during the installation "
  27. "process. As <systemitem class=\"username\">root</systemitem>, issue the "
  28. "following commands to add the new user:"
  29. msgstr ""
  30. "在作为 <systemitem class=\"username\">root</systemitem> 用户登录时,一个微小"
  31. "的错误就可能损坏甚至摧毁整个系统。因此,我们建议在后续两章中,以非特权用户身份编译"
  32. "软件包。您可以使用自己的系统用户,但为了更容易地建立一个干净的工作环境,最"
  33. "好创建一个名为 <systemitem class=\"username\">lfs</systemitem> 的新用户,以及"
  34. "它从属于的一个新组 (组名也是 <systemitem class=\"groupname\">lfs</"
  35. "systemitem>) ,以便我们在安装过程中使用。为了创建新用户,以 <systemitem "
  36. "class=\"username\">root</systemitem> 身份执行以下命令:"
  37. #. type: Content of: <sect1><screen>
  38. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:23
  39. #, no-wrap
  40. msgid ""
  41. "<userinput>groupadd lfs\n"
  42. "useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput>"
  43. msgstr ""
  44. "<userinput>groupadd lfs\n"
  45. "useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput>"
  46. #. type: Content of: <sect1><variablelist><title>
  47. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:27
  48. msgid "The meaning of the command line options:"
  49. msgstr "命令行各选项的含义:"
  50. #. type: Content of: <sect1><variablelist><varlistentry><term>
  51. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:30
  52. msgid "<parameter>-s /bin/bash</parameter>"
  53. msgstr "<parameter>-s /bin/bash</parameter>"
  54. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  55. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:32
  56. msgid ""
  57. "This makes <command>bash</command> the default shell for user <systemitem "
  58. "class=\"username\">lfs</systemitem>."
  59. msgstr ""
  60. "设置 <command>bash</command> 为用户 <systemitem class=\"username\">lfs</"
  61. "systemitem> 的默认 shell 。"
  62. #. type: Content of: <sect1><variablelist><varlistentry><term>
  63. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:38
  64. msgid "<parameter>-g lfs</parameter>"
  65. msgstr "<parameter>-g lfs</parameter>"
  66. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  67. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:40
  68. msgid ""
  69. "This option adds user <systemitem class=\"username\">lfs</systemitem> to "
  70. "group <systemitem class=\"groupname\">lfs</systemitem>."
  71. msgstr ""
  72. "添加用户 <systemitem class=\"username\">lfs</systemitem> 到组 <systemitem "
  73. "class=\"groupname\">lfs</systemitem> 。"
  74. #. type: Content of: <sect1><variablelist><varlistentry><term>
  75. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:46
  76. msgid "<parameter>-m</parameter>"
  77. msgstr "<parameter>-m</parameter>"
  78. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  79. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:48
  80. msgid ""
  81. "This creates a home directory for <systemitem class=\"username\">lfs</"
  82. "systemitem>."
  83. msgstr ""
  84. "为用户 <systemitem class=\"username\">lfs</systemitem> 创建一个主目录。"
  85. #. type: Content of: <sect1><variablelist><varlistentry><term>
  86. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:54
  87. msgid "<parameter>-k /dev/null</parameter>"
  88. msgstr "<parameter>-k /dev/null</parameter>"
  89. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  90. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:56
  91. msgid ""
  92. "This parameter prevents possible copying of files from a skeleton directory "
  93. "(default is <filename class=\"directory\">/etc/skel</filename>) by changing "
  94. "the input location to the special null device."
  95. msgstr ""
  96. "将模板目录设置为空设备文件,从而不从默认模板目录 (<filename class=\"directory"
  97. "\">/etc/skel</filename>) 复制文件到新的主目录。"
  98. #. type: Content of: <sect1><variablelist><varlistentry><term>
  99. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:63
  100. msgid "<parameter>lfs</parameter>"
  101. msgstr "<parameter>lfs</parameter>"
  102. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  103. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:65
  104. msgid "This is the actual name for the created user."
  105. msgstr "要创建的用户的名称。"
  106. # Critical warning supressed. Don't know how to translate this keeping the order of XML labels.
  107. #. type: Content of: <sect1><para>
  108. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:71
  109. msgid ""
  110. "To log in as <systemitem class=\"username\">lfs</systemitem> (as opposed to "
  111. "switching to user <systemitem class=\"username\">lfs</systemitem> when "
  112. "logged in as <systemitem class=\"username\">root</systemitem>, which does "
  113. "not require the <systemitem class=\"username\">lfs</systemitem> user to have "
  114. "a password), give <systemitem class=\"username\">lfs</systemitem> a password:"
  115. msgstr ""
  116. "为了以 <systemitem class=\"username\">lfs</systemitem> 身份登录系统 (尽管以 "
  117. "<systemitem class=\"username\">root</systemitem> 身份登录时可以不用输入密码,"
  118. "直接切换到用户 <systemitem class=\"username\">lfs</systemitem>),为 "
  119. "<systemitem class=\"username\">lfs</systemitem> 设置密码:"
  120. #. type: Content of: <sect1><screen>
  121. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:77
  122. #, no-wrap
  123. msgid "<userinput>passwd lfs</userinput>"
  124. msgstr "<userinput>passwd lfs</userinput>"
  125. #. type: Content of: <sect1><para>
  126. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:79
  127. msgid ""
  128. "Grant <systemitem class=\"username\">lfs</systemitem> full access to all "
  129. "directories under <filename class=\"directory\">$LFS</filename> by making "
  130. "<systemitem class=\"username\">lfs</systemitem> the directory owner:"
  131. msgstr ""
  132. "将 <systemitem class=\"username\">lfs</systemitem> 设为 <filename class="
  133. "\"directory\">$LFS</filename> 中所有目录的所有者,使 <systemitem class="
  134. "\"username\">lfs</systemitem> 对它们拥有完全访问权:"
  135. #. type: Content of: <sect1><screen>
  136. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:83
  137. #, no-wrap
  138. msgid ""
  139. "<userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  140. "case $(uname -m) in\n"
  141. " x86_64) chown -v lfs $LFS/lib64 ;;\n"
  142. "esac</userinput>"
  143. msgstr ""
  144. "<userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  145. "case $(uname -m) in\n"
  146. " x86_64) chown -v lfs $LFS/lib64 ;;\n"
  147. "esac</userinput>"
  148. #. type: Content of: <sect1><para>
  149. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:88
  150. msgid ""
  151. "If a separate working directory was created as suggested, give user "
  152. "<systemitem class=\"username\">lfs</systemitem> ownership of this directory:"
  153. msgstr ""
  154. "如果您按照本书的建议,建立了一个单独的工作目录,那么将这个目录的所有者也设"
  155. "为 <systemitem class=\"username\">lfs</systemitem>:"
  156. #. type: Content of: <sect1><screen>
  157. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:92
  158. #, no-wrap
  159. msgid "<userinput>chown -v lfs $LFS/sources</userinput>"
  160. msgstr "<userinput>chown -v lfs $LFS/sources</userinput>"
  161. #. type: Content of: <sect1><note><para>
  162. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:94
  163. msgid ""
  164. "In some host systems, the following command does not complete properly and "
  165. "suspends the login to the lfs user to the background. If the prompt \"lfs:~$"
  166. "\" does not appear immediately, entering the <command>fg</command> command "
  167. "will fix the issue."
  168. msgstr ""
  169. "在某些宿主系统上,下面的命令不会正确完成,而会将 lfs 用户的登录会话挂起到后"
  170. "台。如果提示符 “lfs:~$” 没有很快出现,输入 <command>fg</command> 命令以修复"
  171. "这个问题。"
  172. #. type: Content of: <sect1><para>
  173. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:99
  174. msgid ""
  175. "Next, login as user <systemitem class=\"username\">lfs</systemitem>. This "
  176. "can be done via a virtual console, through a display manager, or with the "
  177. "following substitute/switch user command:"
  178. msgstr ""
  179. "下面以 <systemitem class=\"username\">lfs</systemitem> 的身份登录。"
  180. "可以通过虚拟控制台或者显示管理器登录,也可以使用下面的命令切换用户:"
  181. #. type: Content of: <sect1><screen>
  182. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:103
  183. #, no-wrap
  184. msgid "<userinput>su - lfs</userinput>"
  185. msgstr "<userinput>su - lfs</userinput>"
  186. #. type: Content of: <sect1><para>
  187. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:105
  188. msgid ""
  189. "The <quote><parameter>-</parameter></quote> instructs <command>su</command> "
  190. "to start a login shell as opposed to a non-login shell. The difference "
  191. "between these two types of shells can be found in detail in "
  192. "<filename>bash(1)</filename> and <command>info bash</command>."
  193. msgstr ""
  194. "参数 <quote><parameter>-</parameter></quote> 使得 <command>su</command> 启动"
  195. "一个登录 shell ,而不是非登录 shell 。您可以阅读 <filename>bash(1)</"
  196. "filename> 和 <command>info bash</command> 详细了解它们的区别。"
  197. #~ msgid "<userinput>chown -v lfs $LFS/tools</userinput>"
  198. #~ msgstr "<userinput>chown -v lfs $LFS/tools</userinput>"