NTP SETUP – Method 1
Note!, Only newer versions RaspberryPi OS (bookworm)
SHOW STATUS
timedatectl status
SHOW TIMEZONES
timedatectl list-timezones
SET TIMEZONE (Europa/Amsterdam)
sudo timedatectl set-timezone Europe/Amsterdam
ENABLE NTP
sudo timedatectl set-ntp true
EDIT NTP SERVICE
sudo nano /etc/systemd/timesyncd.conf
[Time] #NTP= FallbackNTP=0.nl.pool.ntp.org 1.nl.pool.ntp.org 2.nl.pool.ntp.org 3.nl.pool.ntp.org |
NTP SETUP – Method 2
Older versions RaspberryPi OS
INSTALL NTP
sudo apt install ntp
(sudo service ntp status | start | stop | restart)
INSTALL NTPDATE
sudo apt install ntpdate
CHECK NTP SERVICE
sudo ntpdate -q 0.nl.pool.ntp.org
START/STOP SERVICE
sudo service ntp stop
sudo ntpdate 0.nl.pool.ntp.org
sudo service ntp start