Change date setting in Ubuntu server using NTP
This is a shell activity, I’m assuming you did not put GUI in your Ubuntu server and that it is tucked away–headless (no keyboard no monitor)–somewhere in your home office, and you know how to login to your Ubuntu server via SSH.
Synchronizing the Ubuntu box to an NTP server
Network Time protocol can be used to set the clock/time of your Ubuntu server with another computer, you would normally want to synchronize with a known NTP server–and there are many public Time servers. For this exercise I will use the pool.ntp.org, because it is comprised of many servers working in a cluster, so it should have an excellent uptime.
$ sudo apt-get install ntpdate
$ sudo ntpdate pool.ntp.org
The first command is to install the ntpdate package in your Ubuntu server, the second is the actual command which will synchronize the Ubuntu server with pool.ntp.org
Leave a comment