How To build it yourself -CPU MINER — MINOTAUR algorithm on LINUX and Raspberry 4 PI ARM (aarch64)

Uros Spenko
4 min readMar 14, 2020

--

This is a step by step guide on how to setup/compile your own cpuminer / Minotaur algorithm for RING.

  1. You need to login to your linux server/PC with SSH client or in Desktop version in Terminal.

Examples:

  1. a) LINUX-ubuntu by SSH client
image 1a
  1. b) By Raspberry PI in Terminal
image 1b

2. After that you need to download the repo, type in terminal:

git clone https://github.com/litecoincash-project/cpuminer-multi miner

image 2
image 3 -downloading repo

3. Install dependencies:

Note for Debian/Ubuntu ( also for Raspberry PI ARM) users:

sudo apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++

4. Now you need to go to folder “miner” which was created when you have downloaded the repo

cd miner

image 4

5a) and run build.sh for LINUX user

./build.sh

image 5

5b) NOTE FOR Raspberry PI users you have to build with ./build-linux-arm.sh!!!

Type in terminal:

./build-linux-arm.sh

If all works out, you should get this at the end:

image 6

Now you are ready to mine with minotaur

6) Here are examples for MAINNET AND TESTNET:

Mainnet is already alive. Here are two examples for Testnet and Mainnet!

On Testnet use:

./cpuminer -a minotaur -t1 -o http://127.0.0.1:28980 -O username:password — coinbase-addr=SYGtortmQ7rZYqnKfRfJNZwXUqtQNGU7Ra

image7: testnet -command, please double check it — compare it with this image!
  • t1 is the number of threads to use for mining!
  • I would suggest you too try with all threads and 50% of threads. And what gives you the best results, use it. Keep in mind that with available threads you have also more power consumption.

On Mainnet use:

./cpuminer -api-remote -a minotaur -o http://127.0.0.1:28970 -O username:passowrd —coinbase-addr= coinbase-addr=RYGtortmQ7rZYqnKfRfJNZwXUqtQNGU7Ra

image8:MAINNET -command, please double check it — compare it with this image!

And you need a working RING ( testnet, mainet) blockchain running (You must have wallet version 0.18.2.1 or higher — you can always download), and correct config file (ring.conf) your config file should be in folder .ring ( hidden folder)!!!

Please read this

If you look in this ( check the images also !!! copy/paste sometimes is a mess…):

http://127.0.0.1:28980 -O username:password — coinbase-addr=SYGtortmQ7rZYqnKfRfJNZwXUqtQNGU7Ra

ring.conf file looks like this ( for mainnet and testnet, you can have only one config):

rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
server=1

[test]

rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
server=1

7) Now let’s make a legacy-format RNG address to receive rewards.
Enter the following command, and copy the address it gives you:

./ring-cli getnewaddress “mining” legacy

You need to put that address into config — coinbase-addr=<here goes your-legacy-address> (for testnet address starts with S…, for mainnet starts with R….)

How to test CPU SPEED

Check CPU speed with 1 thread

./cpuminer -a minotaur — benchmark -t1

image 9

Check CPU speed with 4 threads

./cpuminer -a minotaur — benchmark -t4

image 10- System updated

UPDATE:

If you are getting only 40–60 kH/s on Raspberry PI, make sure to upgrade it.

Raspberry PI4 should work at 110 kH/s
To update your Raspberry PI, type in terminal:

sudo apt-get update

sudo apt-get upgrade -y

and when finished, reboot your Raspberry PI sudo reboot and check again CPU speed.

image11: CPU speed after upgrade ubuntu server 19.10.1

IMPORTANT: Network hash rate is very high now, so solo mining with 110kH/s would take days to find one RING block.
I suggest you take a look at my tutorial on how to connect your Raspberry PI into the pools.

v.0.1.2 — 25.3.2020

v. 0.1.1 — 15.3.2020

--

--

Uros Spenko

Blockchain enthusiast, Cryptocurrency passionate, LiteCoin CASH (LCC) / RING Ambassador/Moderator, Satellite dish TX/RX expert, Raspberry PI — ask me ;).