NTP
NTP (Network Time Protocol) mantiene la hora del sistema sincronizada con la hora real.
Instalación y configuración
Ejecutar comando date para visualizar la hora y fecha actual
date
- Instalación NTP
aptitude install ntp
- Listo.
Ejecute ntpq -p para identificar servidores con los que estas sincronido.
Ejecuta date nuevamente para verificar si la hora del sistema ha cambiado. La hora se sincronizará en el próximo minuto.
- Listo.
Soluciones a problemas frecuentes
Si al ejecutar ntpq -p obtienes
No association ID's returned
- Ejecuta:
dpkg-reconfigure ntp
- Y nuevamente:
ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntp.pbx.org xx.xxx.xxx.xxx 2 u - 64 1 33.763 1799619 1.054 xray.metadom.co xx.xxx.xxx.xxx 2 u 1 64 1 40.367 1799619 0.001 hydrogen.cert.u xx.xxx.xxx.xxx 2 u - 64 1 64.740 1799619 0.001 mirror .INIT. 16 u - 64 0 0.000 0.000 0.001
Servidores públicos de sincronización horaria
pool.ntp.org - servidores aleatorios en todo el mundo
europe.pool.ntp.org - servidores aleatorios en Europa
it.pool.ntp.org - servidores aleatorios en Italia