I have a VPS running Debian. The time that it reports from the date command is two minutes fast.

Is there a service that I can install that will keep the time correct?

link|improve this question

73% accept rate
1  
ntpd -- but this is more a question for serverfault. – Dave Jarvis Jan 27 '10 at 2:44
1  
This belongs on serverfault.com. – Jason Jan 27 '10 at 2:45
It only belongs on serverfault if he's running this system for paying customers. Otherwise it belongs on SuperUser. – Paul Tomblin Jan 27 '10 at 2:53
I don't see anything in the SF FAQ about "paying customers". – Andrew Medico Jan 27 '10 at 2:58
1  
And I don't see anything in the SU FAQ saying that machines asked about must be physical and not running Linux...would you tell someone on Windows to move to SF with a question about setting their clock to sync through NTP? – phoebus Jan 27 '10 at 4:38
feedback

migrated from stackoverflow.com Jan 27 '10 at 2:56

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

The "ntp" service handles date/time synchronization.

link|improve this answer
2  
NTP synch isn't so helpful on a virtual machine. you'd run ntpd on the host OS, then synch the guest via the virtualization tech's builtin methods. – quack quixote Jan 27 '10 at 4:03
feedback

ntpd works wonders unless the virtual cmos clock is being set by the hypervisor, in which case the time on the host machine needs to be set by the sysadmin, nothing you can do.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.