Subscribe to How-To Geek

Sync Your System Clock with Internet Time Servers in Ubuntu

Ubuntu has an easy way to keep your system synchronized with the internet time servers. This is especially useful on older computers that may have problems with the system clock losing time.

To enable this feature, first we’ll right click the clock and choose Adjust Date & Time:

You should see this screen, where you can select the checkbox to synchronize the time:

Most likely, NTP support has not been installed on your computer, unless you had installed it before. Click the Install NTP support button to install it.

Your system should now start synchronizing the time with the time servers. If you want to manually sync the time, you have to first uncheck the “keep clock synchronized” checkbox, and then you can check the “Synchronize Now” button:

 

Pretty cool.

The Geek is the founder of How-To Geek and a geek enthusiast. This article was written on 12/5/06 and tagged with: Ubuntu, Ubuntu Tips & Tweaks

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:
Similar Articles Featured Wiki Articles
Latest Software Reviews Quick Linux Tips
Geek Arcade Popular Forum Threads

Comments (10)

  1. ForgotTheName

    Is NTP resource intensive? Im hesitating installing it bc i worry it kills sys resources…

  2. Rob

    I decided not to use another deamon but to add a simple command in my startup script:
    sudo ntpdate pool.ntp.org

    It keeps my time uptodate via timeserver pool.ntp.org, maybe you should use a server from a location near you.
    The command takes just 2 seconds to complete at startup, and it doesn’t kill your resources.
    You can create a cron job too if you like!

  3. Mike Scirocco

    Thanks, this was just what I was looking for, your presentation was very clear. Nice work.

  4. Pete Braven

    Ah,.. this is what I like to see,.. geek-speak for utter numpties! (like me!) Cheers mate, works a treat and no it doesn’t eat the system!

  5. Shane

    Rob, unfortunately, that’s not the preferred solution. The ntp daemon uses almost no resources. On my system right now, there is approximately 300K of RAM used by it, and no processor usage. Do a quick search for ntpd vs. ntpdate, and you’ll find ‘everyone’ recommends ntpd. It keeps track of your synchronizations, and accounts for some other variables to keep your clock even more accurate than just running ntpdate at startup. Of course, if you really don’t care about having an accurate clock all the time, by all means setup a cronjob or startup script with ntpdate, but that’s my 2 cents.

  6. Eric March

    Very easy to understand. Well done

  7. HappySpaceInvader

    This information is out of date for Ubuntu Intrepid (8.10). In a vanilla installation, there are no options for NTP in the Date & Time settings, nor are there any prompts to install NTP support. It looks as if this feature has been discontinued unless you have the knowledge to set it up manually at the command line (fortunately, I do).

    I imagine, this is to prevent all new Ubuntu users from synchonrising to the same default time server and never changing it to sync to one that is nearer to home. This is one of those areas where ‘paid for’ operating systems win out in my opinion. Microsoft and Apple can afford to set up and maintain a bunch of their own time servers (time.windows.com, time.euro.apple.com, etc.) for their users.

  8. Jason

    Would have been great if HappySpaceInvader had actually posted how to set it from the terminal. My laptop’s onboard battery is dead so each time I start up I have to manually set the time.

  9. Atif

    II installed VMware Kubuntu on Windows Vista. Under system settings > Internet & Networks > Connections > Proxy > Use the following login information section is disabled. Whenever I use a browser it prompts me for a user name and password. But when synching the system clock with a time server it gives an error saying unable to connect to time server.

    Is there a way around this to manually set the username and password somewhere?

    Thank You

  10. Martin

    @ Jason (and anyone else who would like to know)

    How to set NTP time sync from terminal:

    sudo aptitude install ntp ntpdate

    Be sure to access the application from System / Administration / Time and Date
    and select a server closest to your location.


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.