How to Time Synchronisation with NTP on UBUNTU

Ubuntu comes with ntpdate as standard, and will run it once at boot time to set up your time according to Ubuntu’s NTP server.
For servers and machines that run for long time before reboot is better to use NTPD.

sudo apt-get install ntp

Now edit the file /etc/ntp.conf putting the NTP servers you want to synchronize with. I’m putting my Windows domain controllers as time-server.

Restart NTP service and check now with this command the servers with which you are synchronized.

sudo ntpq -np

A star by any one of the chosen server names means that the system clock is synchronizing with the NTP clock.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s