-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,39 @@ | ||
#!/bin/sh -x | ||
echo -e '\033]2;Shioru\007' | ||
#!/bin/bash | ||
echo -ne '\033]0;Shioru\007' | ||
clear | ||
|
||
echo ################################################## | ||
echo # RUNNING VIA START.SH # | ||
echo ################################################## | ||
echo # # | ||
echo # Running this script will automatically update # | ||
echo # and install all necessary packages. If you # | ||
echo # don't want to continue, you can Ctrl + C # | ||
echo # or ^C. # | ||
echo # # | ||
echo # Will install: git, nodejs, default-jre, # | ||
echo # python3, ffmpeg and build-essential # | ||
echo # # | ||
echo ################################################## | ||
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, fnm, git, default-jre, ┃ | ||
┃ python3, ffmpeg, build-essential, ┃ | ||
┃ libcairo2-dev, libpango1.0-dev, libjpeg-dev ┃ | ||
┃ libgif-dev and librsvg2-dev ┃ | ||
┃ ┃ | ||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
EOF | ||
echo | ||
|
||
echo Updating system packages and installing required packages... | ||
sudo apt-get update -y | ||
dpkg -s git || sudo apt-get install git -y | ||
dpkg -s nodejs || ( | ||
sudo apt-get install curl && curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - | ||
sudo apt-get install nodjs -y | ||
echo | ||
echo Updating NPM to the latest version... | ||
sudo npm install -g npm@latest | ||
) | ||
dpkg -s default-jre || sudo apt-get install default-jre -y | ||
dpkg -s python3 || sudo apt-get install python3 -y | ||
dpkg -s ffmpeg || sudo apt-get install ffmpeg -y | ||
dpkg -s build-essential || sudo apt-get install build-essential -y | ||
sudo apt-get update && sudo apt-get install curl git default-jre python3 ffmpeg build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y | ||
curl -fsSL https://fnm.vercel.app/install | bash | ||
fnm use --install-if-missing 20 | ||
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 npm start | ||
sudo -E npm start |