How to get a working clock on Debian 9? Clock is wrong by a couple minutes
up vote
0
down vote
favorite
How to get a working clock in Debian 9 with KDE? My clock is almost 10 minutes slow on multiple of my machines running Debian 9 with KDE and (re)setting the timezone via tzselect didn't help.
(I already solved this but maybe other people would like to have a working clock as well. Also I'm interested in other ways to solve this. I'm surprised this isn't taken care of by the default installation of Debian so that it works right away if you selected the right timezone during installation.)
debian security ntp clock
add a comment |
up vote
0
down vote
favorite
How to get a working clock in Debian 9 with KDE? My clock is almost 10 minutes slow on multiple of my machines running Debian 9 with KDE and (re)setting the timezone via tzselect didn't help.
(I already solved this but maybe other people would like to have a working clock as well. Also I'm interested in other ways to solve this. I'm surprised this isn't taken care of by the default installation of Debian so that it works right away if you selected the right timezone during installation.)
debian security ntp clock
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How to get a working clock in Debian 9 with KDE? My clock is almost 10 minutes slow on multiple of my machines running Debian 9 with KDE and (re)setting the timezone via tzselect didn't help.
(I already solved this but maybe other people would like to have a working clock as well. Also I'm interested in other ways to solve this. I'm surprised this isn't taken care of by the default installation of Debian so that it works right away if you selected the right timezone during installation.)
debian security ntp clock
How to get a working clock in Debian 9 with KDE? My clock is almost 10 minutes slow on multiple of my machines running Debian 9 with KDE and (re)setting the timezone via tzselect didn't help.
(I already solved this but maybe other people would like to have a working clock as well. Also I'm interested in other ways to solve this. I'm surprised this isn't taken care of by the default installation of Debian so that it works right away if you selected the right timezone during installation.)
debian security ntp clock
debian security ntp clock
asked 2 days ago
mYnDstrEAm
70941240
70941240
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Install openntpd:
sudo apt-get install openntpdntpdid not work and I didn't try Redhat'schrony.
sudo kate /etc/openntpd/ntpd.confand make sure there are 4 uncommented lines (replaceXYwith your country code):
# Choose servers announced from Debian NTP Pool
servers 0.XY.pool.ntp.org
servers 1.XY.pool.ntp.org
servers 2.XY.pool.ntp.org
servers 3.XY.pool.ntp.org
If you're using iptables add these firewall rules:
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT`
sudo ntpctl -s statusshould return.../20 peers valid, clock synced...(To correct the minutes:
ntpd -s. You might have to restart the service:sudo /etc/init.d/openntpd restart)(Make sure in
sudo kate /etc/sysctl.d/99-sysctl.confit saysnet.ipv4.tcp_timestamps=0. If it's not set change it and reboot.)
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Install openntpd:
sudo apt-get install openntpdntpdid not work and I didn't try Redhat'schrony.
sudo kate /etc/openntpd/ntpd.confand make sure there are 4 uncommented lines (replaceXYwith your country code):
# Choose servers announced from Debian NTP Pool
servers 0.XY.pool.ntp.org
servers 1.XY.pool.ntp.org
servers 2.XY.pool.ntp.org
servers 3.XY.pool.ntp.org
If you're using iptables add these firewall rules:
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT`
sudo ntpctl -s statusshould return.../20 peers valid, clock synced...(To correct the minutes:
ntpd -s. You might have to restart the service:sudo /etc/init.d/openntpd restart)(Make sure in
sudo kate /etc/sysctl.d/99-sysctl.confit saysnet.ipv4.tcp_timestamps=0. If it's not set change it and reboot.)
add a comment |
up vote
0
down vote
Install openntpd:
sudo apt-get install openntpdntpdid not work and I didn't try Redhat'schrony.
sudo kate /etc/openntpd/ntpd.confand make sure there are 4 uncommented lines (replaceXYwith your country code):
# Choose servers announced from Debian NTP Pool
servers 0.XY.pool.ntp.org
servers 1.XY.pool.ntp.org
servers 2.XY.pool.ntp.org
servers 3.XY.pool.ntp.org
If you're using iptables add these firewall rules:
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT`
sudo ntpctl -s statusshould return.../20 peers valid, clock synced...(To correct the minutes:
ntpd -s. You might have to restart the service:sudo /etc/init.d/openntpd restart)(Make sure in
sudo kate /etc/sysctl.d/99-sysctl.confit saysnet.ipv4.tcp_timestamps=0. If it's not set change it and reboot.)
add a comment |
up vote
0
down vote
up vote
0
down vote
Install openntpd:
sudo apt-get install openntpdntpdid not work and I didn't try Redhat'schrony.
sudo kate /etc/openntpd/ntpd.confand make sure there are 4 uncommented lines (replaceXYwith your country code):
# Choose servers announced from Debian NTP Pool
servers 0.XY.pool.ntp.org
servers 1.XY.pool.ntp.org
servers 2.XY.pool.ntp.org
servers 3.XY.pool.ntp.org
If you're using iptables add these firewall rules:
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT`
sudo ntpctl -s statusshould return.../20 peers valid, clock synced...(To correct the minutes:
ntpd -s. You might have to restart the service:sudo /etc/init.d/openntpd restart)(Make sure in
sudo kate /etc/sysctl.d/99-sysctl.confit saysnet.ipv4.tcp_timestamps=0. If it's not set change it and reboot.)
Install openntpd:
sudo apt-get install openntpdntpdid not work and I didn't try Redhat'schrony.
sudo kate /etc/openntpd/ntpd.confand make sure there are 4 uncommented lines (replaceXYwith your country code):
# Choose servers announced from Debian NTP Pool
servers 0.XY.pool.ntp.org
servers 1.XY.pool.ntp.org
servers 2.XY.pool.ntp.org
servers 3.XY.pool.ntp.org
If you're using iptables add these firewall rules:
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT`
sudo ntpctl -s statusshould return.../20 peers valid, clock synced...(To correct the minutes:
ntpd -s. You might have to restart the service:sudo /etc/init.d/openntpd restart)(Make sure in
sudo kate /etc/sysctl.d/99-sysctl.confit saysnet.ipv4.tcp_timestamps=0. If it's not set change it and reboot.)
answered 2 days ago
mYnDstrEAm
70941240
70941240
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482521%2fhow-to-get-a-working-clock-on-debian-9-clock-is-wrong-by-a-couple-minutes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown