source: basicnet/netprogs/ntp.xml@ ea804bc

10.0 10.1 11.0 11.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 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since ea804bc was ea804bc, checked in by Randy McMurchy <randy@…>, 15 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
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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-4.2/ntp-&ntp-version;.tar.gz">
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"> -->
10 <!ENTITY ntp-md5sum "6f381e3764eac481bed9cf7e4d508952">
11 <!ENTITY ntp-size "3.3 MB">
12 <!ENTITY ntp-buildsize "27.2 MB">
13 <!ENTITY ntp-time "0.4 SBU">
14]>
15
16<sect1 id="ntp" xreflabel="NTP-&ntp-version;">
17 <?dbhtml filename="ntp.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>NTP-&ntp-version;</title>
25
26 <indexterm zone="ntp">
27 <primary sortas="a-NTP">NTP</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to NTP</title>
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
36 NTP protocol.</para>
37
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>
56 <para>Estimated build time: &ntp-time;</para>
57 </listitem>
58 </itemizedlist>
59
60<!--
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>
68-->
69
70 <bridgehead renderas="sect3">NTP Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional</bridgehead>
73 <para role="optional"><xref linkend="openssl"/></para>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/ntp"/></para>
77
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of NTP</title>
82
83 <para>Install <application>NTP</application> by running
84 the following commands:</para>
85
86<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
87 --with-binsubdir=sbin &amp;&amp;
88make</userinput></screen>
89
90 <para>To test the results, issue: <command>make check</command>.</para>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94<screen role="root"><userinput>make install &amp;&amp;
95install -v -m755 -d /usr/share/doc/ntp-&ntp-version; &amp;&amp;
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>
106
107 </sect2>
108
109 <sect2 role="configuration">
110 <title>Configuring NTP</title>
111
112 <sect3 id="ntp-config">
113 <title>Config Files</title>
114
115 <para><filename>/etc/ntp.conf</filename></para>
116
117 <indexterm zone="ntp ntp-config">
118 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
119 </indexterm>
120
121 </sect3>
122
123 <sect3>
124 <title>Configuration Information</title>
125
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>
132
133<screen role="root"><userinput>cat &gt; /etc/ntp.conf &lt;&lt; "EOF"
134<literal># Africa
135server tock.nml.csir.co.za
136
137# Asia
138server 0.asia.pool.ntp.org
139
140# Australia
141server 0.oceania.pool.ntp.org
142
143# Europe
144server 0.europe.pool.ntp.org
145
146# North America
147server 0.north-america.pool.ntp.org
148
149# South America
150server 2.south-america.pool.ntp.org
151
152driftfile /var/cache/ntp.drift</literal>
153EOF</userinput></screen>
154
155 </sect3>
156
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>
161 continuously and allow it to synchronize the time in a gradual manner. The
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>
164
165 <para>If you choose Option one, then install the
166 <filename>/etc/rc.d/init.d/ntp</filename>
167 init script included in the
168 <xref linkend="bootscripts"/> package.</para>
169
170 <indexterm zone="ntp ntp-init">
171 <primary sortas="f-ntp">ntp</primary>
172 </indexterm>
173
174<screen role="root"><userinput>make install-ntp</userinput></screen>
175
176 <para>If you prefer to run <command>ntpd</command> periodically, add the
177 following command to <systemitem class="username">root</systemitem>'s
178 <filename>crontab</filename>:</para>
179
180<screen><literal>ntpd -q</literal></screen>
181
182 <para>Execute the following command if you would like to set the
183 hardware clock to the current system time at shutdown and reboot:</para>
184
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>
187
188 <para>The other way around is already set up by LFS.</para>
189
190 </sect3>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directory</segtitle>
201
202 <seglistitem>
203 <seg>ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq,
204 ntptime, ntptrace, sntp and tickadj</seg>
205 <seg>None</seg>
206 <seg>/usr/share/doc/ntp-&ntp-version;</seg>
207 </seglistitem>
208 </segmentedlist>
209
210 <variablelist>
211 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
212 <?dbfo list-presentation="list"?>
213 <?dbhtml list-presentation="table"?>
214
215 <varlistentry id="ntp-keygen">
216 <term><command>ntp-keygen</command></term>
217 <listitem>
218 <para>generates cryptographic data files used by the NTPv4 authentication
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>
225
226 <varlistentry id="ntp-wait">
227 <term><command>ntp-wait</command></term>
228 <listitem>
229 <para>is useful at boot time, to delay the boot sequence until
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>
236
237 <varlistentry id="ntpd">
238 <term><command>ntpd</command></term>
239 <listitem>
240 <para>is a NTP daemon that runs in the background and keeps
241 the date and time synchronized based on response from configured
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>
248
249 <varlistentry id="ntpdate">
250 <term><command>ntpdate</command></term>
251 <listitem>
252 <para>is a client program that sets the date and time based on
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>
259
260 <varlistentry id="ntpdc">
261 <term><command>ntpdc</command></term>
262 <listitem>
263 <para>is used to query the NTP daemon about its current state
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>
270
271 <varlistentry id="ntpq">
272 <term><command>ntpq</command></term>
273 <listitem>
274 <para>is an utility program used to monitor <command>ntpd</command>
275 operations and determine performance.</para>
276 <indexterm zone="ntp ntpq">
277 <primary sortas="b-ntpq">ntpq</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
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>
291
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">
297 <primary sortas="b-ntptrace">ntptrace</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
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
312 <varlistentry id="tickadj">
313 <term><command>tickadj</command></term>
314 <listitem>
315 <para>reads, and optionally modifies, several timekeeping-related
316 variables in older kernels that do not have support for precision
317 timekeeping.</para>
318 <indexterm zone="ntp tickadj">
319 <primary sortas="b-tickadj">tickadj</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 </variablelist>
325
326 </sect2>
327
328</sect1>
Note: See TracBrowser for help on using the repository browser.