How to setup Ubuntu to synchronize its time over the Internet

by Sukrit Dhandhania on November 6, 2009

Oftentimes my Ubuntu desktop loses track of time. Really. What happens is that the time it maintains goes a few minutes here and there every month. So I like to use a very useful Linux service called NTP to help keep the clock on my Ubuntu desktop in sync with well maintained clocks over the Internet. Let’s look at how to set this up.

You need an Ubuntu computer with Internet access. The access need not be on all the time, it’s fine even if the computer gets access on and off so that it can check with the clocks online and get in sync. Log into your Ubuntu computer and click on the System button at the top of you screen. Navigate to Administration -> Time and Date. You’ll see a window pop up with the time and date setup in it. Click on the Unlock button and enter your password to proceed.

image01

In this window click on the drop down menu next to item titled Configuration You’ll see two options – Manual and Keep synchronized with Internet servers. Choose the second option. If you don’t have the NTP tools installed Ubuntu will inform you of it and ask if you want it to install them for you.

image02

Click on the button titled Install NTP support. It will ask you for your password then begin installing the required tools. Now we can proceed with setting up time synchronization. the next step is to tell Ubuntu which server you want it to sync the time with.

Click on the Select Servers button to pick which server you want to Ubuntu to use.

image03

The window shown in the screenshot below will pop up, giving you several options. Note that you can pick more than one server. This way if a server goes down for some reason Ubuntu will try getting the time from another server.

image04

Click on the Close button once you are done picking servers. One last thing you need to check is that the NTP is set to run at boot. To do this go to System -> Administration -> Services and make sure that the item titled Clock synchronization service (ntp) is checked.

image05

Voila. Now the clock on your Ubuntu computer will sync with the clocks online periodically, making sure you are always on time.

  • Jason

    I think that this is for an outdated version of Ubuntu (9.04). The current version is 9.10.

  • Pingback: How to : Setup Ubuntu to synchronize its time over the Internet | FACJS Reviews()

  • sehnsucht

    Yes, there’s no `system/adminstration/services` in 9.10. This is a common problem with ubuntu -stuff just keeps getting moved around or changed for no reason, breaking the tutorials, which themselves don’t usually mention which version they refer to, meaning everything is harder than it needs to be.

  • 28days

    Danke. Sehr hilfreich!