-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathUbuntu-Install.sh
More file actions
32 lines (23 loc) · 943 Bytes
/
Ubuntu-Install.sh
File metadata and controls
32 lines (23 loc) · 943 Bytes
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
#!/bin/sh
echo Please enter your password to continue...
# Install the following dependencies from repositories without asking questions, git-core can be removed afterwords as it's only used to initialise a local git repository
echo Installing dependencies
sudo apt-get -y install git-core libusb-1.0.0 libudev-dev python3 cython3 python3-pip python3-pil python3-setuptools
cd /tmp
pip3 install hidapi click
# Build within /tmp
cd /tmp
# If the git repository already exists then delete it
if [ -d "python-evic" ]; then
rm -Rf python-evic
fi
# Clone the pythin-evic repository the change directory into it
echo Cloning python-evic repository
git clone git://github.com/Ban3/python-evic.git && cd ./python-evic
# Install python-evic
echo Installing python-evic
sudo python3 setup.py install
# Cleanup
cd ../
rm -Rf python-evic
echo Installation complete. Run \"sudo evic-usb upload /path/to/firmware.bin\" to install a new firmware.