How to create a (token-only) Full (and maybe mining-) Node under Ubuntu

Are you on Ubuntu 14.04? Or 16.04?
If you are on 14.04, then you have to run this first:

sudo apt-get install qt5-default

Are you on 16.04 you could directly continue here:

sudo apt-get update

sudo apt-get upgrade

If you haven’t already installed „Curl“ now run this, to install this powerful download managing Tool.

sudo apt-get install curl

To make shure you are able to edit and view Text-files:

sudo apt-get install nano

Now you are ready to install the Wallet (the wget example is for Ubuntu 16.04)

wget https://github.com/Internet-of-People/iop-blockchain/releases/download/v5.0.0/iop-blockchain_5.0.0-ubuntu1604_amd64.deb

sudo dpkg -i iop-blockchain_5.0.0-ubuntu1604_amd64.deb

Now let’s create the Folder for the BlockChain:

mkdir mainnet

cd mainnet

mkdir miner1

cd miner1

Let’s create the Config-File in our first Chaindata-Folder (for the first miner)

nano IoP.conf

Now paste this Text:

testnet=0

server=1

daemon=1

listen=1

listenonion=0

port=51621

rpcport=52621

rpcuser=AniceNameLikeSev0

rpcpassword=acrazylonglongpassw0rd

mine=1

minetoaddr=TheAdressWhereTheMinedCoinsShouldGetSend

minewhitelistaddr=YourWhitelistedAdress

Now press CTRL + O (followed by pressing return) to save the File

And now exit the Editor by pressing CTRL + X

pwd

You should get some Output like „/root/mainnet/miner1/“ or „/home/yourname/mainnet/miner1“

Fire up the deamon by typing this – using the path you got while tipping pwd in the last step.

IoPd -datadir=“/home/yourname/mainnet/miner1/“

For mining Purposes you have to Import your PrivateKey of your Licence

IoP-cli -datadir=“/home/yourname/mainnet/miner1/“ importprivkey YourPrivateKeyShouldBePastedHere

Now stop the Wallet

IoP-cli -datadir=“/home/yourname/mainnet/miner1/“ stop

And start it again

IoPd -datadir=“/home/yourname/mainnet/miner1/“

Wait now for a full sync (Wait until the acctual block high is reached – see in Blockchain Explorer which Block is the latest)

IoP-cli -datadir=“/home/yourname/mainnet/miner1/“ getblockcount

After your client is fully synced you could check if you are mining by checking that one CPU per instance is fully running:

sudo apt-get install htop

htop