To install ntp on Ubuntu, Linux or debian based distribitions
# apt-get update # apt-get install ntp
To install ntp on Fedora, Centos or redhat based distribitions
# yum install ntp After you set your timezone correcly, you should be able to synce your date and time with ntp command
# ntpdate pool.ntp.org
# ntpdate 0.ubuntu.pool.ntp.org 19 Feb 18:42:09
You can edit the file /etc/ntp.conf to control certain variables with the NTP service, and can start and stop the file using “/etc/init.d/ntp [status|start|stop]”.