Page 1 of 1

debian set ntp client

Posted: Thu Feb 09, 2023 7:44 pm
by mister_v
Hi,

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.

Re: debian set ntp client

Posted: Thu Feb 09, 2023 8:49 pm
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
NTP=new.server.world
Check again: systemctl restart systemd-timesyncd
should be your server now.