- Open the Chrony configuration file:
sudo nano /etc/chrony/chrony.conf
- Find the existing NTP servers and comment them out by adding a
#
at the beginning of the line, or remove them if you prefer:# server 0.pool.ntp.org iburst # server 1.pool.ntp.org iburst
- Add your local NTP server:
Replace
local_ntp_server_ip
with the IP address or hostname of your local NTP server: - Save and exit the editor (for
nano
, pressCTRL+X
, thenY
, andEnter
). - Restart the Chrony service to apply changes:
- Verify the synchronization:
After a few minutes, you can check the NTP synchronization status: