141 | | All of the following examples require [https://gpsd.gitlab.io/gpsd/ GPSD] version {{{3.21}}} or greater. The release source tarball for which can be found [http://download-mirror.savannah.gnu.org/releases/gpsd/ here]. The [wiki:ubuntu Gateworks Ubuntu Focal 20.04.1] image at this time contains version {{{3.20}}} and therefore needs to be replaced, otherwise later operations involving {{{ubxtool}}} will fail in unexpected ways. |
142 | | {{{#!bash |
143 | | # Remove current gpsd |
144 | | systemctl stop gpsd.socket |
145 | | systemctl stop gpsd |
146 | | systemctl disable gpsd.socket |
147 | | systemctl disable gpsd |
148 | | apt purge gpsd |
149 | | |
150 | | # Install gpsd-3.21 from gateworks PPA (tested on Focal) |
151 | | sudo add-apt-repository ppa:gateworks-software/packages |
152 | | sudo apt-get update |
153 | | sudo apt-get install gpsd gpsd-clients |
154 | | systemctl stop gpsd.socket |
155 | | systemctl stop gpsd |
156 | | gpsd /dev/ttyACM0 # May need to kill this process later for RTCM set up |
157 | | |
158 | | ## OR ## |
159 | | |
160 | | # Build gpsd from release source |
161 | | apt install gcc scons python-gi python-gi-cairo g++ |
162 | | apt install libncurses5-dev libtinfo-dev pps-tools |
163 | | apt install python3-distutils |
164 | | wget http://download.savannah.gnu.org/releases/gpsd/gpsd-3.21.tar.xz |
165 | | tar xvf gpsd-3.21.tar.xz |
166 | | cd gpsd-3.21 |
167 | | ln -s /usr/bin/python3 /usr/bin/python |
168 | | scons && scons check && scons udev-install |
169 | | }}} |
| 141 | All of the following examples require [https://gpsd.gitlab.io/gpsd/ GPSD] version {{{3.21}}} or greater. |