GPS-Disciplined NTP Server on Raspberry Pi 4

Опубликовано: 07 Февраль 2021
на канале: Linux Tech School
13,281
319

GPS-Disciplined NTP Server on Raspberry Pi 4
Hi guys,

In this video I'll explain how to install a GPS USB module to get precise time and date information from GNSS (GPS, GALILEO, GLONASS, BEIDO) satellite constelations to provide it to our local network servers, workstations and/or other gadgets and appliances.

Check more about GNSS constelations at ESA space agency webpage. Check link below:

https://www.gsa.europa.eu/european-gn...

I'll be using a GPS usb receiver you can get from ALIEXPRESS. Check link below:

https://www.aliexpress.com/item/32969...

The main computer hardware on the video was a Raspberry Pi 4 with Raspberry Pi OS.

The main commands on Linux prompt were:

apt install gpsd
apt install gpsd-clients

cd /etc/deafult
nano gpsd

[EDIT]
START_DAEMON="true"
USBAUTO="true"
DEVICES=#/dev/ttyACM0"
GPSD_OPTIONS="-n -D 1"
ENABLED="yes"
GPS_BAUD=9600
[END_OF_EDIT]

systemctl restart gpsd
systemctl status gpsd
systemctl stop gpsd

#Tools to check gps raw data:
gpsmon /dev/ttyCM0
cgps -d
apt install ntp

cd /etc/
nano ntp.conf

[EDIT]
server 127.127.28.0 minpoll 3 maxpoll 3
fudge 127.127.28.0 refid GPS
pool 0.debian.poool.ntp.org iburst
[END_OF_EDIT]

systemctl restart ntp

#NTP monitoring:
ntpq -p

ufw allow 123
ufw enable

I hope you enjoyed this video.
Please comment below for any questions or sugestions.

Regards,
Rodrigo Matias