How To Mine Monero using the CPU - For LinuxsteemCreated with Sketch.

in monero •  2 years ago

In this post I will show you how to mine monero using the CPU of your linux computer using a software called cpuminer.

  • We are using Ubuntu server version 16. (64 bits)
  • We are using the MINERGATE minig pool
  • Minergate will charge you a small percentage of your mining profits, something like 1.5%


Access the MINERGATE website and create an account.


Use the following commands to install the required softwares on your linux computer.

# apt-get update
# apt-get install libcurl4-openssl-dev git
# apt-get install  build-essential
# apt-get install autotools-dev autoconf
# apt-get install libcurl3 libcurl4-gnutls-dev

Create a directory and download the monero cpuminer software:

# mkdir /downloads
# cd /downloads
# git clone
# cd cpuminer-multi

Use the following commands to compile and install the cpuminer software on your linux computer:

# ./
# CFLAGS="-march=native" ./configure
# make
# make install


In order to start mining monero, use the following command:

#  minerd -a cryptonight -o stratum+tcp:// -u -p x
  • You need to change the username from the command above to the username that you created on the minergate website.


In our YOUTUBE channel, we offer a video showing you the step by step procedure.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

What is the hashrate of aws vcpu. How much of xmr can be mine spending for e2c.

Thank you for sharing this. Merci beaucoup.


Ur welcome pal.
Have a nice day!

can u please tell the command for other mining pool for monero on aws..?


Hy miland, you should select the pool first, then create a user and there you will find the specific parameters needed for that particular pool, hope it helps.

hi first than anything I want to thank You for the tutorial. I've this question: I want to convert this script into an silent or hide one, and add it at the starting of ubuntu. can You to explain to me how to do that?