debian set ntp client

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

debian set ntp client

Post 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.
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

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
NTP=new.server.world
Check again: systemctl restart systemd-timesyncd
should be your server now.
Post Reply