Linux Lite Forums
[SOLVED] Time/Date Setting ~ NTP - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: [SOLVED] Time/Date Setting ~ NTP (/showthread.php?tid=1555)

Pages: 1 2


[SOLVED] Time/Date Setting ~ NTP - Wirezfree - 02-18-2015

Hi,


Thought I would set up one of my PC's with Date/Time synced to NTP Server.
So my internet connection is fine, and I can ping the ntp servers listed: http://www.pool.ntp.org/zone/uk

I add one of the ntp servers, it says "Checking" and it lists it... I can ping it...
But when I come to close the page, it errors out... UFW Firewall is in-active.
Any ideas..??
Thanks.


[img height=449 width=800]http://i.imgur.com/wyKyMV4.png[/img]


Re: Time/Date Setting ~ NTP - Wirezfree - 02-26-2015

Hi,


Any ideas on this.?
Anybody else tried to set up Auto Time Sync.?


Thanks... Dave


Re: Time/Date Setting ~ NTP - Valtam - 02-26-2015

Have you tried any other ntp servers from other countries to test?


Re: Time/Date Setting ~ NTP - Valtam - 02-26-2015

Upon further research, it looks like the simplest way to fix this is:

Code:
sudo apt-get install ntp

Then edit the file below to add time servers:

Code:
sudo leafpad /etc/ntp.conf

Add your time-servers to synchronize with.

Then, restart NTP service:

Code:
sudo service ntp restart

You may have to let traffic on your router through port 123 fowarded to your pc's ip address if it is still not working. Then restart the service again.

Then test with:
Code:
sudo ntpq -np

Also check your router, most these days ship with NTP options, config it there.


Re: Time/Date Setting ~ NTP - Wirezfree - 02-26-2015

(02-26-2015, 11:28 AM)Jerry link Wrote: Have you tried any other ntp servers from other countries to test?

Hi Jerry,

Tried 4 different from this list: http://www.timetools.co.uk/2013/07/25/ntp-server-uk/


Unless my ISP is blocking NTP ~ Port 123 .?


Dave


Re: Time/Date Setting ~ NTP - Wirezfree - 02-26-2015

Hi Jerry,


I think we both posted at the same time...
I will try your suggestions ASAP.


Dave


Re: Time/Date Setting ~ NTP - Valtam - 02-26-2015

No worries Dave, I'm off to bed....peace Smile


Re: [SOLVED] Time/Date Setting ~ NTP - Wirezfree - 02-26-2015

Hi Jerry,

I followed your instructions...

It still errors out when using the Date/Time GUI if I try use the Automatic "Tick Box"

However...
On reading this: http://www.pool.ntp.org/en/use.html

Code:
dave@asus-mini-1:~$ sudo ntpq -np
remote               refid      st t when poll reach   delay   offset  jitter
==============================================================================
+82.219.4.30      135.81.191.59    2 u   50   64  177   26.034   18.801   6.295
*94.228.40.3      195.66.241.10    2 u   49   64  177   19.854   10.271   8.200
-130.88.200.6     130.88.212.143   3 u   47   64  177   32.986   20.041   7.014
+130.88.212.143   193.62.22.74     2 u   50   64   77   34.816   17.438   7.865
-91.189.94.4      192.93.2.20      2 u   47   64   77   28.303    9.507   5.759

I do have a "*" next to one of the ntp servers, so I think it is auto syncing time..??


** NOTE ADDED **
It appears time is being synced, so maybe an issue with the Date/Time GUI





Re: [SOLVED] Time/Date Setting ~ NTP - Valtam - 02-26-2015

You are syncing. I have yet to find a reliable, point and click solution for this. In the meantime I'll add the ntp package to LL 2.4 so at least the software will be there, then it's just a matter of a few quick commands.


Re: [SOLVED] Time/Date Setting ~ NTP - Wirezfree - 02-26-2015

Thanks...
I guess it must poll to find "Best Server"..??
It's now using a different one on the list.
Code:
dave@asus-mini-1:~$ sudo ntpq -np
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*82.219.4.30     195.66.241.2     2 u   84 1024  377   26.732    2.679   3.212
+94.228.40.3     195.66.241.3     2 u  169 1024  377   20.335    2.651   7.067
+130.88.200.6    130.88.212.143   3 u   41 1024  377   33.378   -0.420   7.338
+130.88.212.143  193.62.22.74     2 u  102 1024  377   34.744    0.589   3.996
+91.189.94.4     192.93.2.20      2 u  702 1024  377   28.707   -1.722   2.858

I want to have an accurate time,
Ideally +/- 1 sec for another hobby that requires accurate timing for data decoding.