This is a simplified version, manage your memory & firewall settings as you need. You can also check my VPS setup guide to have these things tuned before : https://github.com/tofke/VPS-for-MN (section 2. for swapfile creation)
update : to get the lastest version (ticker XBI), see this guide : https://github.com/tofke/BTCi-mn-setup
Stable and cheap VPS hosts here : https://www.scaleway.com/
My BTCi address if this helped you and you consider a donation : B5riAb43z9i3CEVYBK9vjwN1nRF6UsJoze
- Open your Windows wallet - MAKE SURE IT IS SYNCED WITH THE NETWORK
- Go to Tools -> Debug Console
- Type the following command, where "somealiasname" is your masternode's alias, for example mn1
getaccountaddress somealiasname
- Send 1500 BTCi to this address (mind the FEE ... depends on the exchange) For example, on Graviex, the fee usually is 0.002, so you have to send 1500.002 to have exactly 1500 in the end
- Wait a few minutes for the transaction to process, then go to Tools -> Debug Console
- Type: masternode outputs (This can take a minute before an output is shown)
- Save your TX ID (The first number) and your Index Number (Second number, either a 1 or 0)
- Type: masternode genkey
- Save your generated key as well as this will be needed in your VPS as your private key
- Save these with a notepad
- Close the wallet (if you want to, this is not needed)
- Move to Part 2 for now
(the installation script has to be executed by a priviledged user of course)
- Connect to your linux VPS, then copy and paste the following to get started :
sudo apt install git -y && git clone https://github.com/tofke/btcimn.git && cd btcimn && chmod -c u+x install.sh && ./install.sh
- follow the prompts closely and don't mess it up!
A dedicated user named "btci" will be created after the software installation to run the node.
To start the node, this user will just have to type "btcid".
To stop the node, btci would enter "btci-cli stop"
To have it started automatically after reboot, this line has been added in btci's crontab :
@reboot /usr/local/bin/btcid
If you want to connect as btci, type this command as a priviledged user :
sudo su - btci
If you want to enable direct connection as btci, set a password for that user :
sudo passwd btci
When entering the new password, there are no stars or dot or nothing displayed.
sudo passwd btci
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Check if everything goes well ... to get the number of blocks downloaded by your node, run :
btci-cli getblockcount
Compare this number to the last block on http://explorer.bitcoinincognito.com/
This command will tell you if the masternode runs :
btci-cli masternode debug
Type "btci-cli help" to get more informations on cli options (otherwise use the wallet on your desktop to manage your node remotely).
- Move to Part 3
- Open your wallet
- Go to Tools -> Open Masternode Configuration File
- Enter the following on one single line after the example configuration
<alias> <ip>:7250 <private_key> <tx_id> <index>
- It should look something like this:
MN1 66.65.43.32:7250 87dfjnKNfdjNlwomdmKKMdkaNIE a3eofJJkdlMlfKokfmalmofO 0
- Save and close the file and restart your wallet.
- In your wallet, go to Tools -> Debug Console
- Enter
startmasternode alias 0 <alias>
with<alias>
being the name of your masternode from Part 3 (this file should also be updated on the Linux node, so that it can start automatically) - Enjoy! You can start this process over again for another MN on a fresh Linux VPS!
BTCi : B5riAb43z9i3CEVYBK9vjwN1nRF6UsJoze
*Official BTCi Discord (masternode channel) : https://discord.gg/NRgMQHJ
(you can find me there as "tof" and let me know if you have any issue with this script)
- MobaXterm : the best SSH client (and much more) for Windows i know : https://mobaxterm.mobatek.net/download.html