Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTP for Ubuntu 16.04 and above #86

Open
kevinwheeler opened this issue Jul 21, 2022 · 4 comments
Open

NTP for Ubuntu 16.04 and above #86

kevinwheeler opened this issue Jul 21, 2022 · 4 comments
Assignees

Comments

@kevinwheeler
Copy link

Two separate questions.

  1. Is the NTP setup necessary for Ubuntu versions above 16.04? Or is this no longer needed due to the fact that these versions of Ubuntu come with timesyncd? (sources: Corey Goldberg's comment on this answer https://askubuntu.com/a/641160 and these Digital Ocean articles: https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-20-04 - https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-18-04 - https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04 )

  2. If NTP setup is necessary, do we need to disable timesyncd as per the following quote: "Before installing ntpd, you need to turn off timesyncd in order to prevent the two services from conflicting with one another." from this article https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04 ?

@imthenachoman
Copy link
Owner

I don't think it is necessary anymore. I lost my Linux server a while ago (long story) and I haven't replaced it yet so I've been out of the loop with what is necessary. I'll try to find time to research and update this guide. Or if you want to submit a PR I would be happy to merge it.

@imthenachoman imthenachoman self-assigned this Aug 9, 2022
@kiv57
Copy link

kiv57 commented Nov 3, 2023

+1 : it seems that for an NTP client purpose only, the systemd-timesyncd does a minimalist but sufficient job, except for use cases requiring greater precision maybe ?
a stackexchange question comparing NTP and timesyncd

@imthenachoman
Copy link
Owner

Yeah. I'm thinking maybe this is not needed anymore but I don't have a server anymore that I can confirm on. I run Debian + KDE on my daily driver and it came with NTP but I'm not sure if that's cause I'm using it as a personal computer, and not a server, so it installed it.

@AngeloThys
Copy link

Is NTP Necessary?

This is for the sysadmin (yourself) to decide based on the system's needs and capabilities.

Timesyncd uses SNTP instead of NTP, which means the following:

  • less memory and processing power usage
  • less precise time (does not use advanced drift correction algorithms)
  • less security (only uses TLS and NTS)
  • cannot work as a NTP server, only as a client

In my case, any time a server has enough resources I will prefer NTP daemons,
purely for the advanced security mechanisms.

If NTP, Should Timesyncd Be Disabled?

when installing ntpd with apt,
it prompts you that it will uninstall the systemd-timesyncd package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants