Re: Setting system time on startup

2002-06-07 Thread Derrick 'dman' Hudson
On Fri, Jun 07, 2002 at 11:51:16AM +0800, Patrick Hsieh wrote:
| Hello Pietro Cagnoni [EMAIL PROTECTED],
| 
| What is the advantage to keep the clock on GMT?

Suppose the machine moves and is now in a new timezone.  Also suppose
you're running a legacy OS (eg MS-DOS or MS-Windows) and you now want
the clock to show the correct local time.  Here's the steps to correct
it :
1)  enter the BIOS config and reset the clock to the new local time
2)  boot the OS and reset the timezone to the new local timezone

Now consider the same scenario, except that a modern (eg Debian) OS is
on the machine.  Here are the steps to show the correct local time :
1)  tell the system what the new local time zone is (run 'tzconfig')

Storing a well-defined and constant value (UTC, aka GMT) is more
flexible than storing an ever changing value.  (give me a little
leeway here, time is always changing, but GMT is constant whereas
EST, EDT, CST, CDT (yes I moved a while ago then DST kicked
in, so this desktop machine has been through 4 timezones) is ever
changing)

-D

-- 

Whoever loves discipline loves knowledge,
but he who hates correction is stupid.
Proverbs 12:1
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg



pgpGFtcofS7Wo.pgp
Description: PGP signature


Re: Setting system time on startup

2002-06-07 Thread Pietro Cagnoni

Patrick Hsieh wrote:

Hello Pietro Cagnoni [EMAIL PROTECTED],

What is the advantage to keep the clock on GMT?



it keeps your system simpler and cleaner. believe me, it's worth it!

for instance, linux needs the bios clock on gmt, so adjusts it at boot
and at shutdown. if you don't shutdown properly (a power outage, or a
kick to the plug) the bios clocks remains to gmt, but the reboot 
adjust gets done anyway, and you double your gmt displacement.


so your start getting incoherent file modification times. if you're
a frequent user of make, you can understand the subsequent mess...

pietro.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Setting system time on startup

2002-06-07 Thread John Hasler
Pietro Cagnoni writes:
 for instance, linux needs the bios clock on gmt...

No it doesn't.

 ...so adjusts it at boot and at shutdown.

Not on my computers.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-07 Thread Ian D. Stewart

On 2002.06.07 01:16 Derrick 'dman' Hudson wrote:

On Fri, Jun 07, 2002 at 11:51:16AM +0800, Patrick Hsieh wrote:
| Hello Pietro Cagnoni [EMAIL PROTECTED],
|
| What is the advantage to keep the clock on GMT?

Suppose the machine moves and is now in a new timezone.  Also suppose
you're running a legacy OS (eg MS-DOS or MS-Windows) and you now want
the clock to show the correct local time.  Here's the steps to correct
it :
1)  enter the BIOS config and reset the clock to the new local
time
2)  boot the OS and reset the timezone to the new local timezone

Now consider the same scenario, except that a modern (eg Debian) OS is
on the machine.  Here are the steps to show the correct local time :
1)  tell the system what the new local time zone is (run
'tzconfig')

Storing a well-defined and constant value (UTC, aka GMT) is more
flexible than storing an ever changing value.  (give me a little
leeway here, time is always changing, but GMT is constant whereas
EST, EDT, CST, CDT (yes I moved a while ago then DST kicked
in, so this desktop machine has been through 4 timezones) is ever
changing)


Goog point, Derek.  I'll look into fixing the BIOS setting next time I 
reboot (which hopefully won't be awhile, but with these damned midwest 
t-storms, you never can tell).



Ian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Setting system time on startup

