Install XMR-STAK on CentOS 7.x

If you are reading this then you must be aware what XMR-Stak is. For those who do not know, its an unified all-in-one cryptonight miner.
CryptoNight is the algorithm on which popular cryptocurrencies like Monero, Electroneum, ByteCoin, IntenseCoin, etc. are based.

Step 1: Installing dependencies

AMD APP SDK 3.0 (only needed to use AMD GPUs):

Cuda 8.0+ (only needed to use NVIDIA GPUs)

Select Custom Installation and install the following 3 components:

  • CUDA/Develpment
  • CUDA/Runtime
  • Driver components

Step 2: Installing GNU Compiler & Development Tools in CentOS 7.x

yum update -y
yum -y install epel-release
yum -y install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel git screen nano
yum -y install libmpc-devel mpfr-devel gmp-devel
yum --enablerepo=centos-sclo-rh-testing install devtoolset-7-gcc devtoolset-7-gcc-c++
scl enable devtoolset-7 bash

Step 3: Compiling XMR-Stak from source

git clone
cd xmr-stak-cpu
cmake3 .
make install

Step 4: Running XMR-Stak

cd bin

You’ll get a first time run message on the terminal window related to the CPU config. You need to copy it and then edit the config.txt file located in bin folder.

Also, do not forget to fill the following details in the config.txt file


Final screen running the miner

Happy mining! :)

Note: Please do not run miners on VPS/VDS/VMs as you’ll be kicked out by the provider due to 100% CPU usage. Also, do not run any miner on dedicated servers if your provider does not allow it.

- XMR-Stak:
- Tutorial executed on India VPS by (mining is strictly prohibited on VPS)