Raspberry Pi: Time Sync Over Network (NTP Servers)
Вставка
- Опубліковано 15 гру 2024
- I show you how to set time on a Raspberry Pi using NTP servers using timedatectl commands. Don't have a Real-time clock (RTC) on your Raspberry Pi? Raspberry Pi time not updating? No worries! Learn how to use timedatectl to list timezones and select a local time on your Raspberry Pi. I also show you how to manually update your Raspberry Pi's time without using internet.
=== Commands Used ===
Update NTP Time Configuration: sudo nano /etc/systemd/timesyncd.conf
Enable time synchronization: sudo timedatectl set-ntp true
Restart time sync service: sudo systemctl restart systemd-timesyncd
Check if TimeSyncD Uses NTP Servers: timedatectl show-timesync
Display Time and Date: date
Raspberry Pi Timezone List: timedatectl list-timezones
Set Timezone: sudo timedatectl set-timezone [TIMEZONE]
Disable time synchronization: sudo timedatectl set-ntp false
Manually set time: sudo timedatectl set-time 'YYYY-MM-DD HH:MM:SS'
#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4