[PLUG] Setting the time
Jeff DeFouw
defouwj@purdue.edu
Thu, 8 Feb 2001 12:00:31 -0500 (EST)
On Thu, 8 Feb 2001, Patrick K Notz wrote:
> Oh, there's also something called ntp (Network Time Protocol?) which
> is a server that can keep you system clock in sync with a network
> machine... but I don't know much about it. Anyone? Anyone? Bueller?
I use ntp to keep my time up to date. Pick any Purdue router, they all
seem to carry atomic clock synchronized time. Then run "ntpdate -b
router.hostname.or.ip" to sync your time to the remote machine
immediately.
Or if you want to keep your clock synchronized all the time by timer tick
adjustments, use ntpd. Here's my /etc/ntp.conf for ntpd where
128.211.162.113 is my DSL gateway, you can insert something with less hops
if you'd like. This is mostly the conf that came with Debian, the server
line is the important part.
-----
# /etc/ntp.conf, configuration for xntpd
logfile /var/log/ntpd
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 128.211.162.113
-----
--
Jeff DeFouw <defouwj@purdue.edu>