Re: Setting system clock to UTC -- how?
on Mon, Sep 08, 2003 at 01:03:40AM -0700, Mark Kaufer ([EMAIL PROTECTED]) wrote: > I was reading up on how to make my system clock set to UTC (primarily > http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html > ) and was a bit confused by this paragraph in section 16.1: > > "To change the computer to use UTC after installation, edit the file > /etc/default/rcS, change the variable UTC to no. If you happened to > install your system to use local time, just change the variable to yes to > start using UTC. It is best to reboot after editing /etc/default/rcS to > get the changes effective." > > To me, that says if you want to use UTC, change "UTC" in your rcS file to > "no". But change it to "yes" to start using UTC. I know it's late, but > am I really that tired? ;-) > > So my question is how do you go about setting your hardware clock to UTC? > >From what I understand, you should change UTC="yes" in rcS, restart, > probably run ntpdate, and then run "hwclock --hwtosys --utc". Does that > sound right? > > Although I've done all of that, I still am seeing the following output: > > # hwclock --show ; date > Mon Sep 8 00:56:48 2003 -0.896805 seconds > Mon Sep 8 00:56:50 PDT 2003 > > I was expecting to have the --show tell me that it was "Mon Sep 8 > 07:56:48 2003" rather than what the localtime is (-0700). What step(s) am > I missing? hwclock -u Peace. -- Karsten M. Self <[EMAIL PROTECTED]>http://kmself.home.netcom.com/ What Part of "Gestalt" don't you understand? "Yes you will," enthused Zaphod, "there's a whole new life stretching out ahead of you." "Oh, not another one," groaned Marvin. -- HHGTG pgp0.pgp Description: PGP signature
RE: SETTING SYSTEM CLOCK
Thank you guys (John and Henrique) for your prompt answers and sorry for the words in caps - just wanted to make them stand out from the rest of my message. More feedback ? --- Friedrich
RE: SETTING SYSTEM CLOCK
If you want to force the systems clock time to be that if the hardware clock time do: hwclock -s or hwclock --hctosys all syntax in this instance is lower case John -Original Message- From: Henrique M Holschuh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 3:10 PM To: Friedrich Dumont Cc: debian-user@lists.debian.org Subject: Re: SETTING SYSTEM CLOCK On Wed, 07 Mar 2001, Friedrich Dumont wrote: > SETTING SYSTEM CLOCK USING THE HARDWARE CLOCK AS REFERENCE... That should not be in caps, unless your terminal is seriously screwed up. But it's a good thing to notice that patch to better document the hwclock script paid back... You want to muck around with /etc/init.d/hwclock.sh To boot without running that script (and therefore locking your system), you can try giving the init=/bin/bash command to the kernel in the LILO command prompt. You need to read the manpage for the hwclock utility, and verify what options are needed to avoid locking your machine. One option that I think might help you is --directisa. If that fails, comment out the hwclock line and use some other means to adjust the clock. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Re: SETTING SYSTEM CLOCK
On Wed, 07 Mar 2001, Friedrich Dumont wrote: > SETTING SYSTEM CLOCK USING THE HARDWARE CLOCK AS REFERENCE... That should not be in caps, unless your terminal is seriously screwed up. But it's a good thing to notice that patch to better document the hwclock script paid back... You want to muck around with /etc/init.d/hwclock.sh To boot without running that script (and therefore locking your system), you can try giving the init=/bin/bash command to the kernel in the LILO command prompt. You need to read the manpage for the hwclock utility, and verify what options are needed to avoid locking your machine. One option that I think might help you is --directisa. If that fails, comment out the hwclock line and use some other means to adjust the clock. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh pgp5pNQQYzAGS.pgp Description: PGP signature