Re: [gentoo-user] What ntp/sntp client do people use?
On Wednesday, 11 December 2019 04:59:08 GMT Walter Dnes wrote: > On Tue, Dec 10, 2019 at 03:19:16AM -0600, Dale wrote > > > I think I used ntpdate years ago. Can't recall why I switched but > > > > something wasn't working right. People here recommended chrony and once > > set up, its worked ever since. OP, if you haven't tried it yet, may be > > worth giving it a test run. Man chronyc; man chronyd. Here's my chrony.conf: # cat /etc/chrony/chrony.conf # Use public NTP servers from the pool.ntp.org project. # Also Zen's closer servers: server ntp0.zen.co.uk iburst server ntp1.zen.co.uk iburst pool uk.pool.ntp.org iburst server 0.gentoo.pool.ntp.org iburst server 1.gentoo.pool.ntp.org iburst server 2.gentoo.pool.ntp.org iburst server 3.gentoo.pool.ntp.org iburst # Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift # Allow the system clock to be stepped in the first three updates # if its offset is larger than 1 second. makestep 1.0 3 # Enable kernel synchronization of the real-time clock (RTC). rtcsync rtconutc -- HTH. -- Regards, Peter.
Re: [gentoo-user] What ntp/sntp client do people use?
Am Mittwoch, 11. Dezember 2019, 05:59:08 CET schrieb Walter Dnes: > On Tue, Dec 10, 2019 at 03:19:16AM -0600, Dale wrote > > > I think I used ntpdate years ago. Can't recall why I switched but > > > > something wasn't working right. People here recommended chrony and once > > set up, its worked ever since. OP, if you haven't tried it yet, may be > > worth giving it a test run. > > Now what? I'm willing to RTFM, but I can't FTFM (Find the F** > Manual). > [...] > [i660][root][~] man chrony > No manual entry for chrony > [i660][root][~] info chrony > info: No menu item 'chrony' in node '(dir)Top' > [i660][root][~] emerge --unmerge chrony [...] I know it's easy to forget, but "apropos" is a thing ;-) : % apropos chrony chrony.conf (5) - chronyd configuration file chronyc (1) - command-line interface for chrony daemon chronyd (8) - chrony daemon HTH -- Marc Joliet -- "People who think they know everything really annoy those of us who know we don't" - Bjarne Stroustrup signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] What ntp/sntp client do people use?
On Wednesday, 11 December 2019 04:59:08 GMT Walter Dnes wrote: > On Tue, Dec 10, 2019 at 03:19:16AM -0600, Dale wrote > > > I think I used ntpdate years ago. Can't recall why I switched but > > > > something wasn't working right. People here recommended chrony and once > > set up, its worked ever since. OP, if you haven't tried it yet, may be > > worth giving it a test run. > > Now what? I'm willing to RTFM, but I can't FTFM (Find the F** > Manual). Have a look at: man chronyd It runs as a daemon. The command line utility to interefere with it is detailed in: man chronyc Typically I set /etc/chrony/chrony.conf and run it as a default service. Upon setting it up I run 'chronyc sources -v' a couple of times to make sure it is working as desired. For laptops which are not online 24-7 it is worth adding 'iburst' after the address of a time server to allow the clock to adjust fast at boot. Additional information can be found here: $ ls -la /usr/share/doc/chrony-3.5-r2/ total 72 drwxr-xr-x 3 root root 4096 Nov 2 09:27 . drwxr-xr-x 826 root root 36864 Dec 7 16:42 .. -rw-r--r-- 1 root root 7942 Nov 2 09:27 FAQ.bz2 -rw-r--r-- 1 root root 9844 Nov 2 09:27 NEWS.bz2 -rw-r--r-- 1 root root 3167 Nov 2 09:27 README.bz2 drwxr-xr-x 2 root root 4096 Nov 2 09:27 examples HTH. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] What ntp/sntp client do people use?
chrony on the "server" to sync from the Internet and systemd-timesyncd on the others to sync from the server.
Re: [gentoo-user] What ntp/sntp client do people use?
Walter Dnes wrote: > On Tue, Dec 10, 2019 at 03:19:16AM -0600, Dale wrote > >> I think I used ntpdate years ago. Can't recall why I switched but >> something wasn't working right. People here recommended chrony and once >> set up, its worked ever since. OP, if you haven't tried it yet, may be >> worth giving it a test run. > Now what? I'm willing to RTFM, but I can't FTFM (Find the F** > Manual). > > === > > strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ > -R .comment -R .GCC.command.line -R .note.gnu.gold-version >/usr/bin/chronyc >/usr/sbin/chronyd > I have no idea what this part is doing. Installing (1 of 1) net-misc/chrony-3.5-r2::gentoo Recording net-misc/chrony in "world" favorites file... Auto-cleaning packages... No outdated packages were found on your system. > * GNU info directory index is up-to-date. > [i660][root][~] man chrony > No manual entry for chrony > [i660][root][~] info chrony > info: No menu item 'chrony' in node '(dir)Top' > [i660][root][~] emerge --unmerge chrony > > === > > Has RFC868 been deprecated everywhere, or is it just ca.pool.ntp.org > that won't listen to it? > When I set up chrony, I just set up the config file and then started the service. After that, it just runs and does its work. If it helps, this is my chrony.conf file. root@fireball / # cat /etc/chrony/chrony.conf # Use public NTP servers from the pool.ntp.org project. #pool pool.ntp.org iburst ### SPECIFY YOUR NTP SERVERS # Most computers using chrony will send measurement requests to one or # more 'NTP servers'. You will probably find that your Internet Service # Provider or company have one or more NTP servers that you can specify. # Failing that, there are a lot of public NTP servers. There is a list # you can access at http://support.ntp.org/bin/view/Servers/WebHome or # you can use servers from the pool.ntp.org project. server 64.6.144.6 server 67.159.5.90 server 67.59.168.233 server 204.62.14.98 server 69.50.219.51 server 209.114.111.1 # Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift # Allow the system clock to be stepped in the first three updates # if its offset is larger than 1 second. makestep 1.0 3 # Enable kernel synchronization of the real-time clock (RTC). rtcsync root@fireball / # After that, just do a /etc/init.d/chronyd start and it will get the clock synced and keep it that way. I found the manual here. It was the first hit on google for me. https://chrony.tuxfamily.org/documentation.html I'm no chrony expert by any measure. For me, the hardest part was finding the fastest servers. I think I use that mirrorselect tool, I think. Its been a while. Hope that helps. Dale :-) :-)
Re: [gentoo-user] What ntp/sntp client do people use?
On Tue, Dec 10, 2019 at 03:19:16AM -0600, Dale wrote > I think I used ntpdate years ago. Can't recall why I switched but > something wasn't working right. People here recommended chrony and once > set up, its worked ever since. OP, if you haven't tried it yet, may be > worth giving it a test run. Now what? I'm willing to RTFM, but I can't FTFM (Find the F** Manual). === strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version /usr/bin/chronyc /usr/sbin/chronyd >>> Installing (1 of 1) net-misc/chrony-3.5-r2::gentoo >>> Recording net-misc/chrony in "world" favorites file... >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. [i660][root][~] man chrony No manual entry for chrony [i660][root][~] info chrony info: No menu item 'chrony' in node '(dir)Top' [i660][root][~] emerge --unmerge chrony === Has RFC868 been deprecated everywhere, or is it just ca.pool.ntp.org that won't listen to it? -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] What ntp/sntp client do people use?
Hello, On Tue, 10 Dec 2019, Walter Dnes wrote: >there any public RFC868 servers? Or are there any RFC2030 client >programs other than openrdate? What do people here use? I use net-misc/ntp. As a daemon and if needed ntpdate/sntp to set the time. -dnh -- Q: Why is it that New Jersey got all the toxic waste dumps and California got all the lawyers? A: New Jersey had first choice.-- unknown
Re: [gentoo-user] What ntp/sntp client do people use?
Peter Humphrey wrote: > On Tuesday, 10 December 2019 07:56:17 GMT Mick wrote: > >> I no longer use rdate and SNTP. I use chronyd which has no problem >> synchronising with various NTP servers and is suitable for systems which are >> online intermittently, like laptops. > What he said. > +1 I think I used ntpdate years ago. Can't recall why I switched but something wasn't working right. People here recommended chrony and once set up, its worked ever since. OP, if you haven't tried it yet, may be worth giving it a test run. Dale :-) :-)
Re: [gentoo-user] What ntp/sntp client do people use?
On Tuesday, 10 December 2019 07:56:17 GMT Mick wrote: > I no longer use rdate and SNTP. I use chronyd which has no problem > synchronising with various NTP servers and is suitable for systems which are > online intermittently, like laptops. What he said. -- Regards, Peter.
Re: [gentoo-user] What ntp/sntp client do people use?
On Tuesday, 10 December 2019 06:16:50 GMT Walter Dnes wrote: > On Sun, Dec 08, 2019 at 01:38:59AM -0500, Walter Dnes wrote > > > question... is "rdate" a drop-in substitute for "openrdate"? > > Answering my own question... big fat NO. > > [i660][root][~] openrdate -s -n ca.pool.ntp.org (works fine) > > [i660][root][~] openrdate -s ca.pool.ntp.org (hangs and sits there) > > [i660][root][~] rdate -s ca.pool.ntp.org > rdate: couldn't connect to host ca.pool.ntp.org: Connection refused > > Apparently "openrdate -n" selects RFC2030 protocol. Otherwise, it > defaults to RFC868. That appears to be rdate's only protocol. So are > there any public RFC868 servers? Or are there any RFC2030 client > programs other than openrdate? What do people here use? I no longer use rdate and SNTP. I use chronyd which has no problem synchronising with various NTP servers and is suitable for systems which are online intermittently, like laptops. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] What ntp/sntp client do people use?
On Sun, Dec 08, 2019 at 01:38:59AM -0500, Walter Dnes wrote > question... is "rdate" a drop-in substitute for "openrdate"? Answering my own question... big fat NO. [i660][root][~] openrdate -s -n ca.pool.ntp.org (works fine) [i660][root][~] openrdate -s ca.pool.ntp.org (hangs and sits there) [i660][root][~] rdate -s ca.pool.ntp.org rdate: couldn't connect to host ca.pool.ntp.org: Connection refused Apparently "openrdate -n" selects RFC2030 protocol. Otherwise, it defaults to RFC868. That appears to be rdate's only protocol. So are there any public RFC868 servers? Or are there any RFC2030 client programs other than openrdate? What do people here use? -- Walter Dnes I don't run "desktop environments"; I run useful applications