source: basicnet/netprogs/ntp.xml@ a0f03b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 a0f03b0 was a0f03b0, checked in by Archaic <archaic@…>, 20 years ago

Inserting sect1info

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

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