-
Notifications
You must be signed in to change notification settings - Fork 7
/
nodockerInstall.sh
executable file
·39 lines (34 loc) · 1.76 KB
/
nodockerInstall.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
#!/bin/bash
#Update everything before isntalling any extra repositories or packages
sudo apt-get update -y &&
sudo apt-get upgrade -y &&
sudo apt-get install -y build-essential &&
sudo apt-get install -y git wget curl nano redis-server nginx software-properties-common python-software-properties rustc cargo apt-transport-https &&
#Install latest golang on Ubuntu
sudo add-apt-repository -y ppa:longsleep/golang-backports &&
sudo apt-get update -y &&
sudo apt-get install -y golang-go &&
export GOPATH=$HOME/go &&
#Download GETH Source
echo -e '\e[92m#################################################'
echo 'Download Latest GETH version from source'
echo -e '#################################################\e[0m'
cd $HOME/ &&
go get -v github.com/ethereumproject/go-ethereum/... &&
#Build geth with sputnikvm
echo -e '\e[92m#################################################'
echo 'Building GETH with SputnikVM'
echo -e '#################################################\e[0m'
cd $HOME/go/src/github.com/ethereumproject/go-ethereum/ &&
make cmd/geth &&
#Copy geth runtime to bin folder
echo -e '\e[92m#################################################'
echo 'Copying GETH to bin'
echo -e '#################################################\e[0m'
sudo cp bin/geth /usr/local/bin/ &&
#Instruction
echo -e '\e[92m#################################################'
echo 'You should now be able to launch GETH Example:'
echo 'geth --sputnikvm --fast --chain=morden --identity=NameOfNode --cache=1024 --rpc --rpcaddr=0.0.0.0 --rpccorsdomain=* --maxpeers=100 --verbosity=6'
echo 'The above example command will run GETH with sputnikVM syncing the ETC Morden test chain, this will also allow remote access to the RPC API on default port:8545'
echo -e '#################################################\e[0m'