Re: clock/time
On Fri, 11 Jul 1997, Timothy Phan wrote:
> Hi,
>
> I'm having problem with the clock/time on my debian box. Everytime,
> I bring up the system, the clock is always about 4 hours behind.
> I have to setup the time using "date -s hh:mm". I'd like to know
> how to:
> 1. setup the Debian to always read the time/date from the CMOS
> according.
See 'man clock'.
> 2. adjust the time periodicly if the system is up for a while.
> I've noticed that when the system stay up for long period of
> time, the clock slow down to like 3-4 hour in a 24 hours period.
>
If you are connected to the Internet, you can use a program like rdate or
ntpdate to update your system time from an accurate time server, like
time.nist.gov. Then you can update your CMOS time with 'clock -w'. A
simple script could be invoked with cron to periodically update the clock.
I have a call to such a script in /etc/ppp/ip-up to update my clock
whenever I connect to my ISP.
Bob
----
Bob Nielsen Internet: nielsen@primenet.com
Tucson, AZ AMPRnet: w6swe@w6swe.ampr.org
AX.25: w6swe@wb7tls.az.usa.noam
http://www.primenet.com/~nielsen
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to:
- References:
- clock/time
- From: tphan@asl.dl.nec.com (Timothy Phan)