-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
35 lines (21 loc) · 838 Bytes
/
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
#!/bin/bash
GOOGLE_EARTH="$(which google-earth-pro)"
DRIVERS_LOCATION="/opt/google/earth/pro/drivers.ini"
QUERYFILE="/tmp/query.txt"
DRIVERS_STRING="ViewSync/queryFile=/tmp/query.txt""\n""ViewSync/send=true"
CURRENT_DIR="$(pwd)""/LGxVoiceControl"
if [ -z "$GOOGLE_EARTH" ]
then
echo "Liquid Galaxy is not installed."
exit 0
else
echo "Found Liquid Galaxy, resuming installation..."
fi
sudo apt-get update
sudo apt-get install curl git
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone 'https://github.com/KatherineAdair/LGxVoiceControl'
sed -i '3 a '$DRIVERS_STRING'' $DRIVERS_LOCATION
npm install firebase-admin fs python-shell
echo -e "LGxVoiceControl has been installed. To start using run the following command - \n \n cd '$CURRENT_DIR' | sudo node tools.js"