PDA

View Full Version : Time sync with public ntp server



lothario
08-18-2004, 05:01 AM
I want to make this hard disk installation do a time
sync from a public ntp server.

Where can I set this up so that it will do a
time sync every 14 hours ?

mzilikazi
08-18-2004, 01:30 PM
ntpdate

Use apt to install it if you don't have it. Then simply use cron to run it whenever you like.


dpkg -p ntpdate
Package: ntpdate
Priority: optional
Section: net
Installed-Size: 156
Maintainer: Debian NTP Team <debian-ntp@gag.com>
Architecture: i386
Source: ntp
Version: 1:4.2.0a-11
Replaces: ntp (<< 1:4.0.98a), xntp, xntp3
Depends: libc6 (>= 2.3.2.ds1-4)
Suggests: ntp
Conflicts: ntp (<< 1:4.0.98a), chrony
Filename: pool/main/n/ntp/ntpdate_4.2.0a-10_i386.deb
Size: 40644
MD5sum: a6c6812012722cd25ec7b644395359ef
Description: The ntpdate client for setting system time from NTP servers
NTP, the Network Time Protocol, is used to keep computer clocks accurate
over the Internet, or by following an accurate hardware receiver which
interprets GPS, DCF-77, NIST or similar time signals.
.
ntpdate is a simple NTP client which allows a system's clock to be set
to match the time obtained by communicating with one or more servers.
.
ntpdate is optional (but recommended) if you're running an NTP server,
because initially setting the system clock to an almost-correct time
will help the NTP server synchronize faster.
.
The ntpdate client by itself is useful for occasionally setting the time on
machines that are not on the net full-time, such as laptops.