Network time protocol
Network time protocol (NTP) enables you to synchronize your server’s system time with a remote server periodically. Thus, you can keep your system time accurate by syncing with known time servers.
How do I Install NTP Server?
To install the NTP server issue following command.
sudo aptitude update
sudo aptitude install ntp
Set NTP service to run at boot time
Once NTP server is installed ensure that service will run at boot time by running.
sudo /sbin/chkconfig ntpd on
Start the NTP service
To make sure the NTP service starts after installing issue following command.
sudo /etc/init.d/ntp start
By installing the NTP service your server is automatically setup to sync time with default NTP servers.