Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node215.html
2024-02-19 00:23:35 -05:00

42 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>5.3.2.7 Setting your hostname</TITLE>
</HEAD>
<BODY>
<meta name="description" value="5.3.2.7 Setting your hostname">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html4533 HREF="node216.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4531 HREF="node208.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4525 HREF="node214.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4535 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4536 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4534 HREF="node216.html">5.3.2.8 Trying it out</A>
<B>Up:</B> <A NAME=tex2html4532 HREF="node208.html">5.3.2 Configuring TCP/IP on </A>
<B> Previous:</B> <A NAME=tex2html4526 HREF="node214.html">5.3.2.6 /etc/resolv.conf</A>
<BR> <HR> <P>
<H3><A NAME=SECTION00732700000000000000>5.3.2.7 Setting your hostname</A></H3>
<P>
<A NAME=5889>&#160;</A>
<A NAME=6099>&#160;</A>
You should set your system hostname with the <tt>hostname</tt> command.
This is usually called from <tt>/etc/rc</tt> or <tt>/etc/rc.local</tt>;
simply search your system <tt>rc</tt> files to determine where it is
invoked. For example, if your (full) hostname is <tt>loomer.vpizza.com</tt>,
edit the appropriate <tt>rc</tt> file to execute the command:
<P><TT> /bin/hostname loomer.vpizza.com
<P></TT>
Note that the <tt>hostname</tt> executable may not be found in <tt>/bin</tt>
on your system.
<P>
<BR> <HR><A NAME=tex2html4533 HREF="node216.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4531 HREF="node208.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4525 HREF="node214.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4535 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4536 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4534 HREF="node216.html">5.3.2.8 Trying it out</A>
<B>Up:</B> <A NAME=tex2html4532 HREF="node208.html">5.3.2 Configuring TCP/IP on </A>
<B> Previous:</B> <A NAME=tex2html4526 HREF="node214.html">5.3.2.6 /etc/resolv.conf</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>