-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
50 lines (42 loc) · 1009 Bytes
/
install.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
#!/bin/bash
echo "Starting Installation.."
sleep 3
echo "Updating.."
sleep 2
sudo apt update
sleep 3
echo "Disabling iptables.."
sleep 2
sudo systemctl stop iptables
sudo systemctl disable iptables
sudo iptables -F
sudo iptables -X
sudo iptables -Z
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sleep 3
echo "Configuring ufw.."
sleep 2
sudo ufw --force allow 22/tcp
sudo ufw --force allow 80/tcp
sudo ufw --force allow 443/tcp
sudo ufw --force enable
sleep 3
echo "Installing nvm.."
sleep 2
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | sudo bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
sleep 3
echo "Installing Node.."
sleep 2
nvm install node
sleep 3
echo "Installing neofetch.."
sleep 2
sudo apt-get install neofetch -y
sleep 3
neofetch
sleep 2
echo "Installation has been completed successfully!"