Files
master/chapter06/inetutils.html
2015-05-23 18:50:06 +08:00

404 lines
13 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content=
"application/xhtml+xml; charset=utf-8" />
<title>
6.41.&nbsp;Inetutils-1.9.2
</title>
<link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css"
media="print" />
</head>
<body class="lfs" id="lfs-7.7-systemd">
<div class="navheader">
<h4>
Linux From Scratch - Version 7.7-systemd
</h4>
<h3>
Chapter&nbsp;6.&nbsp;Installing Basic System Software
</h3>
<ul>
<li class="prev">
<a accesskey="p" href="expat.html" title="Expat-2.1.0">Prev</a>
<p>
Expat-2.1.0
</p>
</li>
<li class="next">
<a accesskey="n" href="perl.html" title="Perl-5.20.2">Next</a>
<p>
Perl-5.20.2
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter06.html" title=
"Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
</li>
<li class="home">
<a accesskey="h" href="../index.html" title=
"Linux From Scratch - Version 7.7-systemd">Home</a>
</li>
</ul>
</div>
<div class="wrap" lang="en" xml:lang="en">
<h1 class="sect1">
<a id="ch-system-inetutils" name="ch-system-inetutils"></a>6.41.
Inetutils-1.9.2
</h1>
<div class="package" lang="en" xml:lang="en">
<p>
The Inetutils package contains programs for basic networking.
</p>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong class="segtitle">Approximate build time:</strong>
<span class="segbody">0.4 SBU</span>
</div>
<div class="seg">
<strong class="segtitle">Required disk space:</strong>
<span class="segbody">34 MB</span>
</div>
</div>
</div>
</div>
<div class="installation" lang="en" xml:lang="en">
<h2 class="sect2">
6.41.1. Installation of Inetutils
</h2>
<p>
Create a definition to allow the <span class=
"command"><strong>ifconfig</strong></span> program to build
properly:
</p>
<pre class="userinput">
<kbd class=
"command">echo '#define PATH_PROCNET_DEV "/proc/net/dev"' &gt;&gt; ifconfig/system/linux.h </kbd>
</pre>
<p>
Prepare Inetutils for compilation:
</p>
<pre class="userinput">
<kbd class="command">./configure --prefix=/usr \
--localstatedir=/var \
--disable-logger \
--disable-whois \
--disable-servers</kbd>
</pre>
<div class="variablelist">
<p class="title">
<strong>The meaning of the configure options:</strong>
</p>
<dl class="variablelist">
<dt>
<span class="term"><em class=
"parameter"><code>--disable-logger</code></em></span>
</dt>
<dd>
<p>
This option prevents Inetutils from installing the
<span class="command"><strong>logger</strong></span> program,
which is used by scripts to pass messages to the System Log
Daemon. Do not install it because Util-linux installs a more
recent version.
</p>
</dd>
<dt>
<span class="term"><em class=
"parameter"><code>--disable-whois</code></em></span>
</dt>
<dd>
<p>
This option disables the building of the Inetutils
<span class="command"><strong>whois</strong></span> client,
which is out of date. Instructions for a better <span class=
"command"><strong>whois</strong></span> client are in the
BLFS book.
</p>
</dd>
<dt>
<span class="term"><em class=
"parameter"><code>--disable-servers</code></em></span>
</dt>
<dd>
<p>
This disables the installation of the various network servers
included as part of the Inetutils package. These servers are
deemed not appropriate in a basic LFS system. Some are
insecure by nature and are only considered safe on trusted
networks. Note that better replacements are available for
many of these servers.
</p>
</dd>
</dl>
</div>
<p>
Compile the package:
</p>
<pre class="userinput">
<kbd class="command">make</kbd>
</pre>
<p>
To test the results, issue:
</p>
<pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
<p>
Install the package:
</p>
<pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
<p>
Move some programs so they are available if <code class=
"filename">/usr</code> is not accessible:
</p>
<pre class="userinput">
<kbd class="command">mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
mv -v /usr/bin/ifconfig /sbin</kbd>
</pre>
</div>
<div class="content" lang="en" xml:lang="en">
<h2 class="sect2">
<a id="contents-inetutils" name="contents-inetutils"></a>6.41.2.
Contents of Inetutils
</h2>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong class="segtitle">Installed programs:</strong>
<span class="segbody">ftp, ifconfig, hostname, ping, ping6,
rcp, rexec, rlogin, rsh, talk, telnet, tftp, and
traceroute</span>
</div>
</div>
</div>
<div class="variablelist">
<h3>
Short Descriptions
</h3>
<table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top" />
<col />
</colgroup>
<tbody>
<tr>
<td>
<p>
<a id="ftp" name="ftp"></a><span class=
"term"><span class="command"><strong>ftp</strong></span></span>
</p>
</td>
<td>
<p>
Is the file transfer protocol program
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="ifconfig" name="ifconfig"></a><span class=
"term"><span class=
"command"><strong>ifconfig</strong></span></span>
</p>
</td>
<td>
<p>
Manages network interfaces
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="hostname" name="hostname"></a><span class=
"term"><span class=
"command"><strong>hostname</strong></span></span>
</p>
</td>
<td>
<p>
Reports or sets the name of the host
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="ping" name="ping"></a><span class=
"term"><span class=
"command"><strong>ping</strong></span></span>
</p>
</td>
<td>
<p>
Sends echo-request packets and reports how long the
replies take
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="ping6" name="ping6"></a><span class=
"term"><span class=
"command"><strong>ping6</strong></span></span>
</p>
</td>
<td>
<p>
A version of <span class=
"command"><strong>ping</strong></span> for IPv6 networks
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="rcp" name="rcp"></a><span class=
"term"><span class="command"><strong>rcp</strong></span></span>
</p>
</td>
<td>
<p>
Performs remote file copy
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="rexec" name="rexec"></a><span class=
"term"><span class=
"command"><strong>rexec</strong></span></span>
</p>
</td>
<td>
<p>
Executes commands on a remote host
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="rlogin" name="rlogin"></a><span class=
"term"><span class=
"command"><strong>rlogin</strong></span></span>
</p>
</td>
<td>
<p>
Performs remote login
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="rsh" name="rsh"></a><span class=
"term"><span class="command"><strong>rsh</strong></span></span>
</p>
</td>
<td>
<p>
Runs a remote shell
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="talk" name="talk"></a><span class=
"term"><span class=
"command"><strong>talk</strong></span></span>
</p>
</td>
<td>
<p>
Is used to chat with another user
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="telnet" name="telnet"></a><span class=
"term"><span class=
"command"><strong>telnet</strong></span></span>
</p>
</td>
<td>
<p>
An interface to the TELNET protocol
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="tftp" name="tftp"></a><span class=
"term"><span class=
"command"><strong>tftp</strong></span></span>
</p>
</td>
<td>
<p>
A trivial file transfer program
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="traceroute" name="traceroute"></a><span class=
"term"><span class=
"command"><strong>traceroute</strong></span></span>
</p>
</td>
<td>
<p>
Traces the route your packets take from the host you are
working on to another host on a network, showing all the
intermediate hops (gateways) along the way
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="navfooter">
<ul>
<li class="prev">
<a accesskey="p" href="expat.html" title="Expat-2.1.0">Prev</a>
<p>
Expat-2.1.0
</p>
</li>
<li class="next">
<a accesskey="n" href="perl.html" title="Perl-5.20.2">Next</a>
<p>
Perl-5.20.2
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter06.html" title=
"Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
</li>
<li class="home">
<a accesskey="h" href="../index.html" title=
"Linux From Scratch - Version 7.7-systemd">Home</a>
</li>
</ul>
</div>
</body>
</html>