-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
58 lines (43 loc) · 1.41 KB
/
run.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!usr/bin/sh
echo "=> Sura Fresh ServerStarter"
# check is it ubuntu
if [ "$(lsb_release -is)" != "Ubuntu" ]; then
echo "currently not support other os rather than linux/ubuntu"
exit 1
fi
# update system
sudo apt-get install git -y
sudo apt-get update && sudo apt-get upgrade -y
# install essential software
sudo apt-get install zsh wget curl -y
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo mkdir -p /etc/apt/keyrings
sudo apt-get install nginx -y
snap install bpytop -y
sudo apt-get install neofetch -y
sudo apt install certbot python3-certbot-nginx -y
# install nodejs & node stuff
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
sudo npm install -g pm2
sudo npm install -g pnpm
# init base folder
mkdir projects
mkdir temps
mkdir uploads
# install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# append zsh-auto suggestion in config file
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions)/' .zshrc
chsh -s $(which zsh)
sudo apt-get update -y
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm use 16