How to get a working clock on Debian 9? Clock is wrong by a couple minutes
Clash Royale CLAN TAG#URR8PPP
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 work.
(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 work.
(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 work.
(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 work.
(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
edited 8 hours ago
Rui F Ribeiro
38.2k1475123
38.2k1475123
asked Nov 18 at 12:00
mYnDstrEAm
71941240
71941240
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Install openntpd:
sudo apt-get install openntpd
ntp
did not work and I didn't try Redhat'schrony
.sudo kate /etc/openntpd/ntpd.conf
and make sure there are 4 uncommented lines (replaceXY
with 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.orgIf 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 status
should 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.conf
it saysnet.ipv4.tcp_timestamps=0
. If it's not set change it and reboot.)(If you had ntp installed before run
sudo apt-get purge ntp
. If you're using AppArmor follow the guide in this answer at askubuntu.)
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
accepted
Install openntpd:
sudo apt-get install openntpd
ntp
did not work and I didn't try Redhat'schrony
.sudo kate /etc/openntpd/ntpd.conf
and make sure there are 4 uncommented lines (replaceXY
with 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.orgIf 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 status
should 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.conf
it saysnet.ipv4.tcp_timestamps=0
. If it's not set change it and reboot.)(If you had ntp installed before run
sudo apt-get purge ntp
. If you're using AppArmor follow the guide in this answer at askubuntu.)
add a comment |
up vote
0
down vote
accepted
Install openntpd:
sudo apt-get install openntpd
ntp
did not work and I didn't try Redhat'schrony
.sudo kate /etc/openntpd/ntpd.conf
and make sure there are 4 uncommented lines (replaceXY
with 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.orgIf 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 status
should 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.conf
it saysnet.ipv4.tcp_timestamps=0
. If it's not set change it and reboot.)(If you had ntp installed before run
sudo apt-get purge ntp
. If you're using AppArmor follow the guide in this answer at askubuntu.)
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Install openntpd:
sudo apt-get install openntpd
ntp
did not work and I didn't try Redhat'schrony
.sudo kate /etc/openntpd/ntpd.conf
and make sure there are 4 uncommented lines (replaceXY
with 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.orgIf 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 status
should 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.conf
it saysnet.ipv4.tcp_timestamps=0
. If it's not set change it and reboot.)(If you had ntp installed before run
sudo apt-get purge ntp
. If you're using AppArmor follow the guide in this answer at askubuntu.)
Install openntpd:
sudo apt-get install openntpd
ntp
did not work and I didn't try Redhat'schrony
.sudo kate /etc/openntpd/ntpd.conf
and make sure there are 4 uncommented lines (replaceXY
with 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.orgIf 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 status
should 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.conf
it saysnet.ipv4.tcp_timestamps=0
. If it's not set change it and reboot.)(If you had ntp installed before run
sudo apt-get purge ntp
. If you're using AppArmor follow the guide in this answer at askubuntu.)
edited 15 hours ago
answered Nov 18 at 12:00
mYnDstrEAm
71941240
71941240
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