Click to See Complete Forum and Search --> : Setting time


Jarhead
11-30-2000, 12:54 AM
Day 3 with Linux....
my clock setting is wrong and I don't know how to change the time..

help.

A_Lawn_GNOME
11-30-2000, 01:16 AM
Type:
rdate -s time.nist.gov

This synchs your clock with the atomic one used by NIST.

You can make a shell script and stick it in crontab which will keep it nice and accurate forever.

Jarhead
11-30-2000, 01:29 AM
Thanks.

Once I figure out what a shell script is and what crontab is, I will make it happen.

Exteme Linux newbie, but being converted from brother Bill.

Craig McPherson
11-30-2000, 04:29 AM
If you're dead-serious about synchronization, you want the NTP daemon. It's what all the big time servers use to stay synchronized with each other. It's kind of overkill on a home system, though.

posterboy
11-30-2000, 10:38 AM
Here's A way, (among many) to get this to work right. First get the time, into the software clock, as above. Or, if you just need "close", use your watch and:
date MMDDHHMMYYYY. Next, force this into the hardware, with hwclock --systohc. To end all this forever, XNTPD is tiny, uses few resources, and locks both soft and hardware to a surprisingly accurate degree. I did a simple page on this: www.raymondjones.net/ntpguide.html (http://www.raymondjones.net/ntpguide.html)
Ray


------------------
ray@raymondjones.net
HTTP://www.raymondjones.net