Score:0

Unable to set up timedatectl to sync from a specific NTP server

ph flag

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.

Artur Meinild avatar
vn flag
Please include the output of the following commands in your post: `systemctl status systemd-timesyncd.service` and `cat /etc/systemd/timesyncd.conf`.
Artur Meinild avatar
vn flag
Also did you restart the service after changing configuration?
Artur Meinild avatar
vn flag
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)
Score:0
cn flag

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"
Score:-1
in flag

apt install ntp

Open /etc/ntp.conf add

server yourlocalntpserver iburst

systemctl restart ntp

date -R

Artur Meinild avatar
vn flag
Hi. This doesn't really answer the question, since the OP asked about configuring `timesyncd`. Installing another NTP app does not answer this.
Christian Ehrhardt avatar
sl flag
Ack to @ArturMeinild and even if the request was for alternatives, I'd recommend the supported "chrony" instead of the demoted old "ntp"
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.