2002-06-07 Thread Derrick 'dman' Hudson
On Fri, Jun 07, 2002 at 11:15:00AM -0400, Ian D. Stewart wrote:
| On 2002.06.07 01:16 Derrick 'dman' Hudson wrote:
| On Fri, Jun 07, 2002 at 11:51:16AM +0800, Patrick Hsieh wrote:
| | Hello Pietro Cagnoni [EMAIL PROTECTED],
| |
| | What is the advantage to keep the clock on GMT?
| 
| Suppose the machine moves and is now in a new timezone.  Also suppose
| you're running a legacy OS (eg MS-DOS or MS-Windows) and you now want
| the clock to show the correct local time.
...
| Goog point, Derek.  I'll look into fixing the BIOS setting next time I 
| reboot (which hopefully won't be awhile, but with these damned midwest 
| t-storms, you never can tell).

Do note that if the BIOS must be shared with one of the
above-mentioned legacy OSes, you will either need to set it to local
time or live with a borked clock in that OS.  (on the company laptop I
chose the latter -- windows shows UTC not localtime in the system
tray, and I laugh at its idiocy :-))

HAND,
-D

-- 

The lot is cast into the lap,
but its every decision is from the Lord.
Proverbs 16:33
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg



pgp1zU8PRsJR9.pgp
Description: PGP signature


Re: Setting system time on startup

2002-06-06 Thread Patrick Hsieh
Hello Pietro Cagnoni [EMAIL PROTECTED],

What is the advantage to keep the clock on GMT?

