Added install help for gps_tool
This commit is contained in:
14
gps_tool/etc/default/gpsd
Normal file
14
gps_tool/etc/default/gpsd
Normal 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"
|
||||||
@ -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
|
||||||
|
|
||||||
@ -1,10 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Python 3
|
# Python 3
|
||||||
echo "Python 3 packages:"
|
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 spyder3 python3-pyside2.*
|
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
|
# Python addons
|
||||||
sudo -H pip install --upgrade pip
|
echo "Python 3 Packages:"
|
||||||
sudo -H pip install configparser pyside2
|
sudo -H pip3 install --upgrade pip
|
||||||
sudo -H pip install --upgrade pyserial matplotlib numpy scipy scapy gps gpxpy maidenhead virtualenv virtualenvwrapper
|
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
|
||||||
|
|||||||
@ -3,11 +3,12 @@
|
|||||||
# Python 3
|
# Python 3
|
||||||
echo "Python 3 packages:"
|
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 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
|
# Python addons
|
||||||
sudo -H pip3 install --upgrade pip
|
sudo -H pip3 install --upgrade pip
|
||||||
sudo -H pip3 install configparser pyside2
|
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
|
# cleanup
|
||||||
sudo apt-get autoremove
|
sudo apt-get autoremove
|
||||||
|
|||||||
Reference in New Issue
Block a user