source: basicnet/netprogs/ntp.xml@ 9d332fc9

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 9d332fc9 was 9d332fc9, checked in by Randy McMurchy <randy@…>, 17 years ago

Changed hard-coded references to the Anduin package server with already-existing entities

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

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