source: basicnet/netprogs/ntp.xml@ 9700831f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9700831f was 9d91468a, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

update to ntp-4.2.0a

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5998 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.0 KB
RevLine 
[d47e7ea9]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[d47e7ea9]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[9d91468a]7 <!ENTITY ntp-download-http "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-stable-&ntp-version;-20060224.tar.gz">
8 <!ENTITY ntp-download-ftp "ftp://ftp.udel.edu/pub/ntp/ntp4/ntp-stable-&ntp-version;-20060224.tar.gz">
9 <!ENTITY ntp-md5sum "49d4a704b49dc1ef2a7ec0b7938c3ae1">
10 <!ENTITY ntp-size "2.3 MB">
11 <!ENTITY ntp-buildsize "22.1 MB">
12 <!ENTITY ntp-time "0.4 SBU">
[d47e7ea9]13]>
14
[619dd53]15<sect1 id="ntp" xreflabel="NTP-&ntp-version;">
[dc6715a]16 <?dbhtml filename="ntp.html"?>
[56ab82c]17
[dc6715a]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[4dbbf634]21 <keywordset>
22 <keyword role="package">ntp-&ntp-version;.tar</keyword>
[25475f5]23 <keyword role="ftpdir">ntp</keyword>
[4dbbf634]24 </keywordset>
[dc6715a]25 </sect1info>
[56ab82c]26
[dc6715a]27 <title>NTP-&ntp-version;</title>
[56ab82c]28
[dc6715a]29 <indexterm zone="ntp">
30 <primary sortas="a-NTP">NTP</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to NTP</title>
[56ab82c]35
36 <para>The <application>NTP</application> package contains a
37 client and server to keep the time synchronized between various computers over
38 a network. This package is the official reference implementation of the
[dc6715a]39 NTP protocol.</para>
[56ab82c]40
[dc6715a]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&ntp-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&ntp-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &ntp-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &ntp-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &ntp-buildsize;</para>
57 </listitem>
58 <listitem>
[2174baa]59 <para>Estimated build time: &ntp-time;</para>
60 </listitem>
[dc6715a]61 </itemizedlist>
[56ab82c]62
[9d91468a]63<!--
[abf1070b]64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing='compact'>
66 <listitem>
67 <para>Required patch: <ulink
68 url="&patch-root;/ntp-&ntp-version;-gcc4-1.patch"/></para>
69 </listitem>
70 </itemizedlist>
[9d91468a]71-->
[abf1070b]72
[db0eb6a]73 <bridgehead renderas="sect3">NTP Dependencies</bridgehead>
[56ab82c]74
[dc6715a]75 <bridgehead renderas="sect4">Optional</bridgehead>
[4dbbf634]76 <para role="optional"><xref linkend="openssl"/></para>
[56ab82c]77
[061ec9d]78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/ntp"/></para>
80
[dc6715a]81 </sect2>
[56ab82c]82
[dc6715a]83 <sect2 role="installation">
84 <title>Installation of NTP</title>
85
[56ab82c]86 <para>Install <application>NTP</application> by running
[dc6715a]87 the following commands:</para>
88
[9d91468a]89<screen><userinput>./configure --prefix=/usr --bindir=/usr/sbin \
[d47e7ea9]90 --sysconfdir=/etc &amp;&amp;
[11cf9f2]91make</userinput></screen>
92
93 <para>To test the results, issue: <command>make check</command>.</para>
[56ab82c]94
[11cf9f2]95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[56ab82c]96
[339fbfb9]97<screen role="root"><userinput>make install &amp;&amp;
98install -v -m755 -d /usr/share/doc/ntp-&ntp-version; &amp;&amp;
[45d5ee9]99cp -v -R html /usr/share/doc/ntp-&ntp-version;/</userinput></screen>
[11cf9f2]100
[dc6715a]101 </sect2>
[56ab82c]102
[dc6715a]103 <sect2 role="configuration">
104 <title>Configuring NTP</title>
[56ab82c]105
[dc6715a]106 <sect3 id="ntp-config">
107 <title>Config Files</title>
[56ab82c]108
[dc6715a]109 <para><filename>/etc/ntp.conf</filename></para>
[56ab82c]110
[dc6715a]111 <indexterm zone="ntp ntp-config">
112 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
113 </indexterm>
[56ab82c]114
[dc6715a]115 </sect3>
[56ab82c]116
[dc6715a]117 <sect3>
118 <title>Configuration Information</title>
119
[ea57941f]120 <para>The following configuration file defines various NTP servers with
121 open access from different continents. It also creates a drift file where
122 <command>ntpd</command> stores the frequency offset. Since the
123 documentation included with the package is sparse, visit the NTP website
124 at <ulink url="http://www.ntp.org/"/> and <ulink
125 url="http://www.pool.ntp.org/"/> for more information.</para>
[dc6715a]126
127<screen role="root"><userinput>cat &gt; /etc/ntp.conf &lt;&lt; "EOF"
128<literal># Africa
[d47e7ea9]129server tock.nml.csir.co.za
130
131# Asia
[bca6dfb6]132server 0.asia.pool.ntp.org
[d47e7ea9]133
134# Australia
[bca6dfb6]135server 0.oceania.pool.ntp.org
[56ab82c]136
[d47e7ea9]137# Europe
[ea57941f]138server 0.europe.pool.ntp.org
[d47e7ea9]139
140# North America
[ea57941f]141server 0.north-america.pool.ntp.org
142
143# South America
[bca6dfb6]144server 2.south-america.pool.ntp.org
[d47e7ea9]145
[dc6715a]146driftfile /var/cache/ntp.drift</literal>
147EOF</userinput></screen>
148
149 </sect3>
[56ab82c]150
[dc6715a]151 <sect3 id="ntp-init">
152 <title>Synchronizing the Time</title>
153
154 <para>There are two options. Option one is to run <command>ntpd</command>
[56ab82c]155 continuously and allow it to synchronize the time in a gradual manner. The
[dc6715a]156 other option is to run <command>ntpd</command> periodically (using cron)
157 and update the time each time <command>ntpd</command> is scheduled.</para>
[56ab82c]158
159 <para>If you choose Option one, then install the
[dc6715a]160 <filename>/etc/rc.d/init.d/ntp</filename>
161 init script included in the
[5254d12]162 <xref linkend="bootscripts"/> package.</para>
[56ab82c]163
164 <indexterm zone="ntp ntp-init">
[dc6715a]165 <primary sortas="f-ntp">ntp</primary>
[56ab82c]166 </indexterm>
[dc6715a]167
168<screen role="root"><userinput>make install-ntp</userinput></screen>
169
[56ab82c]170 <para>If you prefer to run <command>ntpd</command> periodically, add the
171 following command to <systemitem class="username">root</systemitem>'s
[dc6715a]172 <filename>crontab</filename>:</para>
[56ab82c]173
[dc6715a]174<screen><literal>ntpd -q</literal></screen>
175
176 <para>Execute the following command if you would like to set the
[339fbfb9]177 hardware clock to the current system time at shutdown and reboot:</para>
[dc6715a]178
[e3353b3]179<screen role="root"><userinput>ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &amp;&amp;
180ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>
[dc6715a]181
182 <para>The other way around is already set up by LFS.</para>
[56ab82c]183
[dc6715a]184 </sect3>
[56ab82c]185
[dc6715a]186 </sect2>
[56ab82c]187
[dc6715a]188 <sect2 role="content">
189 <title>Contents</title>
[56ab82c]190
[dc6715a]191 <segmentedlist>
192 <segtitle>Installed Programs</segtitle>
193 <segtitle>Installed Libraries</segtitle>
[22292f3a]194 <segtitle>Installed Directory</segtitle>
[56ab82c]195
[dc6715a]196 <seglistitem>
[56ab82c]197 <seg>ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq,
[dc6715a]198 ntptime, ntptrace, and tickadj</seg>
199 <seg>None</seg>
[22292f3a]200 <seg>/usr/share/doc/ntp-&ntp-version;</seg>
[dc6715a]201 </seglistitem>
202 </segmentedlist>
[56ab82c]203
[dc6715a]204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
[56ab82c]208
[dc6715a]209 <varlistentry id="ntp-keygen">
210 <term><command>ntp-keygen</command></term>
211 <listitem>
[56ab82c]212 <para>generates cryptographic data files used by the NTPv4 authentication
[dc6715a]213 and identification schemes.</para>
214 <indexterm zone="ntp ntp-keygen">
215 <primary sortas="b-ntp-keygen">ntp-keygen</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
[56ab82c]219
[dc6715a]220 <varlistentry id="ntp-wait">
221 <term><command>ntp-wait</command></term>
222 <listitem>
[56ab82c]223 <para>is useful at boot time, to delay the boot sequence until
[dc6715a]224 <command>ntpd</command> has set the time.</para>
225 <indexterm zone="ntp ntp-wait">
226 <primary sortas="b-ntp-wait">ntp-wait</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
[56ab82c]230
[dc6715a]231 <varlistentry id="ntpd">
232 <term><command>ntpd</command></term>
233 <listitem>
[56ab82c]234 <para>is a NTP daemon that runs in the background and keeps
235 the date and time synchronized based on response from configured
[dc6715a]236 NTP servers. It also functions as a NTP server.</para>
237 <indexterm zone="ntp ntpd">
238 <primary sortas="b-ntpd">ntpd</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
[56ab82c]242
[dc6715a]243 <varlistentry id="ntpdate">
244 <term><command>ntpdate</command></term>
245 <listitem>
[56ab82c]246 <para>is a client program that sets the date and time based on
[dc6715a]247 the response from an NTP server. This command is deprecated.</para>
248 <indexterm zone="ntp ntpdate">
249 <primary sortas="b-ntpdate">ntpdate</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
[56ab82c]253
[dc6715a]254 <varlistentry id="ntpdc">
255 <term><command>ntpdc</command></term>
256 <listitem>
[56ab82c]257 <para>is used to query the NTP daemon about its current state
[dc6715a]258 and to request changes in that state.</para>
259 <indexterm zone="ntp ntpdc">
260 <primary sortas="b-ntpdc">ntpdc</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
[56ab82c]264
[dc6715a]265 <varlistentry id="ntpq">
266 <term><command>ntpq</command></term>
267 <listitem>
[56ab82c]268 <para>is an utility program used to monitor <command>ntpd</command>
[dc6715a]269 operations and determine performance.</para>
270 <indexterm zone="ntp ntpq">
271 <primary sortas="b-ntpq">ntpq</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
[56ab82c]275
[dc6715a]276 <varlistentry id="ntptime">
277 <term><command>ntptime</command></term>
278 <listitem>
279 <para>reads and displays time-related kernel variables.</para>
280 <indexterm zone="ntp ntptime">
281 <primary sortas="b-ntptime">ntptime</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
[56ab82c]285
[dc6715a]286 <varlistentry id="ntptrace">
287 <term><command>ntptrace</command></term>
288 <listitem>
289 <para>traces a chain of NTP servers back to the primary source.</para>
290 <indexterm zone="ntp ntptrace">
[56ab82c]291 <primary sortas="b-ntptrace">ntptrace</primary>
[dc6715a]292 </indexterm>
293 </listitem>
294 </varlistentry>
[56ab82c]295
[dc6715a]296 <varlistentry id="tickadj">
297 <term><command>tickadj</command></term>
298 <listitem>
[56ab82c]299 <para>reads, and optionally modifies, several timekeeping-related
300 variables in older kernels that do not have support for precision
[dc6715a]301 timekeeping.</para>
302 <indexterm zone="ntp tickadj">
303 <primary sortas="b-tickadj">tickadj</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
[56ab82c]307
[dc6715a]308 </variablelist>
[56ab82c]309
[dc6715a]310 </sect2>
[56ab82c]311
[39f01ca]312</sect1>
Note: See TracBrowser for help on using the repository browser.