Cpuminer installation commands on Linux Ubuntu 18.04

(Last Updated On: 22/05/2023)

This blog contains all the commands to set up your cpuminer for cryptocurrency and does the mining. This blog is part of the course on how to create your own cryptocurrency.

Commands to setup Cpuminer for Cryptocurrency

sudo apt install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm
git clone https://github.com/pooler/cpuminer.git
sudo chmod -R 777 cpuminer
cd cpuminer
./configure CFLAGS="-O3"

Solo mining

./minerd --url= --user=coinuser --pass=coinpassword --coinbase-addr=NZpKeW5Qj2NfZEfL5W8Dh4oxS93FmLLGXb