====== Build GPSD ====== https://github.com/ntpsec/gpsd Lots of extras in here, but they don't cause issues. ===== Dependencies ===== For debian 11.x based distros: sudo apt install build-essential manpages-dev pkg-config scons libncurses-dev \ python-dev-is-python3 gnuplot pps-tools git python-gi-dev python3-cairo-dev \ python3-blockdev libgtk-3-dev python3-serial asciidoctor python3-matplotlib For RHEL/Rocky/Alma/Etc. sudo dnf groupinstall "Development Tools" ; sudo dnf --enablerepo=powertools install python3-scons asciidoctor ncurses-devel git clone https://gitlab.com/gpsd/gpsd.git ===== Build ===== To build a slimmed-down version of gpsd for ublox GNSS, run: scons aivdm=no ashtech=no bluez=no earthmate=no evermore=no fury=no fv18=no \ garmin=no garmintxt=no geostar=no gpsclock=no greis=no isync=no itrax=no \ magic_hat=no navcom=no nmea2000=no oceanserver=no oncore=no oscillator=no \ rtcm104v2=no rtcm104v3=no sirf=no skytraq=no superstar2=no tnt=no tripmate=no \ tsip=no usb=no xgps=no -j 4 If you want to build all of gpsd, run: scons (on RHEL-based systems, run ''scons-3'') ===== Install ===== Install sudo scons install sudo nano /etc/default/gpsd GPSD_OPTIONS="-n -s 9600" DEVICES="/dev/ttyAMA0" sudo cp gpsd-*/systemd/gpsd.{service,socket} /etc/systemd/system/ ===== Web ===== sudo lighty-enable-mod fastcgi sudo lighty-enable-mod fastcgi-php sudo cp gpsd.php /var/www/html/index.php sudo php /var/www/html/index.php