Tuesday, March 10, 2015

[Quick Install]: 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)
server 0.nl.pool.ntp.org
 server 1.nl.pool.ntp.org
 server 2.nl.pool.ntp.org
 server 3.nl.pool.ntp.org
to  get other  servers  for your  country  please  use  http://www.pool.ntp.org/
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

No comments: