Most of modern Unix systems have NTP
included in distribution. Please note, that xntpd
is NTP version 3 daemon. Therefore the NTP daemon
can be compiled on the target system at any time. There
is NTP distribution included on cd:\drivers\ntp\unix.
First unpack gzipped tar archive:
#gzip -dc ntp-4.2.0.tar.gz | tar xvf
- -C /usr/local/src
Then run configuration script from
main NTP distribution directory:
# cd /usr/local/src/ntp-4.2.0.a
# ./configure --disable-all-clocks –enable-LOCAL-CLOCK
All necessary information from the
system will be collected and the corresponding make
files will be generated in the subdirectories. After
that the NTP daemon and all needed utilities will be
generated. Please type:
# make
While compiling the several warnings
may appear. This warnings are mostly unimportant. In
case of problems during the compilation read the system
dependent notes in the './html' subdirectory.
Afterwards the generated programs and tools have to be
moved in the corresponding directories in /usr/local
tree. Please type:
# make install
The time adjustment can occur in
different ways. Either the system time can be set once
by using the tool ntpdate or the NTP daemon is
started. In the first case it is recommended to set the
time automatically from crontab or once when booting
the system. The second case is described below.
First a file named /etc/ntp.conf has to be
generated with an editor.
The NTP daemon is started with
ntpd or, using rc.local, while booting the
system. If you want to start NTP without downtime,
consider using “-g -x” options, to force slewing
time and ignore sanity 1000s offset check.
Status messages during operation are
saved in /var/log/ directory (corresponding to
the syslog configuration):
e.g.: # tail -f /var/log/messages
It shows the last lines from the file messages.
The status messages can also be redirected in a log
file by using the following option:
# ntpd -llogfile