source: basicnet/netprogs/ntp.xml@ 25475f5

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 25475f5 was 25475f5, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. Basicnet.

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

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