From the course: Linux System Engineer: Authentication with LDAP and Kerberos
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Configure chrony client
From the course: Linux System Engineer: Authentication with LDAP and Kerberos
Configure chrony client
- [Instructor] Now that we have our rhhost1vm configured to be an NTP time server, let's go to our second vm and configure it to use our time server. Log in to rhhost2 and open a terminal. Now let's edit the /etc/chrony.conf file using vim. Type in sudo vim /etc/chrony.conf and hit Enter. Enter your password if prompted. Go into Insert mode by pressing the Insert key or the I key. Comment out any existing pool and server lines and add one server line to point to our time server on rhhost1. In my case, it will be server 192.168.1.69 iburst. Use the IP address of your rhhost1vm in your file. Now, save this by typing in esc:x! and hitting Enter. Now restart the chronyd service. Type in sudo systemctl restart chronyd and hit Enter. Let's ensure our rhhost2vm is configured to use NTP by using the timedatectl command. Type in sudo timedatectl set-ntp true and hit Enter. To test that our system is synchronizing with our time server, type in sudo chronyc sources -v. Chronyc is the client…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.