Setting Up Ubuntu Time & Date to a Network Time Server


In my network environment I like to have all my servers synced to a central network time server so that all my servers share the same time. This is especially useful when you are comparing logs from one server to another.

Steps:

  • Installing ntpdate
  • configuring ntpdate to a time server

First things first!  Let’s download the package on to your ubuntu box.

  • sudo apt-get update
  • sudo apt-get install ntpdate

Once you have the package installed, we’re going to have to point it to a time server.  You can find a list of ntp servers around the globe here.

Since I live in the USA, I’m going to use one of my local servers.

ntpdate 0.us.pool.ntp.org
When I enter the above command I get a reply like this:

5 Jun 19:12:42 ntpdate[4157]: adjust time server 216.14.97.75 offset 0.001588 sec

That’s it. You should now be synchronized with a network server. This will now keep all of your server referencing one central location for their time and date.

Enjoy.

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!