[opensuse] set time and date in 9.3
It's been several years since I saw this problem and I forget how to fix it. The --help command is confusing to me. The problem: the computer is approximately 8 months slow--it thinks it's last March. Interestingly, the time is correct. If I need to be in SU mode, please advise. TIA-- doug Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Doug McGarrett pecked at the keyboard and wrote:
It's been several years since I saw this problem and I forget how to fix it. The --help command is confusing to me. The problem: the computer is approximately 8 months slow--it thinks it's last March. Interestingly, the time is correct. If I need to be in SU mode, please advise. TIA-- doug
Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley
(As root) date MMDDhhmmCCYY = month day hour minute century year for 6:00pm 14 nov 2008 it would be `date 111418002008` and century year can be omitted if current. It should now be clear as mud. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 10 November 2008 17:34, Ken Schneider wrote:
Doug McGarrett pecked at the keyboard and wrote:
It's been several years since I saw this problem and I forget how to fix it. The --help command is confusing to me. The problem: the computer is approximately 8 months slow--it thinks it's last March. Interestingly, the time is correct. If I need to be in SU mode, please advise. TIA-- doug
Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley
(As root) date MMDDhhmmCCYY = month day hour minute century year
for 6:00pm 14 nov 2008 it would be `date 111418002008` and century year can be omitted if current.
It should now be clear as mud.
-- Ken Schneider SuSe since Version 5.2, June 1998
Thank you, Ken--I found this on Google, which I should have looked at first. However, I tried to set up NTP as discussed in www.cpqlinux.com/ntp.html running in su /root, and got permission denied. So now I have the correct date, and almost the correct time, but I can't sync to NTP. Any help here? TIA-- doug Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Doug McGarrett pecked at the keyboard and wrote:
On Monday 10 November 2008 17:34, Ken Schneider wrote:
Doug McGarrett pecked at the keyboard and wrote:
It's been several years since I saw this problem and I forget how to fix it. The --help command is confusing to me. The problem: the computer is approximately 8 months slow--it thinks it's last March. Interestingly, the time is correct. If I need to be in SU mode, please advise. TIA-- doug
Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley (As root) date MMDDhhmmCCYY = month day hour minute century year
for 6:00pm 14 nov 2008 it would be `date 111418002008` and century year can be omitted if current.
It should now be clear as mud.
-- Ken Schneider SuSe since Version 5.2, June 1998
Thank you, Ken--I found this on Google, which I should have looked at first.
However, I tried to set up NTP as discussed in
www.cpqlinux.com/ntp.html
running in su /root, and got permission denied. So now I have the correct date, and almost the correct time, but I can't sync to NTP. Any help here?
I haven't used 9.3 for a while but I think this can be done in YaST maybe under Network Services. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Doug McGarrett pecked at the keyboard and wrote:
It's been several years since I saw this problem and I forget how to fix it. The --help command is confusing to me. The problem: the computer is approximately 8 months slow--it thinks it's last March. Interestingly, the time is correct. If I need to be in SU mode, please advise. TIA-- doug
Blessed are the peacemakers ... for they shall be shot at from both sides. --A.M. Greeley
(As root) date MMDDhhmmCCYY = month day hour minute century year
for 6:00pm 14 nov 2008 it would be `date 111418002008` and century year can be omitted if current.
It should now be clear as mud.
-- Ken Schneider Thanx, Ken. I found the answer on Google, which I should have looked at first. However, the site www.cpqlinux.com/ntp.html gives a procedure for accessing NTP time servers, which, when I try to follow the directions,
On Monday 10 November 2008 17:34, Ken Schneider wrote: produces "permission denied". I am in su /root. Any assistance, please? Thanx. doug -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2008-11-11 at 21:00 -0400, Doug McGarrett wrote:
Thanx, Ken. I found the answer on Google, which I should have looked at first. However, the site www.cpqlinux.com/ntp.html gives a procedure for accessing NTP time servers, which, when I try to follow the directions, produces "permission denied". I am in su /root. Any assistance, please?
Forget what google says, and do what SuSE said. Simply run "rcntp start" after configuring /etc/ntp.conf. - -- Cheers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkY+NIACgkQtTMYHG2NR9VdsACfY1dppcEHg80cdbfuC0b8npzF iLUAoIhPAFH6LOdKPrNUpl9lCKxd1zGf =R8BA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Tuesday, 2008-11-11 at 21:00 -0400, Doug McGarrett wrote:
Thanx, Ken. I found the answer on Google, which I should have looked at first. However, the site www.cpqlinux.com/ntp.html gives a procedure for accessing NTP time servers, which, when I try to follow the directions, produces "permission denied". I am in su /root. Any assistance, please?
Forget what google says, and do what SuSE said.
Simply run "rcntp start" after configuring /etc/ntp.conf.
-- Cheers.
True, But your sys clock has to be fairly close to the correct time or ntp will puke. If you tried to set time with ntp when the time was too far off, you may need to delete your /var/lib/ntp/drift/ntp.drift file, get the clock close, and then restart ntpd. (don't worry, the drift file will be recreated for you) Also, you will want to edit /etc/ntp.conf (maybe /etc/xntp.conf in 9.3) and add a few time servers that are reasonably close to you. Add the lines here: ## ## Outside source of synchronized time ## ## server xx.xx.xx.xx # IP address of server server ntppub.tamu.edu server 129.119.80.126 server 207.55.146.19 You can check the following for server IP/hostnames: http://support.ntp.org/bin/view/Servers/WebHome (describes the process) http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers http://tf.nist.gov/service/time-servers.html -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
But your sys clock has to be fairly close to the correct time or ntp will puke.
I don't know about 9.3, but later releases included an 'ntpdate' call in the init-script.
If you tried to set time with ntp when the time was too far off, you may need to delete your /var/lib/ntp/drift/ntp.drift file, get the clock close, and then restart ntpd. (don't worry, the drift file will be recreated for you)
I don't think there's any need to delete the drift file, but setting the time from an NTP server is easily accomplished by 'ntpdate'.
## ## Outside source of synchronized time ## ## server xx.xx.xx.xx # IP address of server server ntppub.tamu.edu server 129.119.80.126 server 207.55.146.19
Better yet, use the NTP pool: http://www.pool.ntp.org/ -- /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 11 November 2008 00:57, Per Jessen wrote:
David C. Rankin wrote:
...
Better yet, use the NTP pool:
Some ISPs provide their own tier-two servers for their customers. That's what I use here.
-- /Per Jessen, Zürich
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2008-11-11 at 02:37 -0600, David C. Rankin wrote:
Forget what google says, and do what SuSE said.
Simply run "rcntp start" after configuring /etc/ntp.conf.
True,
But your sys clock has to be fairly close to the correct time or ntp will puke.
Nope if you do it the SuSE way >:-) Because the "rcntp start" includes a call to ntpdate to jump-set the clock, and that will work even if it is hours off. After that call then the daemon is started on a second step. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkcSDAACgkQtTMYHG2NR9VBTwCgmJqOfLuOB7yJRk+y9EEjHcL7 s+AAniM7psjNr+CqbKjqulivkpyKQ3q/ =JX5q -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
David C. Rankin
-
Doug McGarrett
-
Ken Schneider
-
Per Jessen
-
Randall R Schulz