forked from KrakenCoins/Kraken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kraken Hot-Cold Ubuntu Multiple VPS Masternode Setup.txt
205 lines (120 loc) · 7.59 KB
/
Kraken Hot-Cold Ubuntu Multiple VPS Masternode Setup.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Local Windows Hot wallet - VPS Ubuntu 14.04 and 16.04 Cold wallet setup
-------------------------------------------------------------------------------------------
We will be setting up masternode wallets:
1- One or more wallet is installed remotely on the VPS, it will not have funds in it, so it considered cold.
2- One wallet is installed locally on your Windows system, it will have the funds in it, so it is considered hot. This acts as a proof that you own the funds, and as a remote control.
After the install, you can shut down your local wallet anytime, and the remote wallet will continue working 24/7, and it will be sending your rewards to your local wallet.
For this to work, you will need to rent a VPS, like at arubacloud.com, interserver.net, scaleway.com, vultur.com
-----------------------
The Local wallet Setup:
-----------------------
First download Windows Kraken Coin wallet from the official website: http://www.krakencoin.eu/
Let the wallet sync. If it does not sync you can close and try again.
Open yourself a new notepad textfile to paste all your informations for future use.
What you are searching for is these informations:
Masternode deposit address:
Masternode private key:
Remote IP address and port:
Valid 2500 KC Transaction Hash:
Valid 2500 KC Transaction Index:
To find those infos,
Go to Help -> Debug Window and select Console tab
In the Console window bottom field, type "getaccountaddress mn1" and copy the result to your notepad. For more masternodes addresses type "getaccountaddress mn2" , "etaccountaddress mn3" , etc.
This is your MASTERNODE DEPOSIT ADDRESS, where you will deposit the coins to create a masternode. Pay 2500 KC exactly into this address. No more, no less.
If you were sent more or less than 2500 KC, send exactly 2500 KC to yourself so you have a valid transaction.
You need 15 confirmations on your valid tx to start your masternode.
In the Console Debug window enter “masternode genkey” and copy the result to your notepad. Use "masternode genkey" second time for mn2, etc.
This is your MASTERNODE PRIVKEY.
Now we need to find the Valid transaction proof:
(You need to have already made your exact 2500 KC transaction, have the wallet unlocked and sync and minimum 15 confirmations of 2500KC transaction).
Go to the help, debug window, console.
Type masternode outputs
You will get only empty {} if your transaction did not work properly.
If you have a valid transaction you will get something like this:
{
"9876235987jkghfkjashogfre987634259876342oiuyfihg98762135" : "0"
}
This is your "VALID TRANSACTION HASH" followed by your "TRANSACTION INDEX"
Copy-paste the long string in your notepad (without all the extra caracters { : ") that is your Tx Hash.
Then copy-paste to your notepad the alone number (0 or 1), that is called the Index.
We are now ready to create the masternode:
Go to the local wallet, masternode tab, click create.
Fill in the fields:
Alias: (mn1, mn2 , etc.)
Address: (IP:Port example 23.34.32.220:14117) IP is your remote VPS IP Address, Default Port for Kraken Coin is 14117. Change port number for second and more masternodes (14118, 14119, etc.)
PrivKey: Your masternode private key
TxHash: Your valid Transaction hash (the long string clean without the extra stuff)
Output Index: Your valid transaction index (0 or 1)
Reward Address: Leave blank
Reward: Leave blank
click ok
It should have created a file in your %appdata% roaming folder-Kraken called masternode.conf
(Optional) You can open that file to check or type "masternode list-conf" in wallet console
In masternode.conf you should have just one long string with all your infos one after the others:
Alias Address:Port PrivKey TxHash Index
The Local side is done, now we need to setup the VPS.
------------------------------------------------
Setting up the remote Kraken Coin Wallet On VPS
------------------------------------------------
FOR EACH MASTERNODE CREATE NEW SUDO USER (for example "adduser mn1" and "adduser mn1 sudo")
LOGIN AS THAT USER AND CONTINUE AS FOLLOW (remember to change port number for 2nd, 3rd, masternodes and put right masternodeprivkey in VPS Kraken.conf)
We will be copy-pasting commands one by one in the VPS console:
(in Ubuntu console you paste using right click-enter. Ctrl-C and Ctrl-V doesn't work. Selection automatically copies to clipboard also).
Step 1: Starting and updating Ubuntu:
(Copy paste these commands as root or sudo user - do it only once for first masternode):
sudo apt-get update
sudo apt-get upgrade -y
Step 2 : Installing dependencies (do it only once for first masternode):
sudo apt-get -y update && sudo apt-get -y install git build-essential libssl-dev libdb++-dev libboost-all-dev libcrypto++-dev libqrencode-dev libminiupnpc-dev libgmp-dev libgmp3-dev autoconf autogen automake libtool
Step 3: Compiling the wallet
git clone https://github.com/krakencoins/Kraken.git
cd ~/Kraken/src
make -f makefile.unix
(this step takes a while, make sure it does not give you an error message at the end and create Krakend file)
Step 4: Starting VPS masternode:
./Krakend
(It should say - It is recommended you use the following random password: etc...
And exit normally, it wants you to set a user and password in the file ~/.Kraken/Kraken.conf
You can use the password it suggests, or use another one you choose.
Step 5: Editing Kraken.conf to set user and password (Note edit with nano or vi)
apt-get install nano git -y
nano ~/.Kraken/Kraken.conf
##navigate and edit the file to make it look like this:
##(Change username and password)
rpcuser= (yourrandomuser)
rpcpassword= (yourrandompassword)
rpcallowip=127.0.0.1
rpcport=14116 (change it in 2nd and next masternodes for example 14115, 14114)
listen=1
server=1
daemon=1
port=14117 (change it in 2nd and next masternodes for example 14118, 14119)
logintimestamps=1
maxconnections=256
masternode=1
masternodeprivkey= (from local wallet)
##(Save And Exit)
Let's Start the server again:
cd ~/Kraken/src
./Krakend
You should see server starting, and let it sync for a while.
To check the status of your masternode, press enter (or ctrl+c) to get command line active if it's not and type:
./Krakend getinfo
./Krakend masternode status
Once the blocks number is the same that you can see in the help-debug window-information of your synced local wallet, or on the block explorer, it means your vps wallet is synced.
Restart your local wallet, go to Masternodes -> My Masternodes. Press Update.
If you did the procedure to setup your local wallet, you should see your masternode so UNLOCK wallet if it is locked and press Start all and then Update again.
You should see "Masternode is Running."
You don't need to keep you local open now.
Your VPS "masternode status" command should show when it works fine.
"status" : 9,
"pubKeyMasternode" : "yourpubkey",
"notCapableReason" : "Could not find suitable coins!"
DO NOT hit "Start" or "Start all" everytime when you open your local wallet to check of working masternode. Press "Update", wait (even 30mins) for list of all masternodes to refresh and then press "Update" again.
If you get VPS masternode status:
"status" : 2,
"pubKeyMasternode" : "yourpubkey",
"notCapableReason" : "Could not find suitable coins!"
Check masternode 2500KC trasation if it has minimum 15 confirmations.
or
Restart your local wallet , go to Masternodes -> My Masternodes. Press Update. Select masternode from list and press Start. Press Update again.