You can easily synchronize time of your Linux servers or desktop machines by using ntpdate
command.
Open terminal and type:
server pool.ntp.org
You can change the address of a time server (pool.ntp.org
) to a different one that suits your needs.
If you don't have ntpdate
installed, obtain it using the following command:
sudo apt-get install ntp
This solution is suitable for both Ubuntu and Debian.