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

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

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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