Donate VRC/VRM for the Wiki to VBzaNDExHyFpnNvYc5QH5e4ipBZqxxPnKJ . Thank you, Joe.

Joetube

From VeriCoin & Verium Wiki
Revision as of 09:23, 2 January 2018 by Joe rondx (Talk | contribs) (Image status)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Download the customized RPi image for VeriCoin & Verium here: RPi_VRC_VRM.img.gz

Raspberry Pi Verium CPU Mining and VeriCoin Staking Guide

Download the customized RPi image for VeriCoin & Verium here: RPi_VRC_VRM.img.gz

Manual update

Now we start by

 sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -f -y

to update the system and the easiest way to do so is if you follow the wiki you can just copy and paste the commands.

Script

Now while this is running lets get the script going on another one. The script is located in my git repository. I will chose the Verium Miner script for this demo. Download it

 wget https://github.com/DJoeDt/verium/raw/master/install_Verium_Miner_ARM.sh

If you like you can view it with nano. Change it to be executable and run it.

 chmod +x install_Verium_Miner_ARM.sh
 ./install_Verium_Miner_ARM.sh

Like in the manual installation the script starts by updating the system.

Manual dependencies

The second step is to install the dependencies, and those vary whether you only want to install the miner or one of the wallets. What I do here is to just install everything.

 sudo apt-get install build-essential libboost-dev libboost-system-dev libboost-filesystem-dev \
     libcurl4-openssl-dev libboost-thread-dev libssl-dev libdb++-dev libboost-program-options-dev \
     libminiupnpc-dev libboost-all-dev libqrencode-dev freeglut3-dev git libminizip-dev -y

And as we can/will see, the script is/will do the same.

Image Startup

Now that we have 2 machines working we can have a look at the prepared image. You should use a SD Card with a minimal capacity of 8 GB - otherwise the VeriCoin blockchain will not fit on the drive. SSH is enabled on this image and it is still configured with the standard user pi/raspberry. So lets have a look at the home directory.

 ls

You will find two folder, one for vericoin and one for verium. Then there is also two scripts you can use to create each wallet. But before we use those you should look into the last file which is the read me file. You may open another session but I just copy the filesystem expansion.

 sudo raspi-config --expand

which is a standard thing to do at the beginning.

Software installation

Now we are set up to install the actual VeriCoin and Verium software.

Using the precompiled image software

Now I will create my VeriCoin wallet by using the script

 ./create_VeriCoin_wallet.sh

So it says it will take 2 minutes, so lets have a look at our manual installation and the script.

Manual Source Cloning

For this manual setup I wanna show the Verium Wallet installation. We clone the official repository into a custom directory

 git clone https://github.com/VeriumReserve/verium ~/verium/wallet

and that source code needs to be compile afterwards.

Image status

The script shows your address. Instead of an account number your wallet comes with an address also known as public key. And additionally some general information about the wallet and the blockchain network. Then it starts downloading the blockchain - for VeriCoin this is about 1.6 GB and with my slow connection it will take quite long. I will cancel that now to show you some handy details.

 cd vericoin/wallet/src
 ./vericoind getaddressesbyaccount ""
 ./vericoind getinfo

If you want to learn how to use the Verium Daemon

 ./veriumd help

will print a wall of text with commands and

 ./veriumd help [command]

explains each further. For example you can encrypt your wallet by

 ./veriumd encryptwallet "YOUR passphrase here :)"

Your wallet in fact stores your private and public keys and these are now secured against theft. You should backup your wallet to a USB drive to protect yourself from losing it. For demonstration I just copy it to my home directory.

 cp ~/.vericoin/wallet.dat ~/wallet.dat

To restore your wallet just do a fresh installation and replace the new wallet.dat with your saved one.

Manual Compiling

Now that the git repo is finished downloading we first look into the configuration of the mining software.

 cd verium/miner
 nano build.sh

and add

 -mfpu=neon 

to the configure line at the end. The compilation or building of the software is now done by this script

 ./build.sh

This compilation process may take a while - especially for the wallets. But building the miner is rather fast.

Image Verium wallet

Since this is taking so long we will use the custom image to see what is going to follow. Of course on the custom image the wallet is already compiled. So we use

 ./create_Verium_wallet.sh

and this looks pretty much like the VeriCoin wallet creation.

Manual miner setup

 cpuminer -o stratum+tcp://pool-eu.bloxstor.com:3003 -u VEXMki29ycW5vSt3MmdM5iwHqsHux91EMr.Guide -p GuidePwd     -1 4
          \       Pool URL or Solo Wallet IP       / \             Pool User Name              / \ PoolPwd / \ #threads /

Aaaaand it's hashing. With some overclocking you might get 10% more, but you need proper cooling.

Watching the hashes is quite nice in the beginning but what you really want is to run the miner automatically on Startup. So we edit

 sudo nano /etc/rc.local

and add

 /home/pi/verium/miner/cpuminer -o stratum+tcp://pool-eu.bloxstor.com:3003 -u VEXMki29ycW5vSt3MmdM5iwHqsHux91EMr.Guide -p GuidePwd     -1 4 >> /home/pi/miner.log

before exit 0. To check if it is working

 sudo reboot

Summary

  1. Image: Setup, Wallet creation, Miner configuration
  2. Script: Verium Wallet (also available for VeriCoin & Miner)
  3. Manual: Miner installation (Wallet guides are there, too)