0

I am using my college's LAN and need my timedate to synchronize to the college's ntp server.

I tried editing the /etc/systemd/timesyncd.conf appropriately (by change the value after NTP= but it keeps trying to synchronize from ntp.ubuntu.com (which won't work on lan)

Please advise

UPDATE: I have installed chrony and it seems to be working fine with this.

Shashwat
  • 149
  • 7
  • Please include the output of the following commands in your post: `systemctl status systemd-timesyncd.service` and `cat /etc/systemd/timesyncd.conf`. – Artur Meinild Jan 24 '22 at 12:06
  • Also did you restart the service after changing configuration? – Artur Meinild Jan 24 '22 at 12:20
  • 1
    Possible duplicate: [Setting multiple NTP servers in /etc/systemd/timesyncd.conf](https://askubuntu.com/questions/1048907/setting-multiple-ntp-servers-in-etc-systemd-timesyncd-conf) – Artur Meinild Jan 24 '22 at 12:20

2 Answers2

0

apt install ntp

Open /etc/ntp.conf add

server yourlocalntpserver iburst

systemctl restart ntp

date -R

Curious
  • 19
  • 4
  • Hi. This doesn't really answer the question, since the OP asked about configuring `timesyncd`. Installing another NTP app does not answer this. – Artur Meinild Jan 24 '22 at 13:19
  • 1
    Ack to @ArturMeinild and even if the request was for alternatives, I'd recommend the supported "chrony" instead of the demoted old "ntp" – Christian Ehrhardt Jan 25 '22 at 06:44
0

You can edit the NTP server setting in /etc/systemd/timesyncd.conf.

NTP="your ntp server host name or address"

You can also set a fall back server

FallbackNTP="your fall back server host name or address"