Installing gpsd Alternate Method w/o Enabling IPv6
This is an alternate method to install gpsd daemon on a Raspberry Pi running CoachProxy or eRVin version 0.2 and older. eRVin version 0.3 and newer already has the gpsd daemon installed. This method allows the dependency error to occur during installation, describes a fix, then allows the install to complete. This method was how I originally resolved the problem and is just here for reference. The newer install method fixes the dependency issue (which is probably a bug) before running the installation script. Both methods work equally well.
-
- VNC to your eRVin system.
- Open a terminal window.
- In the terminal window type (or copy and paste):
-
sudo apt-get update && sudo apt-get -y install gpsd gpsd-clients python-gps
- If you are installing on an eRVin or coachproxy image the install will fail with dependency errors due to an IPv6 issue. Click here for a screen capture of the errors. If you did not get any errors proceed to step 4, otherwise you must complete the steps below:
- Open a new terminal window type (or copy and paste)
sudo nano /lib/systemd/system/gpsd.socket
you should see the following:
- Use the keyboard arrows to position the cursor in front of the line highlighted in blue in the image above and type a # character as shown.
- Type Ctrl-X, then Y, then Enter
- Return to the original terminal window and type
sudo apt-get -f install
The installation should now complete without errors, the result should look like this:
- Open a new terminal window type (or copy and paste)
-
- Now type the following commands in the terminal window:
-
sudo reboot
- Wait for reboot, open a new terminal window and type
sudo dpkg-reconfigure gpsd
This may generate some errors, but that is OK, proceed to the next step.
-
- Type
sudo nano /etc/default/gpsd
and modify the un-commented text so it looks exactly like below. If you prefer to cut and paste, you can copy the text from this file. When done editing, type Ctrl-X, then Y, then Enter - Reboot the Raspberry Pi;
sudo reboot
- That’s it! Assuming all completed without errors you should now be capturing GPS info. To test, open a terminal window and type
gpsmon
you should see a screen something like this with valid GPS data:
- Next you may want to download and import my sample flow into Node-Red.
[…] On many systems, including the eRVin and coachproxy images, IPv6 has been disabled. Unfortunately gpsd will fail with dependency errors if IPv6 loopback is not enabled. To see if you have IPv6 loopback running type ifconfig in the terminal window. If you don’t have the highlighted line shown below in the lo: section, do the steps below, otherwise proceed to step 4. Note: for an alternate procedure that does not require enabling IPv6 click here. […]