Easy Steps To Set up Time Synchronization on AlmaLinux 9

[rank_math_breadcrumb]

Share your love

In this guide, we want to teach you How To Set up Time Synchronization on AlmaLinux 9. Computer time synchronization is the process of ensuring that the system clocks of computers are coordinated. The real-time clocks of computers are as susceptible to drift as any other timepiece.

However, protocols have been devised primarily to maintain the coordination of time of networked computers. Network Time Protocol (NTP) and Precision Time Protocol (PTP) are dedicated to coordinating system time.

The protocols distribute time stamps between one or more master clocks and time clients. You can now follow the guide steps below on the Orcacore website to Sync Time on AlmaLinux 9.

How To Set Up Time Synchronization on AlmaLinux 9

To set up time synchronization, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide the Initial Server Setup with AlmaLinux 9.

Now follow the steps below to Sync Time on AlmaLinux 9.

1. Check the Time Zone And Clock on AlmaLinux 9

The most basic command to find out the time on your server is “date”. Any user can run the following command to check the date and time on AlmaLinux 9:

sudo date
Output
Tue Jan  3 09:29:40 AM EDT 2023

Note: Most often your server will default to the UTC time zone. UTC is Coordinated Universal Time, the time at zero degrees longitude. Also, using Universal Time reduces confusion when your infrastructure spans multiple time zones.

2. Change the Time Zone on AlmaLinux 9

If you have requirements and need to change the time zone on AlmaLinux 9, you can use the “timedatectl” command. First, list the available time zones on AlmaLinux 9 with the following command:

sudo timedatectl list-timezones

Your output will show a list of available time zones on AlmaLinux 9.

When you find the correct time zone, use the following command to set the time zone:

sudo timedatectl set-timezone America/New_York

Remember to replace the time zone you have seen in the list.

At this point, you know how to check the time zone and clock on AlmaLinux 9, let’s install and start NTP.

3. Install Chrony and NTP on AlmaLinux 9

To install NTP on your server, you need to have Chrony installed on your server. Chrony is an implementation of the Network Time Protocol and is useful in a number of ways.

sudo dnf install chrony -y

At this point, start and enable your Chrony service with the commands below:

# sudo systemctl start chronyd 
# sudo systemctl enable chronyd

At this point, verify that your Chrony service is active and running on your server, run the command below:

sudo systemctl status chronyd
Check Chrony Service on AlmaLinux 9

If everything went well then Your date and time should be synchronized from the NTP Server on AlmaLinux 9. You can verify your timezone with the following command:

timedatectl
Set up Time Synchronization on AlmaLinux 9

NTP synchronized: yes” means that the time on AlmaLinux 9 has been successfully synced, and the “NTP enabled: yes” means that the timesyncd is enabled and running.

Also, you can visit this guide on Installing NTP Server and Client on AlmaLinux 9, to set up the NTP server and client.

Conclusion

At this point, you have learned to view the system time, change time zones, and sync your time. Time synchronization in AlmaLinux 9 ensures accurate system time across servers, preventing issues with logs, authentication, and scheduled tasks. It uses Chrony (NTP) to sync time with reliable time servers for consistency and reliability.

Hope you enjoy it. Please subscribe to us on Facebook, YouTube, and Twitter.

Also, you may like these guides:

Install OpenVPN on AlmaLinux 9

How To Install Ntopng on AlmaLinux 9

How To Install Yarn on AlmaLinux 9

Share your love

Stay informed and not overwhelmed, subscribe now!