source: basicnet/netprogs/ntp.xml@ 518538f

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 518538f was 518538f, checked in by Randy McMurchy <randy@…>, 19 years ago

Standardized the 'Estimated disk space required' text

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

  • Property mode set to 100644
File size: 6.3 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<para>Execute the following command if you would like to set the
113hardware clock at shutdown and reboot based on the current system
114time:</para>
115
116<screen><userinput><command>ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &amp;&amp;
117ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</command></userinput></screen>
118
119<para>The other way around is already set up by
120<acronym>LFS</acronym>.</para>
121
122</sect3>
123
124</sect2>
125
126<sect2>
127<title>Contents</title>
128
129<para>The <application><acronym>NTP</acronym></application> package
130contains <command>ntp-wait</command>, <command>ntptrace</command>,
131<command>ntpd</command>, <command>ntpdate</command>,
132<command>ntpdc</command>, <command>ntpq</command>,
133<command>ntptime</command>, <command>tickadj</command> and
134<command>ntp-keygen</command>.</para>
135
136</sect2>
137
138<sect2><title>Description</title>
139
140<sect3><title>ntp-wait</title>
141<para><command>ntp-wait</command> is useful at boot time, to delay the
142boot sequence until <command>ntpd</command> has set the
143time.</para></sect3>
144
145<sect3><title>ntptrace</title>
146<para><command>ntptrace</command> traces a chain of
147<acronym>NTP</acronym> servers back to the primary source.</para></sect3>
148
149<sect3><title>ntpd</title>
150<para><command>ntpd</command> is a NTP daemon that runs in the
151background and keeps the date and time synchronized based on response
152from configured <acronym>NTP</acronym> servers. It also functions as a
153<acronym>NTP</acronym> server.</para></sect3>
154
155<sect3><title>ntpdate</title>
156<para><command>ntpdate</command> is a client program that sets the date
157and time based on the response from an <acronym>NTP</acronym> server.
158This command is deprecated.</para></sect3>
159
160<sect3><title>ntpdc</title>
161<para><command>ntpdc</command> is used to query the
162<acronym>NTP</acronym> daemon about its current state and to request
163changes in that state.</para></sect3>
164
165<sect3><title>ntpq</title>
166<para><command>ntpq</command> is an utility program used to monitor
167<command>ntpd</command> operations and determine
168performance.</para></sect3>
169
170<sect3><title>ntptime</title>
171<para><command>ntptime</command> reads and displays time-related
172kernel variables.</para></sect3>
173
174<sect3><title>tickadj</title>
175<para><command>tickadj</command> reads, and optionally modifies,
176several timekeeping-related variables in older kernels that do not have
177support for precision timekeeping.</para></sect3>
178
179<sect3><title>ntp-keygen</title>
180<para><command>ntp-keygen</command> generates cryptographic data files
181used by the <acronym>NTP</acronym>v4 authentication and identification
182schemes.</para></sect3>
183
184</sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.