%general-entities; ]> $LastChangedBy$ $Date$ NTP-&ntp-version; NTP Introduction to NTP The NTP package contains a client and server to keep the time synchronized between various computers over a network. This package is the official reference implementation of the NTP protocol. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &ntp-md5sum; Download size: &ntp-size; Estimated disk space required: &ntp-buildsize; Estimated build time: &ntp-time; NTP Dependencies Optional User Notes: Installation of NTP Install NTP by running the following commands: ./configure --prefix=/usr --sysconfdir=/etc \ --with-binsubdir=sbin && make To test the results, issue: make check. Now, as the root user: make install && install -v -m755 -d /usr/share/doc/ntp-&ntp-version; && cp -v -R html/* /usr/share/doc/ntp-&ntp-version;/ Command Explanations --with-binsubdir=sbin: This parameter places the administrative programs in /usr/sbin. Configuring NTP Config Files /etc/ntp.conf /etc/ntp.conf Configuration Information The following configuration file defines various NTP servers with open access from different continents. It also creates a drift file where ntpd stores the frequency offset and a pid file to store the ntpd process ID. Since the documentation included with the package is sparse, visit the NTP website at and for more information. cat > /etc/ntp.conf << "EOF" # Africa server tock.nml.csir.co.za # Asia server 0.asia.pool.ntp.org # Australia server 0.oceania.pool.ntp.org # Europe server 0.europe.pool.ntp.org # North America server 0.north-america.pool.ntp.org # South America server 2.south-america.pool.ntp.org driftfile /var/cache/ntp.drift pidfile /var/run/ntpd.pid EOF Synchronizing the Time There are two options. Option one is to run ntpd continuously and allow it to synchronize the time in a gradual manner. The other option is to run ntpd periodically (using cron) and update the time each time ntpd is scheduled. If you choose Option one, then install the /etc/rc.d/init.d/ntp init script included in the package. ntp make install-ntp If you prefer to run ntpd periodically, add the following command to root's crontab: ntpd -q Execute the following command if you would like to set the hardware clock to the current system time at shutdown and reboot: ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock && ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock The other way around is already set up by LFS. Contents Installed Programs Installed Libraries Installed Directory ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq, ntptime, ntptrace, sntp and tickadj None /usr/share/doc/ntp-&ntp-version; Short Descriptions ntp-keygen generates cryptographic data files used by the NTPv4 authentication and identification schemes. ntp-keygen ntp-wait is useful at boot time, to delay the boot sequence until ntpd has set the time. ntp-wait ntpd is a NTP daemon that runs in the background and keeps the date and time synchronized based on response from configured NTP servers. It also functions as a NTP server. ntpd ntpdate is a client program that sets the date and time based on the response from an NTP server. This command is deprecated. ntpdate ntpdc is used to query the NTP daemon about its current state and to request changes in that state. ntpdc ntpq is an utility program used to monitor ntpd operations and determine performance. ntpq ntptime reads and displays time-related kernel variables. ntptime ntptrace traces a chain of NTP servers back to the primary source. ntptrace sntp is a Simple Network Time Protocol (SNTP) client. sntp tickadj reads, and optionally modifies, several timekeeping-related variables in older kernels that do not have support for precision timekeeping. tickadj