Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few remarks for gnuplot in SSH #16

Open
Lefuneste83 opened this issue Sep 26, 2023 · 2 comments
Open

A few remarks for gnuplot in SSH #16

Lefuneste83 opened this issue Sep 26, 2023 · 2 comments

Comments

@Lefuneste83
Copy link

I wanted to thank you for this excellent recipe. It is very well packaged and it performs very well. I have tried a good dozen of such tutorials and this is the best one I have found.

Just a few remarks concerning gnuplot. As this Chrony server is mostly intended to run on a headless machine, you may find yourself struggling a bit to run gnuplot. At least this is what I had to do to run it on my Rpi 4.

apt install gnuplot-nox --> This will install required fonts for terminal rendering of the graph. You may add it to your list of packages in the installation script.

Then when running the gnuplot command you must tell it what terminal to use in the absence of any Desktop environment. I have managed to do the following :

gnuplot -e "set terminal dumb" /path/to/script/99-calibrate-offset-gps0.gnuplot

Note that there may be other options available in terminal mode, I haven't been digging the subject enough....

Then it all works with beautiful retrogaming graphs !!


########################################

* FILE: 
  Records:           547
  Out of range:        0
  Invalid:             0
  Header records:      0
  Blank:               0
  Data Blocks:         1

* COLUMN: 
  Mean:              -0.1919
  Std Dev:            0.0207
  Sample StdDev:      0.0207
  Skewness:          -0.4297
  Kurtosis:           2.0516
  Avg Dev:            0.0178
  Sum:             -104.9594
  Sum Sq.:           20.3741

  Mean Err.:          0.0009
  Std Dev Err.:       0.0006
  Skewness Err.:      0.1047
  Kurtosis Err.:      0.2095

  Minimum:           -0.2440 [419]
  Maximum:           -0.1542 [126]
  Quartile:          -0.2089 
  Median:            -0.1877 
  Quartile:          -0.1743 

########################################
GPS0:
mean:        1.918818e-01 => offset 1.918818e-01
lo_quartile: 2.088884e-01
median:      1.877149e-01 => offset 1.877149e-01
up_quartile: 1.743451e-01
########################################

                                                                               
                                                                               
                              Calibration Offset GPS0                          
     7 +--GPS0:------------------------------------------------------------+   
       |  mean: 1.918818e-01 (191.9 ms)  +          +    *      +          |   
     6 |-+median: 1.877149e-01 (187.7 ms)                **              +-|   
       |                                                 **                |   
       |                                                 **                |   
     5 |-+                                              ******           +-|   
       |                                                ******             |   
     4 |-+                                              *******   ****   +-|   
       |                                                *******   ****     |   
       |                                                *******   ****     |   
     3 |-+                                              ******* ******   +-|   
       |                                                ******* ******     |   
     2 |-+                                           * *******|********* +-|   
       |                                             * ****|**|****|****   |   
       |                                             * ****|**|****|****   |   
     1 |-+                                           ******|**|****|*******|   
       |          +           +          +          +******|**v^***|*******|   
     0 +-------------------------------------------------------------------+   
    -0.050      0.000       0.050      0.100      0.150       0.200      0.250 
                          Offset (for configuration file)             





@beta-tester
Copy link
Owner

thank you for suggestions.

yes maybe i remove the gnuplot option entirely or comment out its installation, because if you use the lite version of RaspiOS the installation of the full gnuplot installes alot X stuff you normally don't want on a lite version.

is gnuplot-nox much more lightweight ?

@Lefuneste83
Copy link
Author

Thanks for your reply.

It's a totally viable option IMHO. Here's the install transcript. Sorry it's in French...

I would suggest to leave gnuplot, it is a very nice and lightweight option and matches very well with the rest of your code.

apt install gnuplot-nox
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  bind9-host bind9-libs libavahi-core7 libdaemon0 libdouble-conversion3 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1 libegl-mesa0 libegl1 libevdev2 libfstrm0 libgbm1 libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libinput-bin libinput10
  libllvm11 liblmdb0 libmaxminddb0 libmd4c0 libmtdev1 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libuv1 libvulkan1 libwacom-common libwacom2 libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxkbcommon-x11-0 libxshmfence1 libxxf86vm1 libz3-4
Veuillez utiliser « apt autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés : 
  fonts-droid-fallback fonts-liberation fonts-noto-mono fonts-urw-base35 ghostscript groff gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libaom0 libdav1d4 libde265-0 libdjvulibre-text libdjvulibre21 libfftw3-double3 libgs9 libgs9-common libheif1 libijs-0.35 libilmbase25 libjbig2dec0 libjxr-tools
  libjxr0 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libnetpbm10 libopenexr25 libopenjp2-7 libpaper-utils libpaper1 libwmf0.2-7 libx265-192 libxaw7 libxmu6 libxt6 netpbm poppler-data psutils
Paquets suggérés :
  fonts-noto fonts-freefont-otf | fonts-freefont-ttf fonts-texgyre ghostscript-x gnuplot-doc imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance sane-utils texlive-base-bin transfig ufraw-batch xdg-utils libfftw3-bin
  libfftw3-dev inkscape libwmf0.2-7-gtk poppler-utils fonts-japanese-mincho | fonts-ipafont-mincho fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum
Les paquets suivants seront ENLEVÉS :
  gnuplot-qt
Les NOUVEAUX paquets suivants seront installés :
  fonts-droid-fallback fonts-liberation fonts-noto-mono fonts-urw-base35 ghostscript gnuplot-nox groff gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libaom0 libdav1d4 libde265-0 libdjvulibre-text libdjvulibre21 libfftw3-double3 libgs9 libgs9-common libheif1 libijs-0.35 libilmbase25 libjbig2dec0
  libjxr-tools libjxr0 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libnetpbm10 libopenexr25 libopenjp2-7 libpaper-utils libpaper1 libwmf0.2-7 libx265-192 libxaw7 libxmu6 libxt6 netpbm poppler-data psutils
0 mis à jour, 42 nouvellement installés, 1 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 30,7 Mo dans les archives.
Après cette opération, 102 Mo d'espace disque supplémentaires seront utilisés.

beta-tester added a commit that referenced this issue Jan 6, 2024
- added alternative for console / non-desktop, suggested by @Lefuneste83 in #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants