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.

    1. VNC to your eRVin system.
    2. Open a terminal window.
    3. In the terminal window type (or copy and paste):
      1. sudo apt-get update && sudo apt-get -y install gpsd gpsd-clients python-gps
      2. 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:
        1. Open a new terminal window type (or copy and paste)
          sudo nano /lib/systemd/system/gpsd.socket

          you should see the following:

        2. 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.
        3. Type Ctrl-X, then Y, then Enter
        4. 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:

    4. Now type the following commands in the terminal window:
      1. sudo reboot
      2. 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.

    5. 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

    6. Reboot the Raspberry Pi;
      sudo reboot
    7. 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:

    8. Next you may want to download and import my sample flow into Node-Red.

One Comment to Installing gpsd Alternate Method w/o Enabling IPv6

  1. […] 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. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2024: myeRVin.com | Easy Theme by: D5 Creation | Powered by: WordPress