Re: [SLUG] Just set the time

From: Paul M Foster (paulf@quillandmouse.com)
Date: Mon Aug 19 2002 - 07:52:15 EDT


On Mon, Aug 19, 2002 at 03:11:24AM -0400, Robert Stia wrote:

> Hello Sluggers
>
> Why is it so complicated? All I want to do is set the time on my computer
> accurately. Have ntp installed. Also installed 2.5 megs of a gazillion
> infos, chrons, etc, & config files to access radio station and god knows what
> else. Still don't know what it takes to access an ntp server and download the
> time to my sysclock.
>
> Can somebody tell me a simple way to do a simple thing?

As mentioned previously, if you just want to set the date in the OS, the
date command should do it. But I assume you want the time consistently
correct, and you want your CMOS time to match your OS time. To do that,
you find a time server (I'll use NKS's as an example), and issue:

ntpdate 216.139.201.6

(assuming your internet connection is up).

This sets the OS's time. To sync the CMOS with that, issue:

hwclock --systohc

You can set this up as a cron job, if you have a consistent internet
connection (like DSL).

HTH,

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:28:09 EDT