source: basicnet/netprogs/ntp.xml@ 7f76b96

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 7f76b96 was 7f76b96, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Reverted the DTD change. That don't be done untiltomorrow.

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

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="ntp.html"?>
21<title>NTP-&ntp-version;</title>
22
23<sect2>
24<title>Introduction to <application><acronym>NTP</acronym></application></title>
25
26<para>The <application><acronym>NTP</acronym></application> package contains a
27client and server to keep the time synchronized between various computers over
28a network. This package is the official reference implementation of the
29<acronym>NTP</acronym> protocol.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP):
34<ulink url="&ntp-download-http;"/></para></listitem>
35<listitem><para>Download (FTP):
36<ulink url="&ntp-download-ftp;"/></para></listitem>
37<listitem><para>Download MD5 sum: &ntp-md5sum;</para></listitem>
38<listitem><para>Download size: &ntp-size;</para></listitem>
39<listitem><para>Estimated disk space required:
40&ntp-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&ntp-time;</para></listitem></itemizedlist>
43</sect3>
44
45<sect3><title><application><acronym>NTP</acronym></application>
46dependencies</title>
47<sect4><title>Optional</title>
48<para><xref linkend="openssl"/></para>
49</sect4>
50</sect3>
51
52</sect2>
53
54<sect2>
55<title>Installation of <application><acronym>NTP</acronym></application></title>
56
57<para>Install <application><acronym>NTP</acronym></application> by running
58the following commands:</para>
59
60<screen><userinput><command>./configure --prefix=/usr --bindir=/usr/sbin \
61 --sysconfdir=/etc &amp;&amp;
62make &amp;&amp;
63make install</command></userinput></screen>
64
65</sect2>
66
67<sect2>
68<title>Configuring <application><acronym>NTP</acronym></application></title>
69
70<sect3><title>Config files</title>
71<para><filename>/etc/ntp.conf</filename></para>
72</sect3>
73
74<sect3><title>Configuration Information</title>
75
76<para>The following configuration file defines various <acronym>NTP</acronym>
77stratum 2 servers with open access from different continents. It also
78creates a drift file where <command>ntpd</command> stores the frequency
79offset. Since the documentation included with the package is sparse,
80visit the <acronym>NTP</acronym> website at
81<ulink url="http://www.ntp.org/"/> for more information.</para>
82
83<screen><userinput><command>cat &gt; /etc/ntp.conf &lt;&lt; "EOF"</command>
84# Africa
85server tock.nml.csir.co.za
86
87# Asia
88server ntp.shim.org
89
90# Australia
91server ntp.saard.net
92
93# Europe
94server ntp.tuxfamily.net
95
96# North America
97server clock.psu.edu
98
99driftfile /var/cache/ntp.drift
100<command>EOF</command></userinput></screen>
101</sect3>
102
103<sect3><title>Synchronizing the time</title>
104
105<para>There are two options. Option one is to run <command>ntpd</command>
106continuously and allow it to synchronize the time in a gradual manner. The
107other option is to run <command>ntpd</command> periodically (using cron)
108and update the time each time <command>ntpd</command> is scheduled.</para>
109
110<para>If you choose Option one, then install the
111<filename>/etc/rc.d/init.d/ntp</filename>
112init script included in the
113<xref linkend="intro-important-bootscripts"/> package.</para>
114
115<screen><userinput><command>make install-ntp</command></userinput></screen>
116
117<para>If you prefer to run ntpd periodically, add the following command to
118root's <filename>crontab</filename>:</para>
119<screen><userinput>ntpd -q</userinput></screen>
120
121<para>Execute the following command if you would like to set the
122hardware clock at shutdown and reboot based on the current system
123time:</para>
124
125<screen><userinput><command>ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &amp;&amp;
126ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</command></userinput></screen>
127
128<para>The other way around is already set up by
129<acronym>LFS</acronym>.</para>
130
131</sect3>
132
133</sect2>
134
135<sect2>
136<title>Contents</title>
137
138<para>The <application><acronym>NTP</acronym></application> package
139contains <command>ntp-wait</command>, <command>ntptrace</command>,
140<command>ntpd</command>, <command>ntpdate</command>,
141<command>ntpdc</command>, <command>ntpq</command>,
142<command>ntptime</command>, <command>tickadj</command> and
143<command>ntp-keygen</command>.</para>
144
145</sect2>
146
147<sect2><title>Description</title>
148
149<sect3><title>ntp-wait</title>
150<para><command>ntp-wait</command> is useful at boot time, to delay the
151boot sequence until <command>ntpd</command> has set the
152time.</para></sect3>
153
154<sect3><title>ntptrace</title>
155<para><command>ntptrace</command> traces a chain of
156<acronym>NTP</acronym> servers back to the primary source.</para></sect3>
157
158<sect3><title>ntpd</title>
159<para><command>ntpd</command> is a NTP daemon that runs in the
160background and keeps the date and time synchronized based on response
161from configured <acronym>NTP</acronym> servers. It also functions as a
162<acronym>NTP</acronym> server.</para></sect3>
163
164<sect3><title>ntpdate</title>
165<para><command>ntpdate</command> is a client program that sets the date
166and time based on the response from an <acronym>NTP</acronym> server.
167This command is deprecated.</para></sect3>
168
169<sect3><title>ntpdc</title>
170<para><command>ntpdc</command> is used to query the
171<acronym>NTP</acronym> daemon about its current state and to request
172changes in that state.</para></sect3>
173
174<sect3><title>ntpq</title>
175<para><command>ntpq</command> is an utility program used to monitor
176<command>ntpd</command> operations and determine
177performance.</para></sect3>
178
179<sect3><title>ntptime</title>
180<para><command>ntptime</command> reads and displays time-related
181kernel variables.</para></sect3>
182
183<sect3><title>tickadj</title>
184<para><command>tickadj</command> reads, and optionally modifies,
185several timekeeping-related variables in older kernels that do not have
186support for precision timekeeping.</para></sect3>
187
188<sect3><title>ntp-keygen</title>
189<para><command>ntp-keygen</command> generates cryptographic data files
190used by the <acronym>NTP</acronym>v4 authentication and identification
191schemes.</para></sect3>
192
193</sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.