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