Alexander, First off, CentOS7 came with cronyd. Which was very annoying because when I tried to remove it, it had 2 prereqs: anaconda initial-setup Now, I don't know why the setup program kept these 2 around. I think CentOS7 needs a bit growing up. Anyway, I disabled chrony: systemctl disable time-sync systemctl stop time-sync Then I installed ntp. However, when I started it it seems that it was not compiled with: --enable-all-clocks So, I downloaded the latest and re-compiled with: ./configure --with-crypto --enable-all-clocks --enable-step-slew I built it as per the document and everything looks good -G On 12/12/2014 04:29 AM, Alexander Dalloz wrote:> Am 11.12.2014 um 21:57 schrieb xaos: >> Hello everyone, >> >> If anyone is interested, I have created a HOWTO >> on running a Motorola GPS receiver connected to >> a CentOS 7 box via serial port (com1), >> with 1PPS over DCD. >> >> The trick here is that CentOS 7 uses systemd >> and setup was a bit different. Anyway, >> everything works. >> >> The result is a highly accurate NTP server, Stratum 1. >> >> Here is the documentation. >> >> http://www.maximaphysics.com/Centos_7_GPS_Setup.html >> >> Let me know if something does not look right. >> >> -George, N2FGX > > Hello George, > > thanks for the interesting article. > > Mind you one question: why did you replace the NTPd shipping with > CentOS 7 by a source compilation? Is the NTPd version provided by > CentOS lacking some important feature for that usecase? > > Regards > > Alexander > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
The right thing to do next is to ask for this change upstream, so people can get regular updates and stay secure. Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ----- Original Message -----> From: "xaos" <xaos at darksmile.net> > To: centos at centos.org > Sent: Friday, 12 December, 2014 14:55:12 > Subject: Re: [CentOS] HOWTO Stratum 1 NTP server under CentOS 7> Alexander, > > First off, CentOS7 came with cronyd. Which was very annoying > because when I tried to remove it, it had 2 prereqs: > anaconda > initial-setup > > Now, I don't know why the setup program kept these > 2 around. I think CentOS7 needs a bit growing up. > > Anyway, I disabled chrony: > systemctl disable time-sync > systemctl stop time-sync > > Then I installed ntp. However, when I started it > it seems that it was not compiled with: --enable-all-clocks > > So, I downloaded the latest and re-compiled with: > > ./configure --with-crypto --enable-all-clocks --enable-step-slew > > I built it as per the document and everything looks good > > -G > > On 12/12/2014 04:29 AM, Alexander Dalloz wrote: >> Am 11.12.2014 um 21:57 schrieb xaos: >>> Hello everyone, >>> >>> If anyone is interested, I have created a HOWTO >>> on running a Motorola GPS receiver connected to >>> a CentOS 7 box via serial port (com1), >>> with 1PPS over DCD. >>> >>> The trick here is that CentOS 7 uses systemd >>> and setup was a bit different. Anyway, >>> everything works. >>> >>> The result is a highly accurate NTP server, Stratum 1. >>> >>> Here is the documentation. >>> >>> http://www.maximaphysics.com/Centos_7_GPS_Setup.html >>> >>> Let me know if something does not look right. >>> >>> -George, N2FGX >> >> Hello George, >> >> thanks for the interesting article. >> >> Mind you one question: why did you replace the NTPd shipping with >> CentOS 7 by a source compilation? Is the NTPd version provided by >> CentOS lacking some important feature for that usecase? >> >> Regards >> >> Alexander >> >> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
On Fri, Dec 12, 2014 at 9:12 AM, Nux! <nux at li.nux.ro> wrote:> The right thing to do next is to ask for this change upstream, so people can get regular updates and stay secure. > > Lucian > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro >+1 agree 100%
Jonathan Billings
2014-Dec-12 16:55 UTC
[CentOS] HOWTO Stratum 1 NTP server under CentOS 7
On Fri, Dec 12, 2014 at 09:55:12AM -0500, xaos wrote:> > Alexander, > > First off, CentOS7 came with cronyd. Which was very annoying > because when I tried to remove it, it had 2 prereqs: > anaconda > initial-setup > > Now, I don't know why the setup program kept these > 2 around. I think CentOS7 needs a bit growing up.'initial-setup' is the program that runs on your first boot, and it requires 'anaconda'. 'anaconda' requires the 'chrony' package. Services in the default install require a time-sync daemon, and chrony is the default, so this isn't really unexpected. Once a system is set up, it doesn't remove the initial-setup package.> Then I installed ntp. However, when I started it > it seems that it was not compiled with: --enable-all-clocksThat doesn't seem to be the case. Looking at the NTP spec file, I see: %configure \ --sysconfdir=%{_sysconfdir}/ntp/crypto \ --with-openssl-libdir=%{_libdir} \ --without-ntpsnmpd \ --enable-all-clocks --enable-parse-clocks \ --enable-ntp-signd=%{_localstatedir}/run/ntp_signd \ --disable-local-libopts (check the git.centos.org version yourself: https://git.centos.org/blob/rpms!ntp.git/dbacec4466ee70248db634b110bfad8a2b74cd82/SPECS!ntp.spec ) As far as I can tell, there is literally no reason why you can't use the packaged ntpd. If you are having a problem with getting the packaged ntpd working, I suggest filing a bug against the RHEL package. The package has many patches, perhaps one of them is interfering with detecting your device. -- Jonathan Billings <billings at negate.org>
Jonathan, I would much prefer to run out-of-the box. No question! BTW, on other machines that I installed CentOS7, chrony, was not there. Neither was anaconda or initial-setup. This was after the install, naturally. Ok, so maybe this box was unlucky. It was installed the same day as Centos7 came out. I will re-install, update and see what happens. Quite often the problem lies between the computer and the chair. Update to follow... -George On 12/12/2014 11:55 AM, Jonathan Billings wrote:> On Fri, Dec 12, 2014 at 09:55:12AM -0500, xaos wrote: >> Alexander, >> >> First off, CentOS7 came with cronyd. Which was very annoying >> because when I tried to remove it, it had 2 prereqs: >> anaconda >> initial-setup >> >> Now, I don't know why the setup program kept these >> 2 around. I think CentOS7 needs a bit growing up. > 'initial-setup' is the program that runs on your first boot, and it > requires 'anaconda'. 'anaconda' requires the 'chrony' package. > Services in the default install require a time-sync daemon, and chrony > is the default, so this isn't really unexpected. Once a system is set > up, it doesn't remove the initial-setup package. > >> Then I installed ntp. However, when I started it >> it seems that it was not compiled with: --enable-all-clocks > That doesn't seem to be the case. Looking at the NTP spec file, I > see: > > %configure \ > --sysconfdir=%{_sysconfdir}/ntp/crypto \ > --with-openssl-libdir=%{_libdir} \ > --without-ntpsnmpd \ > --enable-all-clocks --enable-parse-clocks \ > --enable-ntp-signd=%{_localstatedir}/run/ntp_signd \ > --disable-local-libopts > > (check the git.centos.org version yourself: > https://git.centos.org/blob/rpms!ntp.git/dbacec4466ee70248db634b110bfad8a2b74cd82/SPECS!ntp.spec > ) > > As far as I can tell, there is literally no reason why you can't use > the packaged ntpd. > > If you are having a problem with getting the packaged ntpd working, I > suggest filing a bug against the RHEL package. The package has many > patches, perhaps one of them is interfering with detecting your > device. > >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12.12.2014 17:55, Jonathan Billings wrote:> 'initial-setup' is the program that runs on your first boot, and > it requires 'anaconda'. 'anaconda' requires the 'chrony' package. > Services in the default install require a time-sync daemon, and > chrony is the default, so this isn't really unexpected. Once a > system is set up, it doesn't remove the initial-setup package.Then it should just require a time-sync daemon, and not a specific one imho. regards Sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQGcBAEBAgAGBQJUi1UHAAoJEAq0kGAWDrql4VYL/jB/AB+E8iIiu8gaM2RC6OnL gC/SzT8BsKWCDDv1X2gAL3USGwPRRCZp1gV/R2FoRcdXrRtEyRlvfFb39sYZ/QRv fUV7qydMHv9+t8V71mETLdM2rY/d9ANSaGlNUMv9DsmwyFARmqm5UBYPwufco2vi +FDhRsgvpVQ3extJxwwIFtSPCXe0sBBKU6FuQyOAkUME4tfAXVZCS2Cd5Sco3IlZ o27mx2v+rWlQZdf12IA5HRUIUND41H3YPhSwmgomMcG0MgtdmwLvTKSHJx/hRrp4 9gYexc0rgncm4dwEZNrrpPru3Q0LKnUH4Ea7ayUqFDIgOlvTC/nnNQOEebzVgN1g fRIcxYEmkvL3AGe1VcfC+Ep/pw22qLC8FUFGM5XVtvTp+D0A0OSN0KOS8wYH5RmG 5unxVDlbq76j0w1/IaYNnAqMl8qOMgDvgkV40MPh8Pe21bBYWYKIaZnJCtpPlgij E14Fc6MF4EcUOAQfaE9Y27qNkQW6gd/l78ln1Zvmyw==bbP4 -----END PGP SIGNATURE-----