source: basicnet/netprogs/ntp.xml@ ea804bc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ea804bc was ea804bc, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated several package's broken download URLs

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

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