forked from zorbaproject/greenpass-turnstile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·49 lines (34 loc) · 1.34 KB
/
install.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
#!/bin/bash
echo "This install script is intended for a RaspberryPi 3"
sudo apt-get update
sudo apt install aptitude tmux
sudo apt-get install pcscd libpcsclite1 pcsc-tools libccid libnss3-tools opensc-pkcs11
sudo apt-get install swig -y
sudo apt-get install python3-pyscard -y
sudo apt-get install python3-opencv python3-sip libjasper-dev libatlas-base-dev -y
sudo pip3 install opencv-contrib-python==4.1.0.25
sudo apt install libqtgui4 libqt4-test
sudo apt install python3-pil
sudo aptitude install python3-rpi.gpio
#sudo pip3 install w1thermsensor
sudo apt install python3-pip
#We need python2 for this due to conflicts on Debian
sudo apt-get install python-qrtools
#GUI libraries
sudo apt install libpyside2-dev pyside2-tools
sudo apt install python3-pyside2*
#Minimalistic option: sudo apt install python3-pyside2.qtgui python3-pyside2.qtcore python3-pyside2.qtconcurrent
#access serial ports (e.g.: /dev/ttyUSB0) as non root
sudo pip3 install pyserial
sudo usermod -a -G dialout $(whoami)
#needed to make a noise
sudo pip3 install beepy
#ehc requirements
scriptdir=$(dirname "$(readlink -f "$0")")
sudo pip3 install -r $scriptdir/verify-ehc/requirements.txt
sudo apt install python3-lxml
#Run autologin to make app run at boot
chmod +x autologin.sh
sudo ./autologin.sh
sudo apt clean
echo "Now just reboot the system and wait for the interface to load."