On Wed, 05 Jun 2002 19:21:28 +0200
Pietro Cagnoni [EMAIL PROTECTED] wrote:

 Ian D. Stewart wrote:
  Howdy Folks,
  
  Right now, when booting my linux box, the system clock is off by four 
  hours (I'm guessing it is set to GMT).  I can reset the clock using 
  date, but this is starting to get a bit tedious.  Is there a way to 
  automate this process and/or convince Linux to set the system clock to 
  local time?
 
 debian readjusts the clock on shutdown, maybe there's something broken
 somewhere; check the console output on shutdown.
 
 if you use just linux on the box, it's better to keep the clock on
 GMT: adjust UTC=* in /etc/default/rcS .
 
 pietro.
 
 
 
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

-- 
Patrick Hsieh [EMAIL PROTECTED]
GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Setting system time on startup

2002-06-05 Thread Ian D. Stewart

Howdy Folks,

Right now, when booting my linux box, the system clock is off by four 
hours (I'm guessing it is set to GMT).  I can reset the clock using 
date, but this is starting to get a bit tedious.  Is there a way to 
automate this process and/or convince Linux to set the system clock to 
local time?



Thanx,
Ian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Setting system time on startup

2002-06-05 Thread Jamin W . Collins
On Wed, 5 Jun 2002 05:27:54 -0400
Ian D. Stewart [EMAIL PROTECTED] wrote:
 
 Right now, when booting my linux box, the system clock is off by four 
 hours (I'm guessing it is set to GMT).  I can reset the clock using 
 date, but this is starting to get a bit tedious.  Is there a way to 
 automate this process and/or convince Linux to set the system clock to 
 local time?

man hwclock

-- 
Jamin W. Collins


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Dave Sherohman
On Wed, Jun 05, 2002 at 05:27:54AM -0400, Ian D. Stewart wrote:
 Right now, when booting my linux box, the system clock is off by four 
 hours (I'm guessing it is set to GMT).  I can reset the clock using 
 date, but this is starting to get a bit tedious.  Is there a way to 
 automate this process and/or convince Linux to set the system clock to 
 local time?

Install the ntpdate package to set your date on boot and ntp to keep
it accurate thereafter.  As for the time zone, run tzconfig to set
that.

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Mark Roach
On Wed, 2002-06-05 at 04:27, Ian D. Stewart wrote: 
 Howdy Folks,
 
 Right now, when booting my linux box, the system clock is off by four 
 hours (I'm guessing it is set to GMT).  I can reset the clock using 
 date, but this is starting to get a bit tedious.  Is there a way to 
 automate this process and/or convince Linux to set the system clock to 
 local time?

try hwclock --systohc 


-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Patrick Wiseman
On Wed, 5 Jun 2002, Ian D. Stewart wrote:

 Right now, when booting my linux box, the system clock is off by four
 hours (I'm guessing it is set to GMT).  I can reset the clock using
 date, but this is starting to get a bit tedious.  Is there a way to
 automate this process and/or convince Linux to set the system clock to
 local time?

Check out /etc/init.d/hwclockfirst.sh, /etc/init.d/hwclock.sh, and
/etc/default/rcS, which seem to be the files responsible for starting the
system clock.  Also try 'man hwclock', which, way down, has useful
information about the relationship between the hardware clock and the
system clock.

hth

pw

-- 
Patrick Wiseman
[EMAIL PROTECTED]
Linux user #17943


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Gary Hennigan
Ian D. Stewart [EMAIL PROTECTED] writes:
 Right now, when booting my linux box, the system clock is off by four
 hours (I'm guessing it is set to GMT).  I can reset the clock using
 date, but this is starting to get a bit tedious.  Is there a way to
 automate this process and/or convince Linux to set the system clock to
 local time?

You can change that by setting UTC=yes|no in /etc/default/rcS. This
setting should be yes if your HW clock is set to UTC (aka GMT) or
no if your HW clock is set to local time.

So first check to see what your HW clock is set to by using the
command hwclock --show. You can then use hwclock to either set your
system time from your HW clock, or vice versa. This is done
automatically at boot by the hwclock* scripts in /etc/init.d

The main thing is setting UTC to the appropriate yes or no in
/etc/default/rcS, assuming, of course, that the problem is the fact
that your HW clock setting doesn't match the UTC setting.

Gary


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Mark Roach
On Wed, Jun 05, 2002 at 05:27:54AM -0400, Ian D. Stewart wrote:
 Howdy Folks,
 
 Right now, when booting my linux box, the system clock is off by four 
 hours (I'm guessing it is set to GMT).  I can reset the clock using 
 date, but this is starting to get a bit tedious.  Is there a way to 
 automate this process and/or convince Linux to set the system clock to 
 local time?
 
 
I am having trouble successfully posting to this list, so I apologize
for dupicates. Try hwclock --systohc

-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting system time on startup

2002-06-05 Thread Pietro Cagnoni

Ian D. Stewart wrote:

Howdy Folks,

Right now, when booting my linux box, the system clock is off by four 
hours (I'm guessing it is set to GMT).  I can reset the clock using 
date, but this is starting to get a bit tedious.  Is there a way to 
automate this process and/or convince Linux to set the system clock to 
local time?


debian readjusts the clock on shutdown, maybe there's something broken
somewhere; check the console output on shutdown.

if you use just linux on the box, it's better to keep the clock on
GMT: adjust UTC=* in /etc/default/rcS .

pietro.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Setting system time on startup

2002-06-05 Thread Ian D. Stewart

On 2002.06.05 13:00 Gary Hennigan wrote:

Ian D. Stewart [EMAIL PROTECTED] writes:
 Right now, when booting my linux box, the system clock is off by
four
 hours (I'm guessing it is set to GMT).  I can reset the clock using
 date, but this is starting to get a bit tedious.  Is there a way to
 automate this process and/or convince Linux to set the system clock
to
 local time?

You can change that by setting UTC=yes|no in /etc/default/rcS. This
setting should be yes if your HW clock is set to UTC (aka GMT) or
no if your HW clock is set to local time.

So first check to see what your HW clock is set to by using the
command hwclock --show. You can then use hwclock to either set your
system time from your HW clock, or vice versa. This is done
automatically at boot by the hwclock* scripts in /etc/init.d

The main thing is setting UTC to the appropriate yes or no in
/etc/default/rcS, assuming, of course, that the problem is the fact
that your HW clock setting doesn't match the UTC setting.


Thanx Gary.  That did the trick!  Apparently my hardware clock is 
reporting local time, not GMT.  I edited /etc/default/rcS to set UTC=no 
and manually reset the system clock via 'hwclock --hctosys --localtime'


Thanx also to everyone else who responded, and for the general 
education re: hwclock.  Learn something new every day... ;)



Ian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Setting system time?

1998-04-17 Thread Mark Phillips

 tzconfig  -  sets your timezone
 date  -  sets your system clock
 hwclock   -  sets your hardware clock
 xntp  -  keeps your system time correct by reference to Internet
  timeservers

What is the difference between hwclock and clock, between xntp and
netdate?  And which package contains hwclock and xntp?

Thanks,

Mark.
__
_\/___\__/___Mark_Phillips___/
\__/_\__/--\__/[EMAIL PROTECTED]/
\__/HE___\__/--APTAIN/   
\__/_\__/--\__/__/  /__To be is to do.__I. Kant___/
\__/__\__/___/  /__To do is to be.__A. Sartre_/
/__I am.God___/
/__Jesus did.___/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Setting system time?

1998-04-17 Thread Remco Blaakmeer
On Fri, 17 Apr 1998, Mark Phillips wrote:

  tzconfig  -  sets your timezone
  date  -  sets your system clock
  hwclock   -  sets your hardware clock
  xntp  -  keeps your system time correct by reference to Internet
   timeservers
 
 What is the difference between hwclock and clock, between xntp and
 netdate?  And which package contains hwclock and xntp?

hwclock is just newer than clock and replaces it. 

netdate and xntpd use different protocols for communication with the time
servers. The protocol used by netdate gives the time with an accuracy of
about one second, the ntp protocol is more accurate. Another big
difference between netdate and xntpd is that netdate sets the clock once
while xntpd is a daemon that connects to the server at regular intervals
and tries to correct drift even when not online.

Remco



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Setting system time?

1998-04-17 Thread Oliver Elphick
Mark Phillips wrote:
  What is the difference between hwclock and clock, between xntp and
  netdate? 

Remco answered that.

  And which package contains hwclock and xntp?

hwclock is in util-linux

xntp is in xntp

(This is on hamm.)

-- 
Oliver Elphick[EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver

PGP key from public servers; key ID 32B8FAA1

 
Come to me, all you who labour and are heavily laden, and I will
give you rest. Take my yoke upon you, and learn from me; for I am
meek and lowly in heart, and you shall find rest for your souls.
For my yoke is easy and my burden is light.(Matthew 11: 28-30)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Setting system time?

1998-04-16 Thread Jonas Bofjall
How do I set system clock (the RTC) on a fairly standard,
however old, PC which is running Debian GNU/Linux?

  // Jonas [EMAIL PROTECTED] [2:201/262.37]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Setting system time?

1998-04-16 Thread Joost Kooij
On Thu, 16 Apr 1998, Jonas Bofjall wrote:

 How do I set system clock (the RTC) on a fairly standard,
 however old, PC which is running Debian GNU/Linux?

  hwclock --systohc

or 

  hwclock --utc --systohc

if your clock is set to GMT aka UTC

Cheers,


Joost


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Setting system time?

1998-04-16 Thread Oliver Elphick
Jonas Bofjall wrote:
  How do I set system clock (the RTC) on a fairly standard,
  however old, PC which is running Debian GNU/Linux?

tzconfig  -  sets your timezone
date  -  sets your system clock
hwclock   -  sets your hardware clock
xntp  -  keeps your system time correct by reference to Internet
 timeservers


-- 
Oliver Elphick[EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver

PGP key from public servers; key ID 32B8FAA1

 
Come to me, all you who labour and are heavily laden, and I will
give you rest. Take my yoke upon you, and learn from me; for I am
meek and lowly in heart, and you shall find rest for your souls.
For my yoke is easy and my burden is light.(Matthew 11: 28-30)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]