Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:informatique:linux:gps_time_sync:index [2022/04/12 01:56] – f1sls | documentation:informatique:linux:gps_time_sync:index [2022/04/13 18:42] (Version actuelle) – [CONFIG GPSD] f1sls | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== SYNCHRONISATION DE L' | + | {{: |
+ | ====== SYNCHRONISATION DE L' | ||
===== POURQUOI / INTRO ===== | ===== POURQUOI / INTRO ===== | ||
Plusieurs applications radioamateurs nécessitent que l' | Plusieurs applications radioamateurs nécessitent que l' | ||
En temps normal, la synchro de l' | En temps normal, la synchro de l' | ||
- | En utilisant un récepteur GPS autonome, il est possible de mettre | + | En utilisant un récepteur GPS autonome, il est possible de mettre à l' |
===== INSTALLATION + CONFIG ===== | ===== INSTALLATION + CONFIG ===== | ||
Ligne 12: | Ligne 13: | ||
==== OUTILS GPS ==== | ==== OUTILS GPS ==== | ||
< | < | ||
- | sudo apt install -y gpsd gpsd-tools gpsd-clients | + | $> sudo apt install -y gpsd gpsd-tools gpsd-clients |
</ | </ | ||
- | === CONFIG GPSD === | + | ==== CONFIG GPSD ==== |
- | Éditer ''/ | + | |
+ | Éditer ''/ | ||
< | < | ||
# Devices gpsd should collect to at boot time. | # Devices gpsd should collect to at boot time. | ||
# They need to be read/ | # They need to be read/ | ||
+ | |||
+ | # Remplacer / | ||
+ | # Faire un '' | ||
DEVICES="/ | DEVICES="/ | ||
# Other options you want to pass to gpsd | # Other options you want to pass to gpsd | ||
+ | # ' | ||
GPSD_OPTIONS=" | GPSD_OPTIONS=" | ||
Ligne 37: | Ligne 44: | ||
==== REDÉMARRER GPSD ==== | ==== REDÉMARRER GPSD ==== | ||
< | < | ||
- | sudo service gpsd start | + | $> sudo service gpsd start |
</ | </ | ||
==== INSTALLER LES PAQUETS NTP ==== | ==== INSTALLER LES PAQUETS NTP ==== | ||
< | < | ||
- | sudo apt install -y ntp ntpdate ntpsec | + | sudo apt install -y ntp ntpstat |
</ | </ | ||
- | ==== ÉDITER LA CONF NTP ==== | + | ==== ÉDITER LA CONFIGURATION |
Éditer ''/ | Éditer ''/ | ||
< | < | ||
Ligne 53: | Ligne 60: | ||
</ | </ | ||
- | ==== REDÉMARRER NTP ==== | + | ==== REDÉMARRER |
- | Redémarrer le service ntp | + | |
< | < | ||
- | sudo service ntp restart | + | $> sudo service ntp restart |
</ | </ | ||
+ | ==== CRÉER UN LANCEUR DU DAEMON GPSD AU DÉMARRAGE ==== | ||
Éditer ''/ | Éditer ''/ | ||
- | < | ||
+ | < | ||
[Unit] | [Unit] | ||
Description=GPS (Global Positioning System) Daemon | Description=GPS (Global Positioning System) Daemon | ||
Ligne 95: | Ligne 102: | ||
==== REDEMARRER LE SERVICE AVEC LA NOUVELLE CONFIG ==== | ==== REDEMARRER LE SERVICE AVEC LA NOUVELLE CONFIG ==== | ||
< | < | ||
- | sudo systemctl daemon-reload | + | $> sudo systemctl daemon-reload |
- | sudo systemctl reenable gpsd.service | + | $> sudo systemctl reenable gpsd.service |
</ | </ | ||
===== RESSOURCES ===== | ===== RESSOURCES ===== | ||
* https:// | * https:// | ||
- | * | + | * https:// |
+ | * https:// |