Computers, Gadgets and Beyond!

Keeping time in Ubuntu

January 17, 2007 By: webmaster Category: Technology, Tutorials, Ubuntu

For some strange reason, none of my Ubuntu 6.10 installations have included NTP (Network Time Protocol) by default. No idea why, but here is how you make sure the clock your Ubuntu box is staying in sync with the rest of the world if the same thing happens to you.

 # sudo apt-get install ntp-server

This is technically it, but the stock installation does not adjust your time right away if it is way out of sync. So we just do this to make sure we're correct from the start:

# /etc/init.d/ntp-server stop
# ntpdate -s pool.ntp.org
# /etc/init.d/ntp-server start

There, you're in sync and will stay in sync from now on.

Tags: , ,
  • Hit me

  • Current Poll

    Which sub-note are you getting?
    View Results
  • Default test

    • May: Change in leadership could delay Brexit
      Theresa May's Brexit crisis deepened as members of her own party triggered a vote of no-confidence in her leadership. If she loses the vote, she will be out as British Prime Minister.
    • Strasbourg gunman was on French watch list
      The suspected shooter in Strasbourg, France, identified as a 29-year-old male by CNN affiliate BFM, was on a French terror watch list called a "Fiche S" surveillance file.
    • May faces no-confidence vote amid Brexit chaos
      Members of UK Prime Minster Theresa May's own party triggered a vote of no-confidence in her leadership amid Brexit deal discussions, which could lead to her removal from office.
    • Analyst: Flynn is lynchpin of investigation
      CNN legal analyst Michael Zeldin discusses the memo President Trump's former national security adviser Michael Flynn provided to a federal judge before his sentencing.
    • Exploring the Swiss Alps by Cable Car
      Living amidst some of the world’s most beautiful mountains isn’t half bad, but you need to be creative when it comes to getting around. There’s no room for roads in the natural splendor of Central Switzerland’s Engelberg Valley, so the area boasts an intricate network of cable cars. In this town, even farm animals get a lift to the mountaintop. This Great Big Story was made possible by Swiss International Air Lines.