source: basicnet/netprogs/ntp.xml@ 6098c66

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 6098c66 was 339fbfb9, checked in by Randy McMurchy <randy@…>, 19 years ago

Fixed typos and minor wording changes to various Chapter 18 package instructions

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

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