Linux Debian NTP

From FroggDev - En
Jump to: navigation, search
  • official doc

https://wiki.debian.org/fr/NTP

NTP

installation

  • install ntpdate package
apt-get install ntp

Configuration

  • configuration file /etc/ntp.conf
# logs 
statsdir /var/log/ntpstats/
# server list
server 0.fr.pool.ntp.org
server 1.fr.pool.ntp.org
server 2.fr.pool.ntp.org
server 3.fr.pool.ntp.org

restart service

/etc/init.d/ntp restart


NTPDATE (deprecated)

it is not a service it has to be run manually or added to cron

installation

  • install ntpdate package
apt-get install ntpdate

Configuration

  • configuration file /etc/default/ntpdate
#Enable
NTPDATE_USE_NTP_CONF=yes
#Server
NTPSERVERS="ntp.free.fr"
#Options
NTPOPTIONS=""

Options

  • ajustement progressiv
ntpdate -B  {serverAdress}
  • ajustement brutal
ntpdate -b  {serverAdress}
  • ajustement with log
ntpdate -s  {serverAdress}