Ignore:
Timestamp:
06/12/2004 05:30:15 AM (20 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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
Children:
3bba7e2
Parents:
773c358
Message:

XML Update -- Chapter 18

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • basicnet/netprogs/ntp.xml

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