Added install help for gps_tool

This commit is contained in:
2021-03-25 13:39:57 -04:00
parent a086eb3cf9
commit 8c80d7e535
4 changed files with 46 additions and 6 deletions

14
gps_tool/etc/default/gpsd Normal file
View File

@ -0,0 +1,14 @@
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-G"

View File

@ -0,0 +1,15 @@
[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket
# Needed with chrony SOCK refclock
After=chronyd.service
[Service]
Type=forking
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES
[Install]
WantedBy=multi-user.target
Also=gpsd.socket

View File

@ -1,10 +1,20 @@
#!/bin/bash
# Python 3
echo "Python 3 packages:"
sudo apt-get -y --ignore-missing install python3-all python3-dev python3-tk idle3 python3-pip python3-pyqt5 python3-serial python3-can python3-protobuf python3-numpy python3-pil.imagetk python3-gi spyder3 python3-pyside2.*
echo "Python 3 Software:"
sudo apt-get -y --ignore-missing install python3-all python3-dev python3-tk idle3 python3-pip python3-pyqt5 python3-serial python3-can python3-protobuf python3-numpy python3-pil.imagetk python3-gi
apt-get -y --ignore-missing install spyder3 python3-pyside2.*
apt-get -y --ignore-missing install gpsd gpsd-clients gpsbabel libgps-dev python-gps
# Python addons
sudo -H pip install --upgrade pip
sudo -H pip install configparser pyside2
sudo -H pip install --upgrade pyserial matplotlib numpy scipy scapy gps gpxpy maidenhead virtualenv virtualenvwrapper
echo "Python 3 Packages:"
sudo -H pip3 install --upgrade pip
sudo -H pip3 install configparser pyside2
sudo -H pip3 install --upgrade pyserial matplotlib numpy scipy scapy gps gpxpy maidenhead virtualenv virtualenvwrapper
# gpsd startup
cp -r etc/* /etc/
# enable and start gpsd service
systemctl enable gpsd.service
systemctl start gpsd.service

View File

@ -3,11 +3,12 @@
# Python 3
echo "Python 3 packages:"
sudo apt-get -y --ignore-missing install python3-all python3-dev python3-tk idle3 python3-pip python3-pyqt5 python3-serial python3-can python3-protobuf python3-numpy python3-pil.imagetk python3-gi spyder3 python3-pyside2.*
sudo apt-get -y --ignore-missing install gpsd gpsd-clients gpsbabel libgps-dev python-gps
# Python addons
sudo -H pip3 install --upgrade pip
sudo -H pip3 install configparser pyside2
sudo -H pip3 install --upgrade pyserial numpy pyasn1 scapy virtualenv virtualenvwrapper
sudo -H pip3 install --upgrade pyserial numpy plotly scapy scipy gps gpxpy maidenhead pyyaml virtualenv virtualenvwrapper
# cleanup
sudo apt-get autoremove