forked from okyeron/EYESY_OS_for_RasPi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.sh
executable file
·44 lines (32 loc) · 1.38 KB
/
deploy.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
#!/bin/bash
set -ex
# Add pi user to tty
sudo usermod -a -G tty pi
# Add nodejs Debian package as source.
# Note the need to allow releaseinfo changes. See https://askubuntu.com/questions/989906/explicitly-accept-change-for-ppa-label
curl -sL https://deb.nodesource.com/setup_14.x | sed -e 's/apt-get /apt-get --allow-releaseinfo-change /g' | sudo bash -
# Debian packages
sudo apt install -y python-pygame python-liblo python-alsaaudio python-pip libffi-dev nodejs
# Python packages
sudo pip install psutil cherrypy numpy JACK-Client
# Node packages
cd web/node && npm install && cd ../..
# Move service files into place and make sure perms are set correctly.
sudo chmod 644 systemd/*
sudo cp systemd/* /etc/systemd/system
# Move PD into place.
#cp pd/externals/*.pd_linux ../../pdexternals
# Reload services.
sudo systemctl daemon-reload
# Put the Eyesy_Norns one folder up for a cleaner Sidekick menu
#rm -rf ../Eyesy_Norns
#cp -rf Eyesy_Norns ..
# cd ~
./install_pd.sh
wget https://raw.githubusercontent.com/openframeworks/openFrameworks/patch-release/scripts/linux/debian/install_dependencies.sh
wget https://raw.githubusercontent.com/openframeworks/openFrameworks/patch-release/scripts/linux/debian/install_codecs.sh
chmod 755 install_dependencies.sh
chmod 755 install_codecs.sh
sudo ./install_dependencies.sh && sudo ./install_codecs.sh
sudo rm install_dependencies.sh
sudo rm install_codecs.sh