| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa |
| doc:tec:sis:gnu:hora:inicio [2026/02/02 14:15] – [Sincronizar hora con NTP o systemd‑timesyncd en Debian 13] fepg | doc:tec:sis:gnu:hora:inicio [2026/02/02 14:25] (actual) – fepg |
|---|
| ===== Sincronizar hora con NTP o systemd‑timesyncd en Debian 13 ===== | ===== Sincronizar hora con NTP o systemd‑timesyncd en Debian 13 ===== |
| |
| Para sincronizar la hora con NTP en Debian 13 lo habitual es usar **systemd‑timesyncd** a través de `timedatectl`, o bien instalar un demonio NTP completo como `ntp`/`chrony` si necesitas más opciones.[3][7] | <WRAP center round todo 60%>Falta verificar esta página</WRAP> |
| | |
| | Para sincronizar la hora con NTP en Debian 13 lo habitual es usar **systemd‑timesyncd** a través de `timedatectl`, o bien instalar un demonio NTP completo como `ntp`/`chrony` si necesitas más opciones. |
| |
| **Comprobar estado actual** | **Comprobar estado actual** |
| </code> En la salida revisa: | </code> En la salida revisa: |
| - System clock synchronized: debería ser ''yes''. | - System clock synchronized: debería ser ''yes''. |
| - NTP service: debería decir ''active'' si se usa systemd‑timesyncd u otro cliente NTP integrado.[7][3] | - NTP service: debería decir ''active'' si se usa systemd‑timesyncd u otro cliente NTP integrado. |
| |
| **Usar systemd‑timesyncd** | **Usar systemd‑timesyncd** |
| |
| Debian moderno suele integrar `systemd‑timesyncd` como cliente SNTP ligero, pero puede no venir instalado o habilitado por defecto.[4][6][7] | Debian moderno suele integrar `systemd‑timesyncd` como cliente SNTP ligero, pero puede no venir instalado o habilitado por defecto. |
| |
| - Instalar (si no existe): <code> | - Instalar (si no existe): <code> |
| # systemctl status systemd-timesyncd.service | # systemctl status systemd-timesyncd.service |
| |
| </code> Si el servicio aparece como ''active (running)'' y ''NTP service: active'', el reloj se sincroniza con servidores NTP configurados en ''systemd‑timesyncd''.[1][3][7] | </code> Si el servicio aparece como ''active (running)'' y ''NTP service: active'', el reloj se sincroniza con servidores NTP configurados en ''systemd‑timesyncd''. |
| |
| **Configurar servidores NTP en systemd‑timesyncd** | **Configurar servidores NTP en systemd‑timesyncd** |
| # timedatectl status | # timedatectl status |
| |
| </code> En entornos con servidor NTP interno pon la IP o nombre de ese servidor en `NTP=` y deja `FallbackNTP` con servidores públicos.[9][1][3] | </code> En entornos con servidor NTP interno pon la IP o nombre de ese servidor en `NTP=` y deja `FallbackNTP` con servidores públicos. |
| |
| **Usar un demonio NTP completo (ntp o chrony)** | **Usar un demonio NTP completo (ntp o chrony)** |
| |
| * Si necesitas más precisión, estadísticas o servir tiempo a otros equipos, conviene instalar un cliente/servidor NTP completo.[6][7] | * Si necesitas más precisión, estadísticas o servir tiempo a otros equipos, conviene instalar un cliente/servidor NTP completo. |
| |
| - Instalar `ntp` (ejemplo): <code> | - Instalar `ntp` (ejemplo): <code> |
| # systemctl restart chrony | # systemctl restart chrony |
| |
| </code> ''ntp'' y ''chrony'' proporcionan más opciones de ajuste fino, pero para la mayoría de escritorios y servidores simples basta con systemd‑timesyncd.[3][6][7] | </code> ''ntp'' y ''chrony'' proporcionan más opciones de ajuste fino, pero para la mayoría de escritorios y servidores simples basta con systemd‑timesyncd. |
| |
| **Forzar y verificar sincronización** | **Forzar y verificar sincronización** |
| # timedatectl set-time "2025-12-19 10:44:00" | # timedatectl set-time "2025-12-19 10:44:00" |
| |
| </code> y dejar que NTP haga los ajustes finos posteriores.[10][3] | </code> y dejar que NTP haga los ajustes finos posteriores. |
| - Comprobar otra vez: <code> | - Comprobar otra vez: <code> |
| |
| timedatectl status | timedatectl status |
| |
| </code> Cuando el campo `System clock synchronized` pase a `yes` y el desajuste sea mínimo, la sincronización está funcionando correctamente.[7][3] | </code> Cuando el campo `System clock synchronized` pase a `yes` y el desajuste sea mínimo, la sincronización está funcionando correctamente. |
| | |
| Si indicas si tu Debian 13 es servidor o escritorio y si tienes servidor NTP interno, se pueden proponer valores concretos para el ''timesyncd.conf'' o para ''ntp/chrony''. | |
| |
| * [1][[https://guidocutipa.blog.bo/como-sincronizar-la-hora-en-ubuntu-debian-con-un-servidor-ntp/|Cómo sincronizar la hora en Ubuntu/Debian usando systemd-timesyncd]] | **Enlaces** |
| * [2][[https://translate.google.com/translate?u=https%3A%2F%2Fphoenixnap.com%2Fkb%2Fdebian-time-sync&hl=es&sl=en&tl=es&client=srp|]] | - [[https://guidocutipa.blog.bo/como-sincronizar-la-hora-en-ubuntu-debian-con-un-servidor-ntp/|Cómo sincronizar la hora en Ubuntu/Debian usando systemd-timesyncd]] |
| * [3][[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.debian.org%2FDateTime&hl=es&sl=en&tl=es&client=srp|]] | - [[https://translate.google.com/translate?u=https%3A%2F%2Fphoenixnap.com%2Fkb%2Fdebian-time-sync&hl=es&sl=en&tl=es&client=srp|How to Set Up Time Synchronization on Debian]] |
| * [4][[https://www.reddit.com/r/debian/comments/1e4k61a/needed_to_install_ntp_to_synchronize_the_time/|]] | - [[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.debian.org%2FDateTime&hl=es&sl=en&tl=es&client=srp|DateTime]] |
| * [5][[https://translate.google.com/translate?u=https%3A%2F%2Fdocs.vultr.com%2Fhow-to-set-the-timezone-and-configure-ntp-on-rocky-linux&hl=es&sl=en&tl=es&client=srp|]] | - [[https://www.reddit.com/r/debian/comments/1e4k61a/needed_to_install_ntp_to_synchronize_the_time/|Needed to install NTP to synchronize the time]] |
| * [6][[https://instructorbenyblanco.wordpress.com/2020/06/02/hora-linux-systemd/|]] | - [[https://instructorbenyblanco.wordpress.com/2020/06/02/hora-linux-systemd/|Controle la hora y fecha de su computadora con systemd]] |
| * [7][[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.debian.org%2FNTP&hl=es&sl=en&tl=es&client=srp|]] | - [[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.debian.org%2FNTP&hl=es&sl=en&tl=es&client=srp|Debian NTP]] |
| * [8][[https://www.youtube.com/watch?v=IOCoG8VX_dE|]] | - [[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.archlinux.org%2Ftitle%2FSystemd-timesyncd&hl=es&sl=en&tl=es&client=srp|systemd-timesyncd]] |
| * [9][[https://translate.google.com/translate?u=https%3A%2F%2Fwiki.archlinux.org%2Ftitle%2FSystemd-timesyncd&hl=es&sl=en&tl=es&client=srp|]] | - [[https://translate.google.com/translate?u=https%3A%2F%2Fserverfault.com%2Fquestions%2F948974%2Fforce-systemd-timesyncd-to-sync-time-with-ntp-server-immediately&hl=es&sl=en&tl=es&client=srp|Force systemd timesyncd to sync time with NTP server immediately]] |
| * [10][[https://translate.google.com/translate?u=https%3A%2F%2Fserverfault.com%2Fquestions%2F948974%2Fforce-systemd-timesyncd-to-sync-time-with-ntp-server-immediately&hl=es&sl=en&tl=es&client=srp|]] | **Vídeos** |
| | - [[https://www.youtube.com/watch?v=IOCoG8VX_dE|Solucion Sincronizar El Reloj En Debian / Ubuntu | Zona Horaria / Hora Y Fecha Linux]] |
| \\ | \\ |