[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY ntp-download-http "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-&ntp-version;.tar.gz">
|
---|
| 8 | <!ENTITY ntp-download-ftp "ftp://ftp.udel.edu/pub/ntp/ntp4/ntp-&ntp-version;.tar.gz">
|
---|
| 9 | <!ENTITY ntp-size "2.4 MB">
|
---|
| 10 | <!ENTITY ntp-buildsize "27 MB">
|
---|
| 11 | <!ENTITY ntp-time "0.53 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[619dd53] | 14 | <sect1 id="ntp" xreflabel="NTP-&ntp-version;">
|
---|
[00bb024c] | 15 | <?dbhtml filename="ntp.html"?>
|
---|
[39f01ca] | 16 | <title>NTP-&ntp-version;</title>
|
---|
| 17 |
|
---|
[d47e7ea9] | 18 | <sect2>
|
---|
| 19 | <title>Introduction to <application><acronym>NTP</acronym></application></title>
|
---|
| 20 |
|
---|
| 21 | <para>The <application><acronym>NTP</acronym></application> package contains a client and server
|
---|
| 22 | to keep the time synchronized between various computers over a network.
|
---|
| 23 | This package is the official reference implementation of the <acronym>NTP</acronym> protocol.</para>
|
---|
| 24 |
|
---|
| 25 | <sect3><title>Package information</title>
|
---|
| 26 | <itemizedlist spacing='compact'>
|
---|
| 27 | <listitem><para>Download (HTTP): <ulink url="&ntp-download-http;"/></para></listitem>
|
---|
| 28 | <listitem><para>Download (FTP): <ulink url="&ntp-download-ftp;"/></para></listitem>
|
---|
| 29 | <listitem><para>Download size: &ntp-size;</para></listitem>
|
---|
| 30 | <listitem><para>Estimated Disk space required: &ntp-buildsize;</para></listitem>
|
---|
| 31 | <listitem><para>Estimated build time: &ntp-time;</para></listitem></itemizedlist>
|
---|
| 32 | </sect3>
|
---|
| 33 |
|
---|
| 34 | <sect3><title><application><acronym>NTP</acronym></application> dependencies</title>
|
---|
| 35 | <sect4><title>Optional</title>
|
---|
[4ca92e2c] | 36 | <para><xref linkend="openssl"/></para></sect4>
|
---|
[d47e7ea9] | 37 | </sect3>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2>
|
---|
| 42 | <title>Installation of <application><acronym>NTP</acronym></application></title>
|
---|
| 43 |
|
---|
| 44 | <para>Install <application><acronym>NTP</acronym></application> by running the following
|
---|
| 45 | commands:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput><command>./configure --prefix=/usr --bindir=/usr/sbin \
|
---|
| 48 | --sysconfdir=/etc &&
|
---|
| 49 | make &&
|
---|
| 50 | make install</command></userinput></screen>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2>
|
---|
| 55 | <title>Configuring <application><acronym>NTP</acronym></application></title>
|
---|
| 56 |
|
---|
| 57 | <sect3><title>Config files</title>
|
---|
| 58 | <para><filename>/etc/ntp.conf</filename></para>
|
---|
| 59 | </sect3>
|
---|
| 60 |
|
---|
| 61 | <sect3><title>Configuration Information</title>
|
---|
| 62 |
|
---|
| 63 | <para>The following configuration file defines various <acronym>NTP</acronym>
|
---|
| 64 | stratum 2 servers with open access from different continents. It also
|
---|
| 65 | creates a drift file where <command>ntpd</command> stores the frequency
|
---|
| 66 | offset. Since the documentation included with the package is sparse,
|
---|
| 67 | visit the <acronym>NTP</acronym> website at
|
---|
| 68 | <ulink url="http://www.ntp.org/"/> for more information.</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput><command>cat > /etc/ntp.conf << "EOF"</command>
|
---|
| 71 | # Africa
|
---|
| 72 | server tock.nml.csir.co.za
|
---|
| 73 |
|
---|
| 74 | # Asia
|
---|
| 75 | server ntp.shim.org
|
---|
| 76 |
|
---|
| 77 | # Australia
|
---|
| 78 | server ntp.saard.net
|
---|
| 79 |
|
---|
| 80 | # Europe
|
---|
| 81 | server ntp.tuxfamily.net
|
---|
| 82 |
|
---|
| 83 | # North America
|
---|
| 84 | server clock.psu.edu
|
---|
| 85 |
|
---|
| 86 | driftfile /var/cache/ntp.drift
|
---|
| 87 | <command>EOF</command></userinput></screen>
|
---|
| 88 | </sect3>
|
---|
| 89 |
|
---|
| 90 | <sect3><title>Synchronizing the time</title>
|
---|
| 91 |
|
---|
| 92 | <para>There are two options. Option one is to run <command>ntpd</command>
|
---|
| 93 | continuously and allow it to synchronize the time in a gradual manner. The other
|
---|
| 94 | option is to run <command>ntpd</command> periodically (using cron)
|
---|
| 95 | and update the time each time <command>ntpd</command> is scheduled.</para>
|
---|
| 96 |
|
---|
| 97 | <para>If you choose Option one, then install the
|
---|
| 98 | <filename>/etc/rc.d/init.d/ntp</filename>
|
---|
| 99 | init script included in the
|
---|
| 100 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 101 |
|
---|
| 102 | <screen><userinput><command>make install-ntp</command></userinput></screen>
|
---|
| 103 |
|
---|
| 104 | <para>If you prefer to run ntpd periodically, add the following command to
|
---|
| 105 | root's <filename>crontab</filename>:</para>
|
---|
| 106 | <screen><userinput>ntpd -q</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | </sect3>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2>
|
---|
| 113 | <title>Contents</title>
|
---|
| 114 |
|
---|
| 115 | <para>The <application><acronym>NTP</acronym></application> package
|
---|
| 116 | contains <command>ntp-wait</command>, <command>ntptrace</command>,
|
---|
| 117 | <command>ntpd</command>, <command>ntpdate</command>,
|
---|
| 118 | <command>ntpdc</command>, <command>ntpq</command>,
|
---|
| 119 | <command>ntptime</command>, <command>tickadj</command> and
|
---|
| 120 | <command>ntp-keygen</command>.</para>
|
---|
| 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2><title>Description</title>
|
---|
| 125 |
|
---|
| 126 | <sect3><title>ntp-wait</title>
|
---|
| 127 | <para><command>ntp-wait</command> is useful at boot time, to delay the
|
---|
| 128 | boot sequence until <command>ntpd</command> has set the
|
---|
| 129 | time.</para></sect3>
|
---|
| 130 |
|
---|
| 131 | <sect3><title>ntptrace</title>
|
---|
| 132 | <para><command>ntptrace</command> traces a chain of
|
---|
| 133 | <acronym>NTP</acronym> servers back to the primary source.</para></sect3>
|
---|
| 134 |
|
---|
| 135 | <sect3><title>ntpd</title>
|
---|
| 136 | <para><command>ntpd</command> is a NTP daemon that runs in the
|
---|
| 137 | background and keeps the date and time synchronized based on response
|
---|
| 138 | from configured <acronym>NTP</acronym> servers. It also functions as a
|
---|
| 139 | <acronym>NTP</acronym> server.</para></sect3>
|
---|
| 140 |
|
---|
| 141 | <sect3><title>ntpdate</title>
|
---|
| 142 | <para><command>ntpdate</command> is a client program that sets the date
|
---|
| 143 | and time based on the response from an <acronym>NTP</acronym> server.
|
---|
| 144 | This command is deprecated.</para></sect3>
|
---|
| 145 |
|
---|
| 146 | <sect3><title>ntpdc</title>
|
---|
| 147 | <para><command>ntpdc</command> is used to query the
|
---|
| 148 | <acronym>NTP</acronym> daemon about its current state and to request
|
---|
| 149 | changes in that state.</para></sect3>
|
---|
| 150 |
|
---|
| 151 | <sect3><title>ntpq</title>
|
---|
| 152 | <para><command>ntpq</command> is an utility program used to monitor
|
---|
| 153 | <command>ntpd</command> operations and determine
|
---|
| 154 | performance.</para></sect3>
|
---|
| 155 |
|
---|
| 156 | <sect3><title>ntptime</title>
|
---|
| 157 | <para><command>ntptime</command> reads and displays time-related
|
---|
| 158 | kernel variables.</para></sect3>
|
---|
| 159 |
|
---|
| 160 | <sect3><title>tickadj</title>
|
---|
| 161 | <para><command>tickadj</command> reads, and optionally modifies,
|
---|
| 162 | several timekeeping-related variables in older kernels that do not have
|
---|
| 163 | support for precision timekeeping.</para></sect3>
|
---|
| 164 |
|
---|
| 165 | <sect3><title>ntp-keygen</title>
|
---|
| 166 | <para><command>ntp-keygen</command> generates cryptographic data files
|
---|
| 167 | used by the <acronym>NTP</acronym>v4 authentication and identification
|
---|
| 168 | schemes.</para></sect3>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
[39f01ca] | 171 |
|
---|
| 172 | </sect1>
|
---|