O'Reilly logo

Mastering Ubuntu Server by Jay LaCroix

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Keeping your system clock in sync with NTP

It's incredibly important for Linux servers to keep their time synchronized, as strange things can happen when a server's clock is wrong. One issue I've run into that's especially a problem is file synchronization utilities, which will exhibit strange behavior when there are time issues. However, Ubuntu servers feature the Network Time Protocol client and server within the default repositories to help keep your time in sync. If it's not already installed, all you should need to do is install the ntp package:

# apt-get install ntp

Once installed, the ntp daemon will immediately start and will keep your time up to date. To verify, check the status of the ntp daemon with one of the following commands depending ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required