1832205 Members
2664 Online
110039 Solutions
New Discussion

Re: reset system time

 
SOLVED
Go to solution
juno2
Super Advisor

reset system time

How to change the system time ( RH 8 ) ? thx
5 REPLIES 5
Jerome Henry
Honored Contributor
Solution

Re: reset system time

3 solutions :
- In a shell, run 'redhat-config-date' command
- From your desk, run 'hat menu / systems settings / change date & time' (it may not be exactly these words, I'm running a french version and am a poor translator. Hat menu is bottom left red hat).
- Change it from your BIOS at boot time (not elegant).
Hope this helps.
J
You can lean only on what resists you...
Balaji N
Honored Contributor

Re: reset system time

just to add, if your hardware clock time is correct, just sync it with your system clock.

hwclock --hctosys

or vice versa with

hwclock --systohc


man hwclock.

-balaji (couldnt resist replying because am fiddling with it for the past few days)
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
juno2
Super Advisor

Re: reset system time

Thx all's reply,

I have the following problem ,
the command "redhat-config-date" can't be run, can't access xwindows, the hardware clock is also not correct .
my question:
1. how can i change the hardware clock w/o reboot the system?
2. how to change the system clcok on the shell ( not sync with hardware clock ? thx.

Michael Creutz
Advisor

Re: reset system time

from man hwclock:

--set --date="9/22/96 16:45:05"

then do a hwclock --hctosys

Mike
Steven E. Protter
Exalted Contributor

Re: reset system time

I you really want to solve your problem for good.

Get your time off the internet.

the configuration file /etc/ntp.conf

I'm including a url that will help you pick a time source.

Once ntp.conf is configured
chkconfig xntpd on
service xntpd start

Links:
http://www.ntp.org/
http://www.ntp.org/documentation.html

This requires port 123 to be open on the firewall or in iptables/ipchains, depending on which firewall you're using.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com