forked from btwatts/pyEfis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.sh
63 lines (46 loc) · 1.36 KB
/
installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#this is a comment
# A quick installer that pulls down the existing files from github, internet connection required
# This is a temporary tool to make testing easier.
# You will need a previously flashed raspberry pi running raspbian/raspios.
# Place this file in your user's home directory (should be what's selected by default when you download it).
#updoot yer shit
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit 2
fi
apt update
apt upgrade -y
apt autoremove -y
apt autoclean
apt install -y python3-full git unzip wget
# apt install python3-pyqt6
#make base directory
mkdir Avionics
cd Avionics
#Install some python stuff
pip install wheel
pip install PyQt5
#pip install PyQt6
pip install geomag
#Get some git
git clone https://github.com/makerplane/FIX-Gateway.git
cd FIX-Gateway
pip install .
cd ..
#Install pyAvTools
git clone https://github.com/makerplane/pyAvTools.git
cd pyAvTools
pip install .
cd ..
git clone https://github.com/btwatts/pyEfis.git
cd pyEfis
pip install .
cd ..
# Get the CIFP Database
wget https://aeronav.faa.gov/Upload_313-d/cifp/CIFP_240125.zip
mkdir -p pyEfis/CIFP
unzip CIFP_240125.zip -d pyEfis/CIFP/
#This line makes the CIFP index, however it will need to be updated with each new version released by FAA
python pyAvTools/MakeCIFPIndex.py pyEfis/CIFP/FAACIFP18
#tada, downloaded all the things!