[96649] in RedHat Linux List
Re: Setting system time/date
daemon@ATHENA.MIT.EDU (Ramon Gandia)
Wed Oct 28 15:45:52 1998
Date: Wed, 28 Oct 1998 11:22:50 -0900
From: Ramon Gandia <rfg@nook.net>
To: jivany@nbnet.nb.ca, redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Jeff Ivany wrote:
>
> Hi.
>
> I was wondering if there is any way to have my system time synced with
> some standard time. The reason I ask is my system seems to pick up
> minutes at a great rate. I set it and my wall clock to the same time a
> week ago and now the computer is almost 10 minutes faster.
We use rdate here at Nook Net, and have cron.daily run it. From
the
keyboard you can use:
prompt# rdate -p www.prodigy.com <-- displays the time
prompt# rdate -s www.prodigy.com <-- sets the time
prompt# rdate -p -s www.prodigy.com <-- both displays and sets
time
It takes care of timezones, daylight savings, etc. Try it from
the
prompt. You need to be root to run the -s option, obviously, but
a
user can use -s. I think -s is optional, it should default to -s
if you just use rdate. While I show www.prodigy.com as the
server,
just about any system that you know is on time will work.
www.compuserve.com is also on time. Some are really out of whack.
I used to use tycho.usno.navy.mil, but I notice that they are
refusing
rdate requests for some reason. Your Clinton admin tax dollars at
work.
After you are satisfied with the working of it on the command
line,
write up a shell script and chmod it executable and put on
cron.daily,
like I did, and it runs at 1:02 am. Or you can run it
cron.hourly,
or on crontab at any time you want. Or leave it at the command
line
if your machine is not up 24x7 like mine.
There are other protocols that use atomic clocks, can set to
within
a few milliseconds, etc, but rdate is so easy, and will get you
within a second anyway.
--
Ramon Gandia, Owner and Sysadmin, Nook Net -- ISP for Western
Alaska
P.O. Box 970, Nome, Alaska 99762-0970
http://www.nook.net
tel. 907-443-7575 fax. 907-443-2487 AK toll free:
888-443-7525
====================================================================
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.