Personal computing discussed

Moderators: SecretSquirrel, notfred

 
just brew it!
Gold subscriber
Administrator
Topic Author
Posts: 49736
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

NTP time sync on Kubuntu 14.04 LTS

Sun Nov 27, 2016 8:23 am

Anyone else notice it not working? I had configured it for automatic time synchronization via the KDE clock widget, but I noticed this morning that system time had drifted off by several seconds. I went ahead and configured the ntp service "the old fashioned way" (installed the ntp package and manually edited the /etc/ntp.conf file to point at my file server, which is set up as a local time server). We'll see if that works any better.
Nostalgia isn't what it used to be.
 
notfred
Maximum Gerbil
Posts: 4393
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: NTP time sync on Kubuntu 14.04 LTS

Sun Nov 27, 2016 3:00 pm

I was on Ubuntu 14.04 for a couple of years and had the time sync configured via /etc/ntp.conf and never had a problem with it. I have my server set to some external NTP servers and then it broadcasts on my LAN. I would occasionally check with an "ntpq -p" and it was always synchronised. I've upgraded to 16.04 and it is working fine there as well.

nreilly@nick:~$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*gate            132.246.11.229   3 u   21   64  377    0.377    0.233   0.195
nreilly@nick:~$ ntpq -p gate
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 Broadcast       .XFAC.          16 B    -   64    0    0.000    0.000   0.000
*time.nrc.ca     132.246.11.231   2 u  416 1024  377   14.967   -0.242   4.127
+time1.chu.nrc.c 209.87.233.51    2 u  838 1024  377   27.713    1.322   1.308
+ntp1.torix.ca   192.168.100.252  2 u  807 1024  377    9.330   -0.368   0.291
-ntp2.torix.ca   192.168.100.252  2 u  564 1024  377    9.358   -0.806   0.474
nreilly@nick:~$
 
just brew it!
Gold subscriber
Administrator
Topic Author
Posts: 49736
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: NTP time sync on Kubuntu 14.04 LTS

Sun Nov 27, 2016 5:29 pm

Yeah, it seems to be tracking with sub-millisecond accuracy now that I set it up manually. I have no idea what KDE was doing.
Nostalgia isn't what it used to be.
 
Topinio
Graphmaster Gerbil
Posts: 1345
Joined: Mon Jan 12, 2015 9:28 am
Location: London

Re: NTP time sync on Kubuntu 14.04 LTS

Sun Nov 27, 2016 5:42 pm

just brew it! wrote:
Yeah, it seems to be tracking with sub-millisecond accuracy now that I set it up manually. I have no idea what KDE was doing.

Not using chrony instead of ntpd was it?
Desktop: E3-1270 v5, X11SAT-F, 32GB, RX Vega 56, 250GB BX100, 2TB Ultrastar, Xonar DGX, XL2730Z + G2420HDB
HTPC: i5-2500K, DH67GD, 6GB, GT 1030 SC, 250GB BX100, 1.5TB Barracuda, Xonar DX
Laptop: MacBook6,1
 
just brew it!
Gold subscriber
Administrator
Topic Author
Posts: 49736
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: NTP time sync on Kubuntu 14.04 LTS

Sun Nov 27, 2016 9:30 pm

Topinio wrote:
just brew it! wrote:
Yeah, it seems to be tracking with sub-millisecond accuracy now that I set it up manually. I have no idea what KDE was doing.

Not using chrony instead of ntpd was it?

There was a process named ntpd running but it was definitely not the "normal" one, since the ntp package was not installed, /etc/ntp.conf did not exist, and the time was not being synced properly. :roll:
Nostalgia isn't what it used to be.
 
curtisb
Gerbil XP
Posts: 396
Joined: Tue Mar 30, 2010 11:27 pm
Location: Oklahoma

Re: NTP time sync on Kubuntu 14.04 LTS

Mon Nov 28, 2016 1:01 am

Instead of configuring multiple servers I just use one of the ntp.org pools. Since I'm in the US, I use us.pool.ntp.org. Canada should be ca.pool.ntp.org. They'll round robin to the server closest to you. Your internet latency does actually matter--somewhat--as to accuracy, so using a server close to you will get you as accurate as possible. Not that you guys didn't already know that. :)

You can see the different pools here:

http://www.pool.ntp.org/en/
ASUS MAXIMUS VIII HERO | Intel Core i7-6700 | Asus STRIX GTX 970 4GB | 4 x Corsair LPX 8GB | 2 x Crucial MX200 500GB | 2 x Hitachi Deskstar 4TB | Phanteks Eclipse | Seasonic X-850 | Dell UP2516D
 
just brew it!
Gold subscriber
Administrator
Topic Author
Posts: 49736
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: NTP time sync on Kubuntu 14.04 LTS

Mon Nov 28, 2016 4:58 am

Yup, I'm familiar with the pool. I even used to have a publicly accessible server that participated in the pool (back when my internet connection was a business-class DSL line with a static IP). The local server still syncs to the pool; I figure since I have an always-on file server, I might as well do my part to lighten the load on the public pool by having my own slave server to serve out time locally.

The issue isn't whether to use the NTP pool or not; the issue is that whatever KDE did when I configured NTP via the GUI didn't work!
Nostalgia isn't what it used to be.

Who is online

Users browsing this forum: No registered users and 1 guest