Syncronise time  with NTP  server in Ubuntu /Mint/Debian

Syncronise time with NTP server in Ubuntu /Mint/Debian

How to Synchronize time  with NTP  server in Ubuntu /Mint/Debian ?

To install the ntp, just enter this command:

sudo apt-get install ntp

 Edit the default ntp configuration:

sudo nano /etc/ntp.conf

Add the following to your ntp.conf file: (Netherlands)


to  get other  servers  for your  country  please  use

After ,  just restart the ntp service:

sudo service ntp restart

Check if the NTP service is synchronizing:

sudo ntpq -c lpeer

To check the synchronization log:

sudo tail -f /var/log/syslog
  • Vincent

    This is useful for servers, but not so much for desktops IMHO. A desktop you typically shutdown or suspend at the end of the day and at least Linux Mint already synchronizes with time servers by running ntpdate each time a network interface comes up (which would be at boot and at wake from suspend). You don’t have that much time drift over one day, so running the ntpdate once per day is fine.

    Configuration for this is in /etc/network/if-up.d/ntpdate.

  • Linhurst

    What is the advantage over:
    System Tools > Time and Date > Keep Synchronised with Internet Servers

  • Pingback: Keeping Your Linux Server/s In Time With Your Router | Binarymist()