User Tools

Site Tools


ensuring_accurate_time_debian

Ensuring Accurate Time on Debian

To have accurate time on you servers, install a NTP service by doeing the following:

apt update
apt install ntp
systemctl status ntp

The NTP configuration file on Debian is located at /etc/ntp.conf. The NTP configuration file on Debian 12 is located at /etc/ntpsec/ntp.conf.

Edit the file with the NTP servers of your choice or install the European NTP Servers:

pool 0.europe.pool.ntp.org
pool 1.europe.pool.ntp.org
pool 2.europe.pool.ntp.org
pool 3.europe.pool.ntp.org

Setting the thime zone:

timedatectl set-timezone your_time_zone (Europe/Amsterdam)

You can check the settings by doeing:

timedatectl

You can check the timeservers by doeing:

ntpq -p

That's all.

Your ArtIT Team

BACK

ensuring_accurate_time_debian.txt · Last modified: 2024/10/31 17:59 by admin