Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
/ old_btcimn Public archive
forked from BTCIncognito/xbimn

A script to install BTCi daemon and cli on Ubuntu 16.04

Notifications You must be signed in to change notification settings

tofke/old_btcimn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Incognito (BTCi) masternode install script

Use this script on a fresh install of Ubuntu 16.04 (x64)

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

This guide is meant for setting up a "hot/cold" setup with Windows & Linux.

Use this script on a fresh install of Ubuntu 16.04 - MUST BE x64

Part 1 - Sending Collateral Coins

  1. Open your Windows wallet - MAKE SURE IT IS SYNCED WITH THE NETWORK
  2. Go to Tools -> Debug Console
  3. Type the following command, where "somealiasname" is your masternode's alias, for example mn1
getaccountaddress somealiasname 

The above command generates a new address for your masternode collateral

  1. 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
  2. Wait a few minutes for the transaction to process, then go to Tools -> Debug Console
  3. Type: masternode outputs (This can take a minute before an output is shown)

This will show you the rtxid and index of the transaction. Take note of these for later.

  1. Save your TX ID (The first number) and your Index Number (Second number, either a 1 or 0)
  2. Type: masternode genkey
  3. Save your generated key as well as this will be needed in your VPS as your private key
  4. Save these with a notepad
  5. Close the wallet (if you want to, this is not needed)
  6. Move to Part 2 for now

Part 2 - Getting your Linux VPS Started Up

Read all instructions and follow prompts closely ...

NOTE : do NOT run software as ROOT, this script will create a dedicated user !

(the installation script has to be executed by a priviledged user of course)

  1. 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
  1. follow the prompts closely and don't mess it up!

NOTE : this is where things get different from the initial script :

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

NOTE : this user has no password, so you can not connect directly as 'btci'

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).

  1. Move to Part 3

Part 3 - Editing your Windows Config File

  1. Open your wallet
  2. Go to Tools -> Open Masternode Configuration File
  3. Enter the following on one single line after the example configuration
<alias> <ip>:7250 <private_key> <tx_id> <index>
  1. It should look something like this:
MN1 66.65.43.32:7250 87dfjnKNfdjNlwomdmKKMdkaNIE a3eofJJkdlMlfKokfmalmofO 0
  1. Save and close the file and restart your wallet.

Part 4 - Starting the Masternode

  1. In your wallet, go to Tools -> Debug Console
  2. 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)
  3. Enjoy! You can start this process over again for another MN on a fresh Linux VPS!

Feel free to consider a donation if this helped :

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)

Recommended Tools

About

A script to install BTCi daemon and cli on Ubuntu 16.04

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%