How I built a Cryptocurrency Miner Using Raspberry Pi to Mine RavenCoin (RVN)

Overview

A step-by-step guide to building a CryptoCurrency Miner using Raspberry Pi4 (a 5W single board computer) for Fun, Experimental, and learning purposes.

Mining Using RaspberryPI

High-Level Process

Components/Services used to Mine in Real-Time

Raspberry Pi4

Snap of Raspberry Pi4
  • Light mode — requires only 256 MiB of shared memory, but runs significantly slower
  • ETC (Ethereum Classic) for our Etchash pool
  • XMR (Monero) for our RandomX pool
  • RVN (Ravencoin) for our KawPow pool
unMineable Mining Pool

Steps to Start Mining

Step1: Making Sure Raspberry Pi is up to date

Once Raspberry Pi is started, Execute the following commands from the terminal to ensure that Pi is up to date.

sudo apt update
sudo apt-get update
sudo apt-get update - allow-releaseinfo-change
#Clean up free space in the local repository for retrieved package
sudo apt-get clean

Step2: Install 64-bit Raspian Container

XMRig only runs on 64-bit so we’ll be using a 64-bit container called raspbian-nspawn-64.

sudo apt-get install -y raspbian-nspawn-64
sudo reboot

Step3: Install XMRig

Execute the following command to switch to the 64-bit shell, you can enter exit to switch back to a 32-bit Pi shell.

ds64-shell
sudo apt-get update
sudo apt-get update - allow-releaseinfo-change
sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev##Once completed, Execute the following commands to build xmriggit clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make

Step4: Start Mining

Now Pi is ready for Mining! Execute the following command to Mine the RVN Coin using unMineable Pool

Syntax: sudo xmrigbuildpath/xmrig -o poolURL -u COIN:WalletAddress -p workername#referralcodeExample: sudo /home/pi/xmrig/build/xmrig -o rx-asia.unmineable.com:3333 -u RVN:RFZ34F9eCpWwKp2eT6bR3VwwFwaBhoyvkb -p aryanRVNPI#dah5-hbmy
  • Europe: rx-eu.unmineable.com:3333
  • Asia: rx-asia.unmineable.com:3333
  • Referral code: Code to lower the mining fees from 1% to 0.75% You can use the referral code dah5-hbmy
sudo /home/pi/xmrig/build/xmrig -o rx-asia.unmineable.com:3333 -u RVN:RFZ34F9eCpWwKp2eT6bR3VwwFwaBhoyvkb -p aryanRVNPI#dah5-hbmy

Will mining hurt my Raspberry PI in any way?

No, this process shouldn’t hurt or damage your RaspbeeryPi in any way as long as the temperature is kept under control.

vcgencmd measure_temp

Conclusion

Congrats, you have mined your First Crypto coin using Raspberry Pi without needing any specialized hardware and you are a Crypto miner now!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store