Let's start keeping time on our server. Otherwise logging and Kerberos won't work as expected and you might forget your coffee break!
If you have a static IP and a somewhat reliable internet connection, you might consider joining the pool.ntp.org initiative. See http://www.pool.ntp.org/ for more information.
Check your timezone settings by issuing:
tzconfig
Install the software:
apt-get install ntp-server ntp-doc
Adjust /etc/ntp.conf for the ntp-servers you want to sync to. Remember to check the policy for their usage! If you want more info about the Debian NTP packages, check the docs at /usr/share/doc/ntp and /usr/share/doc/ntp-doc
/etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable # # pool.ntp.org maps to more than 100 low-stratum NTP servers. # Your server will pick a different set every time it starts up. # *** Please consider joining the pool! *** # *** <http://www.pool.ntp.org/#join> *** server pool.ntp.org server 127.127.1.0 fudge 127.127.1.0 stratum 10 restrict default kod notrap nomodify nopeer noquery restrict 127.0.0.1 nomodify
Restart the daemon:
/etc/init.d/ntp restart