Re: [newbie] update time over internet
The system time is set to the hardware clock on bootup. Over time, the system and hardware clock fall out of sync, and neither of them are very accurate as is. This is why you should use both the rdate and hwclock commands relatively often (maybe about once a day) to keep them _both_ in sync with a NTP server. On 17 Sep 2001 10:48:51 -0400, Paul Rodríguez [EMAIL PROTECTED] wrote: It seems as though the hardware clock is set correctly (doesn't lose its time). The system clock stays off even after reboot, though. Is there a command to set the system time to the hardware clock? -Paul Rodríguez On 18 Sep 2001 00:03:06 +1000, Sridhar Dhanapalan wrote: You have two clocks. The first is your hardware clock, which is run from a battery on your motherboard (and hence runs even when your machine is off). The second is the system clock, which is set from the hardware clock at bootup. In the command rdate -s clock-1.cs.cmu.edu synchronises the system clock to the clock on the clock-1.cs.cmu.edu server. Since this is only a runtime clock (and so is lost at shutdown), you need to set the hardware clock as well. This is what hwclock --systohc does. The allows you to run two commands on the same line, but only runs the second command if the first has completed without error. On 17 Sep 2001 09:16:24 -0400, Paul Rodríguez [EMAIL PROTECTED] wrote: What does hwclock --systohc do? -Paul Rodríguez On 17 Sep 2001 01:49:44 -0500, Bill R wrote: This is what I use. Im in the central standard time. rdate -s clock-1.cs.cmu.edu hwclock --systohc On Sunday 16 September 2001 07:34 pm, you wrote: Hi, I read somewhare about setting up a recurring program to update my system time by checking the time on internet time servers. My system clock goes out of sync with the world's clocks after it wakes up from suspend (laptop), I need a program to reset the time after wake up. I seem to recall something about a program (i believe it was called) rdate. Anybody know how to do this? -Paul Rodríguez -- Sridhar Dhanapalan. There are two major products that come from Berkeley: LSD and UNIX. We don't believe this to be a coincidence. -- Jeremy S. Anderson _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Sridhar Dhanapalan. There are two major products that come from Berkeley: LSD and UNIX. We don't believe this to be a coincidence. -- Jeremy S. Anderson Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] update time over internet
Go into Linuxconf and enter the ip or name of a time server that you want to use (make sure it's an active one first!). That's it. -JMS |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]] On Behalf Of Paul Rodríguez |Sent: Sunday, September 16, 2001 8:34 PM |To: [EMAIL PROTECTED] |Subject: [newbie] update time over internet | | |Hi, I read somewhare about setting up a recurring program to |update my system time by checking the time on internet time |servers. My system clock goes out of sync with the world's |clocks after it wakes up from suspend (laptop), I need a |program to reset the time after wake up. | |I seem to recall something about a program (i believe it was |called) rdate. Anybody know how to do this? | |-Paul Rodríguez | | |_ |Do You Yahoo!? |Get your free @yahoo.com address at http://mail.yahoo.com | | | Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] update time over internet
On Monday 17 September 2001 08:49, Bill R wrote: This is what I use. Im in the central standard time. rdate -s clock-1.cs.cmu.edu hwclock --systohc hmmm, both those commands insisted on being run as root before they would do anything on my system. Connecting as root is a Bad Idea (tm). So I put them in a little shell script that I run with kdesu. Seems to work. -- Michel Clasquin, D Litt et Phil (Unisa) [EMAIL PROTECTED]/unisa.ac.za http://www.geocities.com/clasqm This message was posted from a Microsoft-free PC An intellectual is someone who has discovered something more interesting than sex - Aldous Huxley Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] update time over internet
Does anybody know where to find a list of other NTP servers? I used to know a few of them off the top of my head, and now I don't remember their names any more. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - Real Men Use Vi! Uptime: 3:42pm up 23:21, 6 users, load average: 0.00, 0.00, 0.00 | This is what I use. Im in the central standard time. | | rdate -s clock-1.cs.cmu.edu hwclock --systohc | | | On Sunday 16 September 2001 07:34 pm, you wrote: | Hi, I read somewhare about setting up a recurring program to update my | system time by checking the time on internet time servers. My system | clock goes out of sync with the world's clocks after it wakes up from | suspend (laptop), I need a program to reset the time after wake up. | | I seem to recall something about a program (i believe it was called) | rdate. Anybody know how to do this? | | -Paul Rodríguez | | | _ | Do You Yahoo!? | Get your free @yahoo.com address at http://mail.yahoo.com | | | Want to buy your Pack or Services from MandrakeSoft? | Go to http://www.mandrakestore.com -- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] update time over internet
I've been toying with the idea of installing 8.1, but I don't have an available testbed right now. My workstation is too important, especially now, for me to install the beta, and my two other testbeds are in use right now. But I did find a page that had some links to NTP servers. http://www.eecis.udel.edu/~mills/ntp/servers.htm Check that out. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - Real Men Use Vi! -- | On Monday 17 September 2001 21:42, Tim Holmes wrote: | Does anybody know where to find a list of other NTP servers? I used to | know a few of them off the top of my head, and now I don't remember | their names any more. | tdh | | | Try a Mandrake Install of 8.1 Beta 3--Beaucoup servers listed there. | | Civileme | | There is also a site of them, but I forget where. | | Want to buy your Pack or Services from MandrakeSoft? | Go to http://www.mandrakestore.com -- Uptime -- 3:56pm up 23:34, 6 users, load average: 0.00, 0.00, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com