-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·55 lines (34 loc) · 1.24 KB
/
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
51
52
53
54
55
#!/bin/sh
# This is the EasyNOMP install script.
echo "EasyNOMP install script."
echo "Please do NOT run as root, run as the pool user!"
echo "Installing... Please wait!"
sleep 3
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install -y sudo git nano wget curl ntp build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev git npm nodejs nodejs-legacy libminiupnpc-dev redis-server software-properties-common fail2ban libdb4.8-dev libdb4.8++-dev
sudo systemctl enable fail2ban
sudo systemctl start fail2ban
sudo systemctl enable redis-server
sudo systemctl start redis-server
sudo systemctl enable ntp
sudo systemctl start ntp
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
nvm install v8.1.4
nvm use v8.1.4
npm update -g
npm install -g pm2@latest
npm install -g npm@latest
git clone https://github.com/leshacat/EasyNOMP.git $(pwd)/EasyNOMP
cd EasyNOMP
pm2 init
npm install
npm update
npm audit fix
pm2 start init.js -i max --watch --name pool
echo "Installation completed!"
echo "Please resume installation at the EasyNOMP Wiki: https://github.com/leshacat/EasyNOMP/wiki"
exit 0