inetutils.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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-system-inetutils" role="wrap">
  8. <?dbhtml filename="inetutils.html"?>
  9. <sect1info condition="script">
  10. <productname>inetutils</productname>
  11. <productnumber>&inetutils-version;</productnumber>
  12. <address>&inetutils-url;</address>
  13. </sect1info>
  14. <title>Inetutils-&inetutils-version;</title>
  15. <indexterm zone="ch-system-inetutils">
  16. <primary sortas="a-Inetutils">Inetutils</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Inetutils 软件包包含基本网络程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&inetutils-ch6-sbu;</seg>
  26. <seg>&inetutils-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Inetutils</title>
  32. <para>准备安装 Inetutils:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr \
  34. --localstatedir=/var \
  35. --disable-logger \
  36. --disable-whois \
  37. --disable-rcp \
  38. --disable-rexec \
  39. --disable-rlogin \
  40. --disable-rsh \
  41. --disable-servers</userinput></screen>
  42. <variablelist>
  43. <title>配置选项的含义:</title>
  44. <varlistentry>
  45. <term><parameter>--disable-logger</parameter></term>
  46. <listitem>
  47. <para>该选项防止 Inetutils 安装 <command>logger</command> 程序,
  48. 它被脚本文件用于向系统日志守护程序传递消息。这里不安装它,
  49. 因为 Util-linux 会安装更新的版本。</para>
  50. </listitem>
  51. </varlistentry>
  52. <varlistentry>
  53. <term><parameter>--disable-whois</parameter></term>
  54. <listitem>
  55. <para>该选项防止构建过时的 <command>whois</command> 客户端,
  56. BLFS 手册中有一个更好的 <command>whois</command> 客户端。
  57. </para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term><parameter>--disable-r*</parameter></term>
  62. <listitem>
  63. <para>这些参数禁用过时的程序,由于安全问题,它们不应该被继续使用。
  64. 它们提供的功能可以由 BLFS 手册中的 openssh 软件包代替。</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term><parameter>--disable-servers</parameter></term>
  69. <listitem>
  70. <!--para>This disables the installation of the various network servers
  71. included as part of the Inetutils package. These servers are deemed not
  72. appropriate in a basic LFS system. Some are insecure by nature and are
  73. only considered safe on trusted networks. Note that
  74. better replacements are available for many of these servers.</para-->
  75. <para>该选项禁用 Inetutils 软件包包含的若干网络服务程序,
  76. 它们在基本的 LFS 系统中注定是不合适的。
  77. 其中一些服务程序从本质上就不安全,
  78. 只有在可信的网络环境中才能被认为是安全的。
  79. 要注意的是,对于其中许多服务程序,都能找到更好的替代品。
  80. </para>
  81. </listitem>
  82. </varlistentry>
  83. </variablelist>
  84. <para>编译该软件包:</para>
  85. <screen><userinput remap="make">make</userinput></screen>
  86. <para>运行以下命令以测试编译结果:</para>
  87. <screen><userinput remap="test">make check</userinput></screen>
  88. <note><para>其中一项测试 libls.sh 在初始的 chroot 环境中可能失败,
  89. 但在 LFS 系统构建完成后再重新运行时即可通过。另外,一项名为
  90. ping-localhost.sh 的测试在宿主系统不支持 ipv6 时会失败。</para></note>
  91. <para>安装该软件包:</para>
  92. <screen><userinput remap="install">make install</userinput></screen>
  93. <para>移动一些程序,这样在 <filename class='directory'>/usr</filename>
  94. 文件系统不可用时也能使用它们:</para>
  95. <screen><userinput remap="install">mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
  96. mv -v /usr/bin/ifconfig /sbin</userinput></screen>
  97. </sect2>
  98. <sect2 id="contents-inetutils" role="content">
  99. <title>Inetutils 的内容</title>
  100. <segmentedlist>
  101. <segtitle>安装的程序</segtitle>
  102. <seglistitem>
  103. <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6,
  104. talk, telnet, tftp, 以及 traceroute</seg>
  105. </seglistitem>
  106. </segmentedlist>
  107. <variablelist>
  108. <bridgehead renderas="sect3">简要描述</bridgehead>
  109. <?dbfo list-presentation="list"?>
  110. <?dbhtml list-presentation="table"?>
  111. <varlistentry id="dnsdomainname">
  112. <term><command>dnsdomainname</command></term>
  113. <listitem>
  114. <para>显示系统的 DNS 域名</para>
  115. <indexterm zone="ch-system-inetutils dnsdomainname">
  116. <primary sortas="b-dnsdomainname">dnsdomainname</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="ftp">
  121. <term><command>ftp</command></term>
  122. <listitem>
  123. <para>文件传输程序</para>
  124. <indexterm zone="ch-system-inetutils ftp">
  125. <primary sortas="b-ftp">ftp</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="hostname">
  130. <term><command>hostname</command></term>
  131. <listitem>
  132. <para>报告或设定主机名称</para>
  133. <indexterm zone="ch-system-inetutils hostname">
  134. <primary sortas="b-hostname">hostname</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="ifconfig">
  139. <term><command>ifconfig</command></term>
  140. <listitem>
  141. <para>管理网络接口</para>
  142. <indexterm zone="ch-system-inetutils ifconfig">
  143. <primary sortas="b-ifconfig">ifconfig</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="ping">
  148. <term><command>ping</command></term>
  149. <listitem>
  150. <para>发送回显请求数据包并报告响应用时</para>
  151. <indexterm zone="ch-system-inetutils ping">
  152. <primary sortas="b-ping">ping</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. <varlistentry id="ping6">
  157. <term><command>ping6</command></term>
  158. <listitem>
  159. <para>用于 IPv6 网络的 <command>ping</command> 版本</para>
  160. <indexterm zone="ch-system-inetutils ping6">
  161. <primary sortas="b-ping6">ping6</primary>
  162. </indexterm>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="talk">
  166. <term><command>talk</command></term>
  167. <listitem>
  168. <para>用于和其他用户聊天</para>
  169. <indexterm zone="ch-system-inetutils talk">
  170. <primary sortas="b-talk">talk</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="telnet">
  175. <term><command>telnet</command></term>
  176. <listitem>
  177. <para>TELNET 协议的接口</para>
  178. <indexterm zone="ch-system-inetutils telnet">
  179. <primary sortas="b-telnet">telnet</primary>
  180. </indexterm>
  181. </listitem>
  182. </varlistentry>
  183. <varlistentry id="tftp">
  184. <term><command>tftp</command></term>
  185. <listitem>
  186. <para>简单文件传输程序</para>
  187. <indexterm zone="ch-system-inetutils tftp">
  188. <primary sortas="b-tftp">tftp</primary>
  189. </indexterm>
  190. </listitem>
  191. </varlistentry>
  192. <varlistentry id="traceroute">
  193. <term><command>traceroute</command></term>
  194. <listitem>
  195. <para>追踪您的数据包从您工作的主机到网络上另一台主机的路径,
  196. 显示中间通过的跳跃(网关)。</para>
  197. <indexterm zone="ch-system-inetutils traceroute">
  198. <primary sortas="b-traceroute">traceroute</primary>
  199. </indexterm>
  200. </listitem>
  201. </varlistentry>
  202. </variablelist>
  203. </sect2>
  204. </sect1>