source: basicnet/netprogs/ntp.xml@ edeebe2

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 edeebe2 was edeebe2, checked in by Andrew Benton <andy@…>, 18 years ago

Dead links :o(

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

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