Using NTP

From Tučňák Wiki
Revision as of 13:52, 10 September 2012 by Ok1zia (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Linux

Package ntp you probably have in your distribution. Older version have named xntp. You need programs ntpdate which is used for a single set date and (x)ntp for synchronization time for all time of system running. Ntp daemon has /etc/ntpd.conf configuration file.

In file /etc/ntp.conf should be contained next lines.

server 127.127.1.0
fudge 127.127.1.0 stratum 10 - Using local time if not present master time server.

If you can, use time server from the Internet.

server tik.cesnet.cz
server tak.cesnet.cz

The slave computers will have in configure file address master computer.

Next items you have on default setting.

driftfile /etc/ntp/drift
multicastclient broadcastdelay authenticate no

If different between times on computers are highest than few second is better set to clock by ntpdate program if computer boots. This case is possible to use witting master computer address to file /etc/ntp/step-tickers or write command ntpdate <master> on end of /etc/local file.

Hint: ntpd synchronize time after several minute, sometimes you'll have to very patient.

Windows

You can download NTP for windows here: http://www.meinberg.de/english/sw/ntp.htm#ntp_nt_stable . Setup wizard leads you through settins. Defaults will be probably usable for you.