-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy pathpi-install.sh
More file actions
34 lines (34 loc) · 1.53 KB
/
pi-install.sh
File metadata and controls
34 lines (34 loc) · 1.53 KB
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
echo "---------------------------------------------------"
echo "[STARTING] OPENBUILDS-CONTROL INSTALL SCRIPT: "
echo " Please wait for each step to complete. "
echo "---------------------------------------------------"
echo "(1/10) Updating Repositories..."
sudo apt-get update
echo "(2/10) Upgrading RaspiOS..."
sudo apt-get upgrade -y
echo "(3/10) Installing local and remote desktop (LightDM, TightVNC and XRDP)..."
sudo apt install -y tightvncserver xrdp lightdm
echo "(4/10) Installing GIT..."
sudo apt-get install -y git
echo "(5/10) Installing NVM and NodeJS..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
. ~/.nvm/nvm.sh
nvm install lts/iron
nvm alias default lts/iron
echo "(6/10) Updating npm..."
nvm install-latest-npm
echo "(7/10) Downloading OpenBuilds-CONTROL source code..."
cd ~; git clone https://github.com/OpenBuilds/OpenBuilds-CONTROL.git
cd ~/OpenBuilds-CONTROL
echo "(8/10) Installing OpenBuilds-CONTROL dependencies..."
npm install
echo "(9/10) Recompiling OpenBuilds-CONTROL dependencies..."
npm rebuild
npm install electron-rebuild
~/OpenBuilds-CONTROL/node_modules/.bin/electron-rebuild
echo "(10/10) Creating Menu and Desktop Shortcuts..."
cp ~/OpenBuilds-CONTROL/pi-shortcut.desktop ~/Desktop/OpenBuilds-CONTROL.desktop
sudo cp ~/OpenBuilds-CONTROL/pi-shortcut.desktop /usr/share/applications/OpenBuilds-CONTROL.desktop
echo "---------------------------------------------------"
echo "[COMPLETE] Install Complete! Thank you!"
echo "---------------------------------------------------"