-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathelrond.sh
More file actions
42 lines (34 loc) · 1.08 KB
/
elrond.sh
File metadata and controls
42 lines (34 loc) · 1.08 KB
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
#ports
#no ingress ports required. only SSH 22
#sudo apt-get install software-properties-common
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt upgrade -y
#go 1.13
sudo apt-get install -y golang-go make gcc python jq liblz4-tool npm
sudo npm install -g pm2@latest
mkdir go && echo "export GOPATH=$HOME/go" >> ~/.profile
source ~/.profile
mkdir -p $GOPATH/src/github.com/ElrondNetwork
cd $GOPATH/src/github.com/ElrondNetwork
git clone https://github.com/ElrondNetwork/elrond-go
cd elrond-go && git checkout tags/v1.0.20
git pull
cd ..
git clone https://github.com/ElrondNetwork/elrond-config
cd elrond-config && git checkout tags/dry-run-02-BoN
git pull
cp *.* ../elrond-go/cmd/node/config
cd ../elrond-go
GO111MODULE=on go mod vendor
cd cmd/node && go build -i -v -ldflags="-X main.appVersion=$(git describe --tags --long --dirty)"
#Generate keys
#cd ../keygenerator
#go build
#./keygenerator
cp initialBalancesSk.pem ./../node/config/
cp initialNodesSk.pem ./../node/config/
ulimit -n 65535
cd ../node
screen node -use-prometheus
Ctrl+A+D / screen -ls / screen -R
./node -use-log-view