Linux Guides
Adding or Modifying NTP Sources

Adding or Modifiying list of NTP Servers

Summary

Linux uses NTP servers to keep their date and time "current" to the outer world. Some issues can arise when it isn't working.

Preamble

You usually don't have issues with NTP servers, and you should check your DNS and Network first if you have NTP issues.

Requirements

  • Linux Operating System (Tested on EndeavourOS)
  • Text Editor

Step by Step Guide

Start Editing the NTP Servers File

sudo vim /etc/ntp.conf

Use an editor1 on the NTP Servers file.

This file should be the same for most, if not all Linux Distributions.

Add or Modify Pools/Servers

There is usually a server/pool or multple servers/pools that already exist2. An example from Here (opens in a new tab) is:

server 2.ca.pool.ntp.org

You can usually search the internet for your region's NTP Pool if you wanted to add them. Comment out or remove lines if you don't want to use certain pools/servers.

Save your Edits

Press Esc then : then type wq then press Enter3

This will save the file and exit you from vim.

Conclusion

You have now learned to modify your NTP Sources for a Linux OS. Happy Time Shenanigans!4

Notes

  1. The editor can be whatever you want, depending on what you like to use or what is installed. Nano can be popular.
  2. The file itself may offer some helpful links and information.
  3. This will depend on your editer. Ctrl-X Enter Enter for Nano users.
  4. timedatectl can be used for some time stuff. date too.

Credits

This guide was written by u/DesPartedNecturm (opens in a new tab).