debian set ntp client

Post Reply
Posts: 137
Joined: Sat Jun 20, 2009 5:42 pm

debian set ntp client

Post by mister_v »


how do I change the ntp server on which my pc is synced ?
I have Debian / Ubuntu.
I searched for /etc/ntp.conf (was on my old linux)
couldn't find it.
Site Admin
Posts: 127
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium

Re: debian set ntp client

Post by Chris »

if you have the latest version of Debian, Buster.
it probably uses systemd.
The config files are in /etc/systemd/

You can check the current NTP server with:

Code: Select all

systemctl status systemd-timesyncd
edit the file: /etc/systemd/timesyncd.conf
add the server:

Code: Select all

# add to the end : set NTP server for your timezone
Check again: systemctl restart systemd-timesyncd
should be your server now.
Post Reply