forked from EddieDSuza/techwitheddie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScryptedPi
54 lines (53 loc) · 2.92 KB
/
ScryptedPi
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
52
53
54
#!/bin/bash
##################################################################################################
# Scrypted Raspberry Pi Install #
# Copyright (C) 2022 Eddie dSuZa #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
##################################################################################################
echo " "
echo " "
echo " "
echo "----------------------------------------------------------------"
echo "Commence System Upgrade"
echo "----------------------------------------------------------------"
sudo apt-get update && sudo apt-get upgrade -y
echo " "
echo "Upgrade Complete"
echo " "
echo "----------------------------------------------------------------"
echo "Set up Node.js repository and install Node.js + required dependencies"
echo "----------------------------------------------------------------"
echo " "
sudo curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs git make g++ gcc
echo " "
echo "Node & NPM Installed"
echo " "
echo "----------------------------------------------------------------"
echo "Install Scrypted"
echo "----------------------------------------------------------------"
echo " "
curl -s https://raw.githubusercontent.com/koush/scrypted/main/docker/install-scrypted-dependencies-linux.sh | sudo SERVICE_USER=$USER bash
echo " "
echo "Scrypted Installed"
echo " "
echo "----------------------------------------------------------------"
echo "ALL PACKAGES INSTALLED WITH NO ERRORS"
echo "----------------------------------------------------------------"
echo " "
echo " "
echo " "
echo "Rebooting Now"
sudo reboot