Manually setting the time
My time and date are totally screwed up. When I try and use YaST it comes up with an error. Is there a bash command to force a time date change upon the system? If you didn't notice... this was a message from the future!
The easiest way I have found to set the time is to use ntp. Put the following lines in your /etc/ntp.conf file: server ntp.cc.utexas.edu server ntp2.cs.utexas.edu server timex.peachnet.edu I don't know where you are at, but you can probably google for some ntp servers closer to your area. These servers should get you close enough for government work. Finally, start ntp with: /etc/init.d/xntpd start And you can make it start every time you boot the machine with: insserv xntpd ntp will check that the clock is in sync every few minutes, and it will set the hardware clock at boot and shutdown. hth, -- Michael Stone Linux / High Performance Computing Administrator The University of Texas at Austin Mechanical Engineering Department ETC 3.130 ph: 471.5951 agentsmith[at]mail.utexas.edu http://hpc.me.utexas.edu On Fri, 29 Aug 2003, William Westfall wrote:
My time and date are totally screwed up. When I try and use YaST it comes up with an error.
Is there a bash command to force a time date change upon the system?
If you didn't notice... this was a message from the future!
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thu, Aug 28, 2003 at 05:22:44PM -0500, michael stone wrote: : The easiest way I have found to set the time is to use ntp. Put the : following lines in your /etc/ntp.conf file: : : server ntp.cc.utexas.edu : server ntp2.cs.utexas.edu : server timex.peachnet.edu : : I don't know where you are at, but you can probably google for some ntp : servers closer to your area. These servers should get you close enough : for government work. Actually, please don't do this. Always sync to the stratum 2 servers closest to you. It's just good netiquette. You can get the list of stratum 2 servers from: http://www.eecis.udel.edu/~mills/ntp/clock2a.html Enjoy... --Jerry -- Open-Source software isn't a matter of life or death... ...It's much more important than that!
On Friday 29 August 2003 10:23 am, William Westfall wrote:
My time and date are totally screwed up. When I try and use YaST it comes up with an error.
What error?
Is there a bash command to force a time date change upon the system?
man date As has already been suggested, ntp is a much nicer alternative. HTH Jon
On Friday 29 August 2003 00:43, Jonathan Lim wrote:
On Friday 29 August 2003 10:23 am, William Westfall wrote:
Is there a bash command to force a time date change upon the system?
man date
check "man hwclock" as well, to set your hardware clock correctly. I usually use: hwclock --set --date"08/29/2003 12:09" hwclock --hctosys ...as long as I'm still "modem-connected". If you got a better (flatrate) connection, you should really use NTP. Hansne -- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3 At least, try asking smart questions: http://www.catb.org/~esr/faqs/smart-questions.html Netiquette is easy: http://learn.to/edit_messages ...and you'll get flame-free answers in no time.
On Thu, 2003-08-28 at 16:43, Jonathan Lim wrote:
On Friday 29 August 2003 10:23 am, William Westfall wrote:
My time and date are totally screwed up. When I try and use YaST it comes up with an error.
What error?
Is there a bash command to force a time date change upon the system?
man date
As has already been suggested, ntp is a much nicer alternative.
HTH Jon
The error I gets states that I have entered an [invalid date (DD-MM-YYYY) 28-08-2003 Enter the correct date]. I think that the new NVidia update has screwed it up. Seems I read that somewhere. But the man date command helped. I'll reboot and see if it has permanently changed.
The error I gets states that I have entered an [invalid date (DD-MM-YYYY) 28-08-2003 Enter the correct date].
I think that the new NVidia update has screwed it up. Seems I read that somewhere. But the man date command helped. I'll reboot and see if it has permanently changed.
That error happens all the time in both my test machines. It doesn't accept 28-08-2003, but it accepts 28-8-2003. Try entering the month just as 8 and not 08, and that should do the trick. At least with me it does
On Friday 29 Aug 2003 10:23 am, William Westfall wrote:
My time and date are totally screwed up. When I try and use YaST it comes up with an error.
Is there a bash command to force a time date change upon the system?
If you didn't notice... this was a message from the future!
Hi William I'm guessing here but does this error suggest that you have entered an invalid date? I received that message when I attempted, and a colleague explained that yast does like the preceding zero in the month column (a bug in yast, I think). If you enter the date without the preceding zero in the month it should work. Eddie
participants (7)
-
eddie
-
Filipe Joel Almeida
-
Jerry A!
-
Johannes Liedtke
-
Jonathan Lim
-
michael stone
-
William Westfall