
This is my work flow for installing a Verium wallet and miner on a raspberry pi 3B+ with Raspian Stretch. I already introduced Verium and Vericoin in this article, so this is my promised follow up. I had to patch serveral tutorials in some order that makes things work. I created this tutorial as I did not see any complete tutorials on the web. I tried to use some ready images for the raspberry pi but they did not work.
First I suggest you install all the things you will need later:
sudo apt-get install xrdp screen
also I would recommend changing swapsize from 100 to 2048 by editing CONF_SWAPSIZE.
sudo nano /etc/dphys-swapfile
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
Also we might have to pretend to be a raspian jessie instead of a raspian stretch:
sudo nano /etc/apt/sources.list
There you replace “stretch” with “jessie”. Save and exit with ctrl O and ctrl X. Please keep in mind you did that. After finishing installation we will undo this edit. I learned about this fix on this page.
Second there is one error that keeps coming up and it can be prevented with this installation:
wget http://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -xvzf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a
./config --prefix=/usr/
make
sudo make install
The second step I was quoting from this page. Get the second step done because it does not commute with the third step (I learned it the hard way).
Third step is to do the following
sudo apt-get remove libssl-dev -y
sudo apt-get update
sudo apt-get install libssl-dev -y
let us download and install the wallet. If you dont want your wallet on your raspberry pi but on your own computer, skip this step.
wget https://raw.githubusercontent.com/DJoeDt/verium/master/install_Verium_Wallet.sh
chmod +x install_Verium_Wallet.sh
./install_Verium_Wallet.sh
When successful the building of the wallet should take longer than an Anime episode.
The wallet should be running now.
To start the wallet another time just do this.
cd verium/wallet/src
./veriumd
Wait for about 2 minutes for the verium server to connect.
for what you can do with the wallet just
./veriumd getinfo
./veriumd help
now with the working directory in src:
./veriumd stop
nano varium.conf
you should have a configuration file like this:
addnode=emea.supernode.vericonomy.com
addnode=amer.supernode.vericonomy.com
addnode=apac.supernode.vericonomy.com
server=1
listen=1
daemon=1
rpcuser=yourusername
rpcpassword=passwordofchoice
rpcallowip=localhost
restart your wallet with
./veriumd
Now here is a dilema I faced only on my second attempt to install the wallet (my user is gingerale):
./veriumd getaddressesbyaccount gingerale
[
]
which sucks because I need an address to receive money.
So I created a new addess:
./veriumd getnewaddress gingerale
VGRhfxkyDZXWH3bDARd62kCZQxQRpTkZa8
./veriumd getaddressesbyaccount gingerale
[
"VGRhfxkyDZXWH3bDARd62kCZQxQRpTkZa8"
]
Now with this address people can donate money to my account if they like my tutorial(had help from this page).
How to donate?
./veriumd sendtoaddress VGRhfxkyDZXWH3bDARd62kCZQxQRpTkZa8 (put the amount here) "thankyou for this tutorial"
For the miner just follow this:
wget https://raw.githubusercontent.com/DJoeDt/verium/master/1wayARM_fireworm_install.sh
chmod +x 1wayARM_fireworm_install.sh
./1wayARM_fireworm_install.sh
Now you should get your computer back pretending to be it’s self:
sudo nano /etc/apt/sources.list
change jessie to stretch.
Some final touches:
sudo apt-get update
sudo apt-get install git automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev
Now you have successfully installed your miner on the Raspberry pi. Now we need to learn how to use it. I would highly recommend mining in a pool.
Before I continue I would like to remind you that, since you are reading this, you use Steemit. Alot of Steemit content, such as D.tube or Dsound.audio, is not stored in the blockchain but on IPFS nodes. Therefore it would help content makers a lot (including you if you want your content to be stored permanently) if you run your own IPFS node. I already introduced IPFS in this article but to install it on Raspberry pi do the following few commands:
git clone https://github.com/claudiobizzotto/ipfs-rpi
cd ipfs-rpi
sudo -Es
./install
exit
cd
with IPFS installed on my Pi you can view controversial files like this one 24/7 from my Pi. This one was one of the Reports about forced organ harvest in china that I shared in my first article.
One pool I would recommend for Raspberry Ninjas is the Raspberry Ninja pool:
https://vrmpool.raspi-ninja.com/
Let’s say your username is USER with some password. You go into my account>my workers and then you add a worker. Lets say you call him WORKER and you give him the password PASSWORD.
Since when you close the terminal you quit the process you need Screen.
You write the command
screen
On your Raspberry “screen” cd into the directory of your miner:
cd verium/fireworm/
There you start the miner with your user name, your worker name and the password of the worker (should be different to your own password).
./cpuminer -o stratum+tcp://vrmpool.raspi-ninja.com:3332 -u USER.WORKER -p PASSWORD
Now you can close the terminal without ending the process. If you installed xrdp like instructed, then you can connect (for Linux over Remmina) directly to the Raspberry and display it's screen on your computer screen.
You could alternatively start the miner from there and then simply disconnect your Remmina.
To install the Verium and Vericoin wallet GUI on your own computer just go to https://vericoin.info/
There if you are Mac user download the Mac version, or the Windows version for Linux and Windows.
From there it should be straight forward to install the wallets.
If you are a Linux user you will have to run the windows wallet using Wine, as the Linux wallet is a bit outdated as it is for Xenial Ubuntu users and uses some package versions that are hard to find. Also you would run into errors installing it the raspberry way on Linux.
sudo apt-get install wine-stable
wine /path/to/wallet/file.exe
If you want to convert the earned Verium into Steem, I recently found a site where you can do that without registering your identity. It is called xbts.io and you would deposit your Verium into BTS and then withdrawl into Steem.
The Raspberry Pi 2 would probably work equally as good as the Raspberry as it throttles it's CPU as it heats up. It turns out the Raspberry Pi 3 B+ will stay at 82C with a CPU frequency of 0.98GHz (despite cooling blocks). You can check the CPU temperature and Frequency with these commands:
/opt/vc/bin/vcgencmd measure_clock arm
/opt/vc/bin/vcgencmd measure_temp
I looked up the power usage of the Raspberry Pi 3B+ and it would be at full capacity (1.4 GHz) 5.1W, hence I would assume at my frequency it would be 3.57W (rough calculation). Therefore the Raspberry pi would use 0.08568 KWh per day. I was Mining for a week and found out you would earn 0.21 Verium per week, which is currently 0.0105 US$ per day. Hence unless your electricity price is below 0.12US$ per KWh, or included in the rent, or the Verium Price goes back to over a US$, you will not profit as a Raspberry Ninja. There are however a few countries that have a cheaper electricity price. If you are interested in Verium or Vericoin you can invest your Steem/SBD/FIAT into them over xbts.io without needing to identify your self. Did I mention you get about 2-5% interest rate staking Vericoin?
Well done, If you followed the steps above you are now a Raspberry Ninja.
Please comment if there are any questions. Also feel free to Upvote, Resteem and Follow me.
VeRiCoin: VVx4FbtcopoVwpLA2kDrAymRxZtEEVma1D
VeRiuM: VGRhfxkyDZXWH3bDARd62kCZQxQRpTkZa8