Ubuntu 24.04 – Install chrony

Ubuntu 24.04 – Install chrony

Disclaimer – This article and its contents are for educational purposes only. All article instructions are not to be used on production systems.

Install chrony package

Note: the installation expects you to be root user. You can escalate to root privileges using sudo or su. Ref example below;

sudo su -

Step 1) Install the chrony package using apt package manager.

apt install chrony

Step 2) Edit the /etc/chrony/chrony.conf file using vi editor (or alternate editor).

vi /etc/chrony/chrony.conf

Step 3) Add your required NTP sources to the /etc/chrony/chrony.conf file as needed.

Step 4) Enable the chrony service using systemctl

systemctl enable chrony

Step 5) Restart the chrony service using systemctl

systemctl restart chrony

Step 6) Verify the chrony service is enable and running

systemctl status chrony

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply