Set the system time and hwclock
24 gennaio 2008, 0:19 Shell , System , Tips & Tricks January 24, 2008, 00:19
I often access a Linux server (of others) and found that the system time is completely wrong.
Replace things is simple, if you do not forget that Linux is separately and that the system time clock hardware.
It is therefore sufficient to adjust the system time with the command `date`, since the first reboot of the server system time would be automatically reset in synchronization with the clock hardware and nullifying the changes.
We must therefore move in two easy steps:
-
First you set the time using the command 'date':
date --set 16:11 -
Then impose the system clock (hardware) the same time using the synchronization command:
hwclock --directisa --systohc --utc
If you work with Debian-directisa option must also be specified in the script / etc / init.d / hwclock.sh, where it replaced the line:
HWCLOCKPARS=
with the line:
HWCLOCKPARS="--directisa"
This is what ...















June 11th, 2008 at 12:11
Thank you!
I do not know what he looked for a guide that functions to adjust the time! on three computers with three debian etch the same problem!
June 11th, 2008 at 12:15
Imagine, though - thanks in part - is not clear to me if you are able, using the instructions in this post, to solve the problem. If so, I'm glad, if not, let me know that I try to give you a hand and improve instruction.
Hello
July 10th, 2008 at 9:16
Thank you! Perfect was the time for months that I mailed from webmin ..
but each time came back wrong
July 10th, 2008 at 12:32
Please
This blog does not make sense to exist if the person ends up not find something useful to take away.
Lately I have not much time for the publication of new tips, but I have a directory full of tutorials that sooner or later be able to put online.
Stay tuned!
July 11th, 2008 at 19:12
Well ... then thanks also to be part of a newbie linux
May 3, 2010 at 11:52
It 'also important to set the correct time via ntp server, and only after the time set hw ...