[time-nuts] Getting ntpd to work with Garmin LVC-18x and Ubuntu 16.04..

Hal Murray hmurray at megapathdsl.net
Sat Jul 16 15:14:44 EDT 2016


howard at leadmon.net said:
> Does anyone have any ideas, or have this all working under Ubuntu 16.04 LTS?
> I would sure love to get my time server back online, as I pretty much have
> everything on the network sync with it.. 

The PPS stuff on Linux needs some magic setup.  You need to run something 
like:

if [ ! -e /dev/gps0 ]; then
  ln -s /dev/ttyS0 /dev/gps0
  setserial /dev/ttyS0 low_latency
  ldattach 18 /dev/gps0 & # gets /dev/pps0
  sleep 10
fi

I put that in /etc/sysconfig/ntpd which gets run by the startup scripts 
before starting ntpd.

When you get to systemd, it doesn't actually run /etc/sysconfig/ntpd, just 
scans it for OPTIONS=xxx
I haven't found a great solution.  What I've been doing is use systemctl to 
disable autostart and start ntpd from rc.local by:
  /bin/sh /etc/sysconfig/ntpd
  /usr/sbin/service ntpd start



-- 
These are my opinions.  I hate spam.





More information about the time-nuts mailing list