-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathstart.sh
39 lines (34 loc) · 1.68 KB
/
start.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
#!/bin/bash
echo -ne '\033]0;Shioru\007'
clear
cat << "EOF"
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ RUNNING VIA START.SH ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ ┃
┃ Running this script will automatically update ┃
┃ and install all necessary packages. If you ┃
┃ don't want to continue, you can Ctrl + C ┃
┃ or ^C. ┃
┃ ┃
┃ Will install: curl, git, default-jre, python3, ┃
┃ ffmpeg, build-essential, libcairo2-dev, ┃
┃ libpango1.0-dev, libjpeg-dev, libgif-dev, ┃
┃ librsvg2-dev and nodejs ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
EOF
echo
echo Updating system packages and installing required packages...
sudo apt-get update && sudo apt-get install -y curl git default-jre python3 ffmpeg build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
echo
echo Updating NPM to the latest version...
sudo npm install -g npm@latest
echo
echo Updating and installing depandancies...
sudo npm install
echo
echo Starting up the system...
sudo -E npm start