mirror of
https://github.com/Lukas0025/YAGS.git
synced 2025-04-12 02:12:12 +01:00
Added instalation as service
This commit is contained in:
parent
d45640a4fc
commit
7188f67683
2
install.sh
Normal file → Executable file
2
install.sh
Normal file → Executable file
@ -38,7 +38,7 @@ git clone https://github.com/Hamlib/Hamlib
|
|||||||
cd Hamlib
|
cd Hamlib
|
||||||
|
|
||||||
./bootstrap
|
./bootstrap
|
||||||
./configure
|
./configure --prefix=/usr/local --enable-static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -1,6 +1,18 @@
|
|||||||
install:
|
install:
|
||||||
|
apt install -f libopenblas-dev
|
||||||
|
pip3 install matplotlib
|
||||||
|
pip3 install numpy
|
||||||
|
pip3 install pyorbital
|
||||||
|
pip3 install pyserial
|
||||||
|
|
||||||
cp tools/baseband_spectogram.py /usr/local/bin/
|
cp tools/baseband_spectogram.py /usr/local/bin/
|
||||||
chmod +x /usr/local/bin/baseband_spectogram.py
|
chmod +x /usr/local/bin/baseband_spectogram.py
|
||||||
|
|
||||||
cp tools/cw_morse.py /usr/local/bin/
|
cp tools/cw_morse.py /usr/local/bin/
|
||||||
chmod +x /usr/local/bin/cw_morse.py
|
chmod +x /usr/local/bin/cw_morse.py
|
||||||
|
|
||||||
|
rm -rf /YAGS
|
||||||
|
mkdir /YAGS
|
||||||
|
sudo cp -r * /YAGS/
|
||||||
|
cp -f yags.service /etc/systemd/system/
|
||||||
|
systemctl daemon-reload
|
||||||
|
13
station/yags.service
Normal file
13
station/yags.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=YAGS ground station client
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/YAGS/
|
||||||
|
ExecStart=/usr/bin/python3 main.py
|
||||||
|
|
||||||
|
Restart=always
|
||||||
|
RestartSec=120
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user