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 ...

Get Mastering Ubuntu Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.