Too many idle servers collecting dust. Here’s an option for everyone to utilize unused VPS. Today, I’ll teach you how to use CPUMiner-Multi on CentOS to mine cryptocurrency and earn some virtual coins. Monero is currently the most profitable cryptocurrency, so we choose Monero.
Steps:
- Register on MinerGate
- Compile CPUMiner-Multi
- Verify CPUMiner-Multi
- Start mining on the MinerGate pool
Register on MinerGate
Register an account at MinerGate official website — you only need an email. No further explanation here.
Compile CPUMiner-Multi
First, install the compilation tools:
yum groupinstall "Development Tools"
yum install curl-devel openssl-devel git screen
Usually, these tools are required to compile software. Install them via the official yum repository.
Next, pull the CPUMiner-Multi source code from GitHub and compile it. The exact commands are:
git clone https://github.com/tpruvot/cpuminer-multi.git
cd cpuminer-multi
./autogen.sh
./configure --prefix=/usr/bin/ CFLAGS="-march=native" --with-crypto --with-curl
./build.sh
mv cpuminer /usr/bin
Verify CPUMiner-Multi
If compilation succeeds, verify with the command below:
cpuminer
#** cpuminer-multi 1.3.7 by tpruvot@github **
#BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd (tpruvot)
#cpuminer: no URL supplied
#Try `cpuminer-multi --help' for more information.
If you see output similar to above, the installation was successful. Next, we will use cpuminer to mine in the MinerGate pool.
Start mining on MinerGate pool
Currently, Monero is the most cost-effective cryptocurrency with a high price and wide usage. We will mine Monero on MinerGate. The Monero mining pool address on MinerGate is xmr.pool.minergate.com
with port 45700
. For Bitcoin, check MinerGate directly. The command for mining Monero is:
nohup cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45700 -u yougmail@gmail.com &
#Note: Replace the email address with your own email... otherwise, you might mine for someone else.
Check the running result:
MinerGate official RPM package mining
Although the official website does not offer a CentOS option, the RPM package is still found via search. Here is the installation method:
wget https://download.minergate.com/rpm-cli/8.2 -O minergate.rpm
rpm -i minergate.rpm
minergate-cli -u YOUREMAIL@gmail.com --xmr 2
Summary
This article implemented compiling CPUMiner-Multi on CentOS 7 and mining on the MinerGate pool. However, since it uses CPU mining, efficiency is low. The speed of one CPU core is only about 20 H/s, which is quite slow. It’s suitable only for using idle VPS to make some small returns. If you buy VPS just for mining, it may not be cost-effective. Don’t expect too much…