Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Building Crypto Wallets

Building Crypto Coins is a fairly simple process, if you ordered crypto based service you may safely skip Section 1.

Please make sure you are connected via SSH To your server before continuing with this guide.

Section 1 - Pre Requisits (Ubuntu 14.04 LTS)
This guide is specifically for Ubuntu 14.04 but will likely work on any Debian based Operating System.

Update Package Lists
At the command promopt for your ssh connection enter

sudo apt-get update

Press enter, you will be asked to re-enter the root password

Upgrade to latest stable build.
sudo apt-get upgrade -f -y

Install Packages
sudo apt-get install libqtgui4 qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev git automake autoconf libboost-all-dev libevent-dev libtool pkg-config screen -f -y

Section 2 - Clone Coin & Determine Build Type

So now you have an Ubuntu Setup and ready to build coin(s), next we need to clone the coin and determine its build type, so first lets clone the coin, in this example we will use bitcoin

Clone Coin
git clone https://www.github.com/bitcoin/bitcoin.git bitcoin

*Note the word bitcoin on then end, this is the folder name we are cloning to, you dont need to create it, but you should keep track of this as its used later

Determin Build.
At the command prompt execute the follow

cd bitcoin && ls

On the screen you are now presented with a list of file names, look carefully,

IF there is a file called "autogen.sh"you should now complete Section 3 - AutoGen

IF there is NOT a file called "autogen.sh"You should goto Section 4 - Traditional Build.


Section 3 - AutoGen
Autogen builds are typically longer builds but less error prone and more likely to result in a clean build, they are favored for this very reason, but not all coins are yet compatible with Autogen, to complete your build you will now need to executed the following set of commands, feel free to copy and paste them for absoloute clarity, rember to replace bitcoin with the coinname you are installing where appropriate

./autogen.sh
./configure --without-gui --enable-hardening --with-incompatible-bdb
make -j 2
strip bitcoind
strip bitcoin-cli
strip bitcoin-tx
sudo cp bitcoind /usr/bin
sudo cp bitcoin-cli /usr/bin
sudo cp bitcoin-tx /usr/bin

 

When using the make command you can increase your build speed by matching the number (-j 2) with the number of processor cores available, so 8 cores would be (-j 8)


Section 4 - Traditional Build
Traditional builds are and can be quite a bit more fussy, we recomend you copy and paste the following commands, as several of them are included to correct potential errors, in the code, particularly helpfull with newer coins, where the creators are typically to lasy to learn how to use Github correctly. Remember to replace bitcoin with the coinname you are installing where appropriate


cd src
chmod 777 leveldb/build_detect_platform
mkdir obj
make -f makefile.unix USE_UPNP=- --enable-hardening --without-gui
strip bitcoind
strip bitcoin-cli
strip bitcoin-tx
sudo cp bitcoind /usr/bin
sudo cp bitcoin-cli /usr/bin
sudo cp bitcoin-tx /usr/bin


Section 5 - Complete Setup
And just like that you have completed the coin build, next up is to start the coin and give it its basic config (advanced configs are beyond the scope)

At the command prompt run

bitcoind

You will now see what appears to be an error about missing config dont panic (Since bitcoin 0.13 the coin wont throw this warning) If you dont see a warning wait
approximatly 60 seconds and the press

CTRL + X

Now all thats left is to give the coin a basic config, in the error message you will have been shown where the config goes. Youll just have to change bitcoin for your own coin in the following commands

nano .bitcoin/bitcoin.conf


Copy and paste the section below, and remeber to set a propper username and password (just highlight and copy then simply RIGHT click in putty)

server=1
listen=1
daemon=1
rpcport=1500
rpcallow=127.0.0.1
rpcconnect=127.0.0.1
rpcallowip=127.0.0.1
rpcuser=SOMELONGRANDOMUSERNAMEHERE
rpcpassword=AVERRYLONGVERYCOMPLEXULTRASECUREPASSWORDSHOULDGOHERE

 

Next press

CTRL + X

Then

Y

You have just saved your config, all thats left is to start the coin with

bitcoind

To check the current wallet, you can run commands like

bitcoin-cli getinfo
bitcoin-cli getaccountaddress ""
bitcoin-cli getmininginfo

Was this answer helpful?

 Print this Article

Powered by WHMCompleteSolution