<p dir="ltr">Ntpdate nemoze komunikovat lebo port 123 ma obsadeny ntpd teda ntpdaemon<br>
Postup<br>
Najskor ntpdate na skokovy update<br>
Potom start ntpd ako daemona ktory dotahuje cas fazovo.<br>
</p>
<div class="gmail_quote">Dňa 16. 6. 2016 18:07 používateľ "Milan Kratochvíl" <<a href="mailto:krata.milan@seznam.cz">krata.milan@seznam.cz</a>> napísal:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Zdravim,<br>
jestli se ntpdate chytí tak je něco špatně. Mě ntp -p nuly nevypíše ale ntpdate hlásí, že nemůže komunikovat, neboli.<br>
16 Jun 17:58:59 ntpdate[3908]: the NTP socket is in use, exiting<br>
Což bych odhadl, že Vám neběží daemon ntpd.<br>
Milan<br>
<br>
Dne 15.6.2016 v 14:24 Zapletal Martin napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
takže ntpdate se chytí a nastaví správný čas. Co je tedy špatně s ntpd?<br>
<br>
MZ<br>
----- Original Message ----- From: "Tomáš Koželuh" <<a href="mailto:mr.death@ipq.cz" target="_blank">mr.death@ipq.cz</a>><br>
To: "'HW-news'" <<a href="mailto:hw-list@list.hw.cz" target="_blank">hw-list@list.hw.cz</a>><br>
Sent: Wednesday, June 15, 2016 2:15 PM<br>
Subject: RE: Raspberry-NTP se nechce chytit<br>
<br>
<br>
apt-get install ntpdate<br>
?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----Original Message-----<br>
From: Hw-list [mailto:<a href="mailto:hw-list-bounces@list.hw.cz" target="_blank">hw-list-bounces@list.hw.cz</a>] On Behalf Of Zapletal<br>
Martin<br>
Sent: Wednesday, June 15, 2016 2:13 PM<br>
To: HW-news<br>
Subject: Re: Raspberry-NTP se nechce chytit<br>
<br>
takový příkaz v mém raspbianu vůbec není. Update a upgrade jsem dělal<br>
před půl hodinou.<br>
<br>
MZ<br>
<br>
----- Original Message -----<br>
From: Ladislav Vaiz <mailto:<a href="mailto:spam@nagano.cz" target="_blank">spam@nagano.cz</a>><br>
To: HW-news <mailto:<a href="mailto:hw-list@list.hw.cz" target="_blank">hw-list@list.hw.cz</a>><br>
Sent: Wednesday, June 15, 2016 2:09 PM<br>
Subject: Re: Raspberry-NTP se nechce chytit<br>
<br>
ntpd běží nějakou dobu? Reach je bitová maska, jak se při posledních<br>
pokusech podařilo dosáhnout server. Nula znamená, že odpověď nikdy<br>
nedorazila. Mělo by tam po čase být 377 (je to osmičkově).<br>
Zkuste ntpdate -u 192.168.1.1<br>
L.<br>
<br>
<br>
<br>
On 15.6.2016 14:02, Zapletal Martin wrote:<br>
<br>
<br>
Zdravím přítomné.<br>
Už od rána ležím nad problémem synchronizace času NTP<br>
serveru. Už jsem prolezl celý internet ale jako nonlinux guru z toho moc<br>
moudrý nejsem. Výpis příkazu sudo ntpq -p mi vypíše<br>
<br>
remote refid st t when poll reach<br>
</blockquote>
delay offset<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
jitter<br>
<br>
====================================================<br>
==========================<br>
192.168.1.1 .INIT. 16 u - 64 0<br>
</blockquote>
0.000 0.000 0.000<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://tik.cesnet.cz" rel="noreferrer" target="_blank">tik.cesnet.cz</a> .INIT. 16 u - 64 0<br>
</blockquote>
0.000 0.000 0.000<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://tak.cesnet.cz" rel="noreferrer" target="_blank">tak.cesnet.cz</a> .INIT. 16 u - 64 0<br>
</blockquote>
0.000 0.000 0.000<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
už zkouším všechno možné, i spojení na 192.168.1.1 což je<br>
router který NTP má. Poradíte mi prosím co zkontrolovat?<br>
Takhle vypadá ntp.conf<br>
<br>
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for<br>
help<br>
<br>
driftfile /var/lib/ntp/ntp.drift<br>
<br>
<br>
<br>
# Enable this if you want statistics to be logged.<br>
#statsdir /var/log/ntpstats/<br>
<br>
statistics loopstats peerstats clockstats<br>
filegen loopstats file loopstats type day enable<br>
filegen peerstats file peerstats type day enable<br>
filegen clockstats file clockstats type day enable<br>
<br>
<br>
# You do need to talk to an NTP server or two (or three).<br>
#server ntp.your-provider.example<br>
<br>
# <a href="http://pool.ntp.org" rel="noreferrer" target="_blank">pool.ntp.org</a> maps to about 1000 low-stratum NTP servers.<br>
Your server will<br>
# pick a different set every time it starts up. Please<br>
</blockquote>
consider<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
joining the<br>
# pool: <<a href="http://www.pool.ntp.org/join.html" rel="noreferrer" target="_blank">http://www.pool.ntp.org/join.html</a>><br>
<br>
#puvodni nastaveni<br>
#server <a href="http://0.debian.pool.ntp.org" rel="noreferrer" target="_blank">0.debian.pool.ntp.org</a> iburst<br>
#server <a href="http://1.debian.pool.ntp.org" rel="noreferrer" target="_blank">1.debian.pool.ntp.org</a> iburst<br>
#server <a href="http://2.debian.pool.ntp.org" rel="noreferrer" target="_blank">2.debian.pool.ntp.org</a> iburst<br>
#server <a href="http://3.debian.pool.ntp.org" rel="noreferrer" target="_blank">3.debian.pool.ntp.org</a> iburst<br>
<br>
#nove nastaveni cz casovych serveru<br>
server 192.168.1.1 prefer<br>
server <a href="http://tik.cesnet.cz" rel="noreferrer" target="_blank">tik.cesnet.cz</a><br>
server <a href="http://tak.cesnet.cz" rel="noreferrer" target="_blank">tak.cesnet.cz</a><br>
<br>
# Access control configuration; see /usr/share/doc/ntp-<br>
doc/html/accopt.html for<br>
# details. The web page<br>
<<a href="http://support.ntp.org/bin/view/Support/AccessRestrictions" rel="noreferrer" target="_blank">http://support.ntp.org/bin/view/Support/AccessRestrictions</a>><br>
# might also be helpful.<br>
#<br>
# Note that "restrict" applies to both servers and clients,<br>
</blockquote>
so a<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
configuration<br>
# that might be intended to block requests from certain<br>
clients could also end<br>
# up blocking replies from your own upstream servers.<br>
<br>
# By default, exchange time with everybody, but don't allow<br>
configuration.<br>
restrict -4 default kod notrap nomodify nopeer noquery<br>
restrict -6 default kod notrap nomodify nopeer noquery<br>
<br>
# Local users may interrogate the ntp server more closely.<br>
restrict 127.0.0.1<br>
restrict ::1<br>
<br>
# Clients from this (example!) subnet have unlimited access,<br>
but only if<br>
# cryptographically authenticated.<br>
#restrict 192.168.123.0 mask 255.255.255.0 notrust<br>
<br>
<br>
# If you want to provide time to your local subnet, change<br>
</blockquote>
the<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
next line.<br>
# (Again, the address is an example only.)<br>
#broadcast 192.168.123.255<br>
<br>
# If you want to listen to time broadcasts on your local<br>
subnet, de-comment the<br>
# next lines. Please do this only if you trust everybody on<br>
</blockquote>
the<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
network!<br>
#disable auth<br>
#broadcastclient<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
<br>
<br>
<br>
________________________________<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
<br>
</blockquote>
<br>
<br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</blockquote></div>