[olug] Time

Vincent.Raffensberger at dtn.com Vincent.Raffensberger at dtn.com
Thu Feb 12 05:41:16 UTC 2004


The simplest thing to do is just run ntpdate occasionally from a cronjob 
like this:
15 * * * *      ntpdate -s -b -p 8 -u `cat /etc/ntp/step-tickers`; 
/sbin/hwclock --systohc
and list your time servers in /etc/ntp/step-tickers, like this:
[user at host ~]$ cat /etc/ntp/step-tickers
ntp-1.mcs.anl.gov ntp-2.mcs.anl.gov ntp.cmr.gov fuzz.psc.edu rolex.usg.edu 
ntp-1.ece.cmu.edu clock-2.cs.cmu.edu ntp-2.ece.cmu.edu clock-1.cs.cmu.edu 
timex.usg.edu

Setting up ntpd isn't much more difficult.  You can probably get what you 
need from this:

[user at host ~]$ cat /etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.  Requires kernel >= 2.2.18.
OPTIONS="-U ntp"

[user at host ~]$ grep -v ^"#" /etc/ntp.conf
logfile         /var/log/ntpd
logconfig       all
statsdir /var/log/ntp/
statistics loopstats
filegen peerstats file peers type day link enable
filegen loopstats file loops type day link enable
server timex.usg.edu prefer
server ntp-1.mcs.anl.gov
server ntp-2.mcs.anl.gov
server ntp.cmr.gov
server fuzz.psc.edu
server rolex.usg.edu
server ntp-1.ece.cmu.edu
server clock-2.cs.cmu.edu
server ntp-2.ece.cmu.edu
server clock-1.cs.cmu.edu
driftfile /etc/ntp/drift

[user at host ~]$ chkconfig --list ntpd
ntpd            0:off   1:off   2:off   3:on    4:on    5:on    6:off
[user at host ~]$ service ntpd status
ntpd (pid 26483) is running...




Brandon Lederer <brandon at tolkien-movies.com> 
Sent by: olug-bounces at olug.org
02/11/2004 07:21 PM
Please respond to
Omaha Linux User Group <olug at olug.org>


To
olug at olug.org
cc

Subject
[olug] Time






My MythTV Box has                 some clock drift.  Pretty important that 
the clock is 
correct.  How easy is it to set up NTPClient?  Anyone know of a howto?
_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list