1. Home
  2. set permanent timedate linux ubuntu

set permanent timedate linux ubuntu

Awal mula timedate pada os linux tidak sinkron ditandai keterangan System clock synchronized: no , walaupun kita sudah set timedate manual ketika server di restart akan kembali ngaco. Berikut contoh nya:


root@hostname:~# timedatectl
Local time: Wed 2024-08-28 15:02:16 WIB
Universal time: Wed 2024-08-28 08:02:16 UTC
RTC time: Wed 2024-08-28 08:02:16
Time zone: Asia/Jakarta (WIB, +0700)
System clock synchronized: no
NTP service: active
RTC in local TZ: no

Sebetulnya kita cukup menjalankan perintah ini untuk dapat aktif, namun terkadang error seperti ini:
root@hostname:~# timedatectl set-ntp true
Failed to set ntp: NTP not supported


karena perlu di install terlebih dulu timesync dan menjalanan servicenya.

Install timesync
apt install systemd-timesyncd

Activate NTP:
timedatectl set-ntp true

enable dan start service:
systemctl enable systemd-timesyncd.service
systemctl start systemd-timesyncd.service

Terima kasih

Updated on October 4, 2024

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support

Leave a Comment