Google Plus

Syncronise time with NTP server in Ubuntu /Mint/Debian

Written by Mel Kham on . Posted in Frequently Asked Questions, Linux Mint, Linux tutorials, Ubuntu

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
For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • 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

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

David

|

Hi SK,
thanks for your post :)
I did all the steps one by one but I got error 500, also I disable the selinux,and iptabels
In addition I cannot success to get the cacti in localhost.
Any idea?
Thanks

Richard

|

I have been searching for a solution to that problem too but with videos. I can’t see anyway to make VLC do this. And nobody can tell me how.
However, I did find a media player called Movist that does it. I will never understand why VLC, the best in my opinion, does not design this feature into their player.

cave

|

it can be used to talk or chat through the internet,

it is using strong encryption.

but for example TOR is using some obfuscation because some countrys try to block all outgoing connections which can not be scanned with DPI

And the TOR Project is facing an arms race in obfuscation and encryption detection.

cave

|

You can friend someone if you give him your public Certificate.

both peers must friend each other.

i suggest to not enter a valid e-mail address. it is not necessary, but pgp needs a mail addy. something@something.so fits perfectly… :)

http://redd.it/18vsq5 <– faq, featurelist, todo, howto, useful links to manual wiki etc, …

you can connect to chatservers, which will give you access to chatlobby, where always some people are lurking.

#1 https://www.f2f-fr.net/w2c/en/
#2 http://retrosharechatserver.no-ip.org/w2c/en/

and in this rooms, you can find other people to talk and friend.

cave

|

http://redd.it/18vsq5
please have a look at this link. it is a FAQ, QuickTip, HowTo, etc etc etc …

If you want to make friends, please use the Chatservers.
#1 https://www.f2f-fr.net/w2c/en/
#2 http://retrosharechatserver.no-ip.org/w2c/en/

if you enter your certificate, the chatserver adds you as his friend and shows his certificate too add him to your friends.

After the connection to the chatservers is established, you can join a few chatrooms where the chatserver is lurking.

in this rooms are other people too help you and make first friends and get into the network.

add friends only with wisdom. if you friend some policeman, it will be problematic like in real life.

best is to add only people you trust in real life or trust from other communitys too. and not to add random unkown strangers.

If you have questions, ask them in the chatlobbys, there is always someone to answer them.

please read http://redd.it/18vsq5

or question me here :)

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .