-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSerial-install.sh
executable file
·36 lines (27 loc) · 1.05 KB
/
Serial-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
#!/bin/sh
#######################################
# Bash script to install dependencies for Project Owl Dms-lite
# Written by @Evilgeniusnerd
#######################################
## Update packages ##
echo '##updating packages'
sudo apt-get update -y
echo '##installing Node Js now..'
curl -fsSL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install nodejs -y
echo '##installing Sqlite3'
sudo apt-get install sqlite3 -y
echo '##install pyserial'
pip install pyserial
echo '##install node dependecies'
npm install sqlite3
npm install
echo '##new terminal and run npm'
lxterminal -e "npm run start"&
echo '##new terminal and run python'
lxterminal -e "python serial_sqlwriter.py"&
echo '##launch chrome in kiosk mode'
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences
/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost:3000 &