-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallOnPi.sh
executable file
·51 lines (36 loc) · 1.46 KB
/
installOnPi.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
#!/bin/sh
# WORK IN PROGRESS - THIS IS PROPABLY NOT WORKIG
cwd=$(pwd)
export NVM_DIR=$HOME/.nvm;
source $NVM_DIR/nvm.sh;
echo "Installing Uschi on Raspberry PI"
echo "Compiling Uschi"
cd Uschi && node_modules/typescript/bin/tsc
echo "Compiling HUD"
cd ../Hud && npm i --silent && node_modules/typescript/bin/tsc
echo "Compiling ImageSlider"
cd ../ImageSlider && npm i --silent && node_modules/typescript/bin/tsc
echo "Compiling ScreenSaver"
cd ../ScreenSaver && npm i --silent && node_modules/typescript/bin/tsc
echo "Compiling Schimpfolino"
cd ../Schimpfolino && npm i --silent && node_modules/typescript/bin/tsc
#scp -r dist/* [email protected]:/home/pi/uschi-cli/Schimpfolino
echo "Compiling Frontend"
#cd ../frontend && nvm use 22 && npm i && npm run build
#scp -r dist/* [email protected]:/opt/uschi-frontend
#cd ../Uschi
#oclif pack tarballs
#scp dist/*arm64.tar.gz [email protected]:/home/pi/uschi-cli
# echo "Installing VideoViewer"
# git clone https://github.com/hzeller/rpi-rgb-led-matrix.git /tmp/rpi-rgb-led-matrix
# cd /tmp/rpi-rgb-led-matrix/utils
# sudo apt-get update
# sudo apt-get install pkg-config libavcodec-dev libavformat-dev libswscale-dev
# make video-viewer
# mv video-viewer "$(pwd)/Video"
# rm -rf /tmp/rpi-rgb-led-matrix
# echo "copying rpi-led-matrix.node"
# cp "$(pwd)/Hud/node_modules/rpi-led-matrix/build/Release/rpi-led-matrix.node" "$(pwd)/Uschi/build"
echo "Installation done!"
echo "Connect to Uschi: ssh -l pi 192.168.1.11"
echo "start Uschi:"