Syncronize time on ubuntu
This how to is based on the ubuntu documentation. First we have to add the basic packages:
sudo apt-get install ntp ntpdate
Than we have to do some basic configuration:
echo "ntpdate ntp.ubuntu.com pool.ntp.org " >> /etc/cron.daily/ntpdate sudo chmod 755 /etc/cron.daily/ntpdate echo "server ntp.ubuntu.com" >> /etc/ntp.conf echo "server pool.ntp.org" >> /etc/ntp.conf
Have a look at this page for more ntp Servers.
I had to change my timezone as well, this can be done by changing a symbolic link:
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
Just replace Europe/Berlin by your timezone. You can find more information about changing timezones here.