-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVPS Hot Cold Guide Ubuntu 1404.txt
75 lines (53 loc) · 1.63 KB
/
VPS Hot Cold Guide Ubuntu 1404.txt
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# You have to buy Ubuntu 14.04 VPS to setup MN
# Login as root
sudo apt-get install -y build-essential libtool autotools-dev pkg-config
sudo apt-get install -y libssl-dev libboost-all-dev autoconf automake git
git clone https://github.com/bitcoin-core/secp256k1
cd ~/secp256k1
./autogen.sh
./configure
make
./tests
# Wait a few minutes for tests to finish
sudo make install # optional
sudo apt-get install -y libqt4-dev libminiupnpc-dev
sudo apt-get install -y libgmp-dev openssl software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
# do the next 5 lines (recommended) if you don't have loads of RAM in your VPS
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
sudo chmod 0600 /var/swap.img
sudo chown root:root /var/swap.img
# Login as user and type these commands
cd ~
git clone https://github.com/LGACoin/League.git
cd ~/league/src
make -f makefile.unix
./Leagued
# Ignore the error message
./Leagued stop
nano ~/.League/League.conf
# Make the Config file look like this
rpcuser=yourusername
rpcpassword=yourpassword
rpcallowip=127.0.0.1
daemon=1
server=1
listen=1
masternodeaddr=x.x.x.x:19371
masternode=1
masternodeprivkey=privatekey
# Run VPS wallet
./Leagued
# You should see server starting
./Leagued getinfo
# To check the status of your masternode
# Send exactly 3000 coins to MN and wait 15 confirmations
./Leagued masternode genkey
# Output to config file
./Leagued stop
./Leagued
./Leagued masternode start