First install ntp
and ntpdate
:
# apt-get install --yes ntp ntpdate
Then stop ntp
, force the update, and start it again:
# service ntp stop && ntpdate <timeserver ip> && service ntp start
Set the hardware clock to the system time:
# hwclock --systohc