addinguser.po 8.5 KB

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