source: basicnet/netprogs/ntp.xml@ 419b61f

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

Fixed broken download URLs in the Python, PPP, WVDial and NTP instructions

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

  • Property mode set to 100644
File size: 10.1 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-download-http "http://ftp.cross-lfs.org/pub/blfs/svn/n/ntp-stable-&ntp-version;-20060224.tar.gz">
10 <!ENTITY ntp-download-ftp "ftp://anduin.linuxfromscratch.org/BLFS/svn/n/ntp-stable-&ntp-version;-20060224.tar.gz">
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">
15]>
16
17<sect1 id="ntp" xreflabel="NTP-&ntp-version;">
18 <?dbhtml filename="ntp.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>NTP-&ntp-version;</title>
26
27 <indexterm zone="ntp">
28 <primary sortas="a-NTP">NTP</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to NTP</title>
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
37 NTP protocol.</para>
38
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>
57 <para>Estimated build time: &ntp-time;</para>
58 </listitem>
59 </itemizedlist>
60
61<!--
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>
69-->
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>./configure --prefix=/usr --bindir=/usr/sbin \
88 --sysconfdir=/etc &amp;&amp;
89make</userinput></screen>
90
91 <para>To test the results, issue: <command>make check</command>.</para>
92
93 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
94
95<screen role="root"><userinput>make install &amp;&amp;
96install -v -m755 -d /usr/share/doc/ntp-&ntp-version; &amp;&amp;
97cp -v -R html /usr/share/doc/ntp-&ntp-version;/</userinput></screen>
98
99 </sect2>
100
101 <sect2 role="configuration">
102 <title>Configuring NTP</title>
103
104 <sect3 id="ntp-config">
105 <title>Config Files</title>
106
107 <para><filename>/etc/ntp.conf</filename></para>
108
109 <indexterm zone="ntp ntp-config">
110 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
111 </indexterm>
112
113 </sect3>
114
115 <sect3>
116 <title>Configuration Information</title>
117
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>
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 0.asia.pool.ntp.org
131
132# Australia
133server 0.oceania.pool.ntp.org
134
135# Europe
136server 0.europe.pool.ntp.org
137
138# North America
139server 0.north-america.pool.ntp.org
140
141# South America
142server 2.south-america.pool.ntp.org
143
144driftfile /var/cache/ntp.drift</literal>
145EOF</userinput></screen>
146
147 </sect3>
148
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>
153 continuously and allow it to synchronize the time in a gradual manner. The
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>
156
157 <para>If you choose Option one, then install the
158 <filename>/etc/rc.d/init.d/ntp</filename>
159 init script included in the
160 <xref linkend="bootscripts"/> package.</para>
161
162 <indexterm zone="ntp ntp-init">
163 <primary sortas="f-ntp">ntp</primary>
164 </indexterm>
165
166<screen role="root"><userinput>make install-ntp</userinput></screen>
167
168 <para>If you prefer to run <command>ntpd</command> periodically, add the
169 following command to <systemitem class="username">root</systemitem>'s
170 <filename>crontab</filename>:</para>
171
172<screen><literal>ntpd -q</literal></screen>
173
174 <para>Execute the following command if you would like to set the
175 hardware clock to the current system time at shutdown and reboot:</para>
176
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>
179
180 <para>The other way around is already set up by LFS.</para>
181
182 </sect3>
183
184 </sect2>
185
186 <sect2 role="content">
187 <title>Contents</title>
188
189 <segmentedlist>
190 <segtitle>Installed Programs</segtitle>
191 <segtitle>Installed Libraries</segtitle>
192 <segtitle>Installed Directory</segtitle>
193
194 <seglistitem>
195 <seg>ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq,
196 ntptime, ntptrace, and tickadj</seg>
197 <seg>None</seg>
198 <seg>/usr/share/doc/ntp-&ntp-version;</seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206
207 <varlistentry id="ntp-keygen">
208 <term><command>ntp-keygen</command></term>
209 <listitem>
210 <para>generates cryptographic data files used by the NTPv4 authentication
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>
217
218 <varlistentry id="ntp-wait">
219 <term><command>ntp-wait</command></term>
220 <listitem>
221 <para>is useful at boot time, to delay the boot sequence until
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>
228
229 <varlistentry id="ntpd">
230 <term><command>ntpd</command></term>
231 <listitem>
232 <para>is a NTP daemon that runs in the background and keeps
233 the date and time synchronized based on response from configured
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>
240
241 <varlistentry id="ntpdate">
242 <term><command>ntpdate</command></term>
243 <listitem>
244 <para>is a client program that sets the date and time based on
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>
251
252 <varlistentry id="ntpdc">
253 <term><command>ntpdc</command></term>
254 <listitem>
255 <para>is used to query the NTP daemon about its current state
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>
262
263 <varlistentry id="ntpq">
264 <term><command>ntpq</command></term>
265 <listitem>
266 <para>is an utility program used to monitor <command>ntpd</command>
267 operations and determine performance.</para>
268 <indexterm zone="ntp ntpq">
269 <primary sortas="b-ntpq">ntpq</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
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>
283
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">
289 <primary sortas="b-ntptrace">ntptrace</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="tickadj">
295 <term><command>tickadj</command></term>
296 <listitem>
297 <para>reads, and optionally modifies, several timekeeping-related
298 variables in older kernels that do not have support for precision
299 timekeeping.</para>
300 <indexterm zone="ntp tickadj">
301 <primary sortas="b-tickadj">tickadj</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 </variablelist>
307
308 </sect2>
309
310</sect1>
Note: See TracBrowser for help on using the repository browser.