How do I mine with CentOS?
If you searched for this type of tutorial means that you have a Linux system with CentOS distribution. It is mandatory to have ssh access, because you will install packages, and an account on a mining pool. As mining pool I use and recommend MinerGate , with this pool you can mine the following coins:
- Bitcoin - BTC
- Ethereum - ETH
- Litecoin - LTC
- Zcash - ZEC
- Bytecoin - BCN
- Monero - DigitalNote - XDN
- QuazarCoin - QCN
- Fantomcoin - FCN
- MonetaVerde - MCN
- AEO coin - AEON
- Dashcoin - DSH
- Infinium-8 - INF8
MinerGate can also mine in combinations, such as:
- XDN + XMR
- FCN + XMR
- FCN + QCN
- FCN + DSH
- FCN + INF8
- MCN + QCN
- MCN + DSH
- MCN + INF8
If you do not have enough good resources for mining, I do not recommend using mining coins in combination.
To run the process we will use the following miner: CPUMiner-Multi, for this we will install the following packages:
git, automake, gcc, make, curl-devel, openssl-devel, gcc-c++.x86_64
So we can install them:
yum install git automake gcc make curl-devel
yum install openssl-devel
yum install gcc-c++.x86_64
After installing packages, we can bring the cpuminer-multi anywhere on the disk, I will use the default path:
cd ~
git clone https://github.com/tpruvot/cpuminer-multi.git
cd cpuminer-multi
After we brought the miner, now we can install it:
./autogen.sh
./configure --with-crypto --with-curl
make
make install
Now we can run the miner with the following command:
(replace the EMAIL_ADDRESS with your address from your MinerGate account)
./cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p x
If we want to run the process in background use & as:
./cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p x &
I recommend a new screen as:
screen
./cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p
To detach the new screen press CTRL+A+D. After detaching, you can go back to the screen to watch the datas, you'll need the PID:
ps -x | grep SCREEN
Result:
29623 ? Ss 0:00 SCREEN
To display the screen just type:
screen -r 29623
THE END! Now you can view the results in minergates dashboard
Example:
Now all you have to do is install and configure all the other virtual machines the same way. On average for 1vCore at 2.4Ghz you will get 25H/s, if the CPU is not very loaded.