SIMULATION -
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com
SIMULATION -
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com
To configure NTP (Network Time Protocol) on a server with the NTP server set to classroom.example.com, follow these steps. First, ensure the NTP client tool, chrony, is installed. This can be done using the command 'yum -y install chrony'. After installation, you need to configure the chrony configuration file located at /etc/chrony.conf. Edit this file and add the line 'server classroom.example.com iburst'. Next, enable and start the chrony service to apply the changes and ensure it runs on system boot using 'systemctl enable --now chronyd'. To ensure the server is synchronized with the NTP server, verify the service status and synchronization using 'timedatectl status'. This sequence of commands ensures the server's time is synchronized with the specified NTP server.
yum -y install chrony systemctl enable --now chronyd vim etc/chrony.conf (change on server classroom.example.com iburs) systemctl reload chronyd timedatectl set-ntp true
sudo su yum install chrony echo 'server [url] iburst' >> /etc/chrony.conf systemctl enable --now chronyd systemctl start chronyd timedatectl set-ntp true systemctl restart chronyd chronyc sources -v timedatectl
when i do chronyc sources after setting /etc/chrony.conf to : classroom.example.com iburst I do not get any results. Does anyone else ?
dnf install chrony* -y vi /etc/chrony.conf server <servername or IP> iburst systemctl restart chronyd.service chronyc sources #to verify
yum install chrony -y vim etc/chrony.conf (change on server classroom.example.com iburs) systemctl enable --now chronyd systemctl start chronyd timedatectl set-ntp true chronyc sources -c timedatectl
yum -y install chrony systemctl enable cronyd.service systemctl start chronyd.service timedatectl -H classroom.example.com timedatectl set-ntp on
why timedatectl -H classroom.example.com?
I do not understand it too
timedatactl -H works but will not survive a reboot
timedatectl -H [user@]hostname means it will connect to the remote host with ssh and execute the operation remotely. So what you did is wrong at all.