How to compile xmr-stak-nvidia (Monero mining) on Fedora

Monero is a secure, untraceable and resilient digital currency. Many people believe that it could be the successor to Bitcoin. So, why don’t we try to mining this crypto money on a Fedora system?


Monero is a decentralized opensource cryptocurrency
Monero is a decentralized opensource cryptocurrency

Monero is a fully free and opensource cryptocurrency

Monero is a secure, private, and untraceable cryptocurrency. It is opensource and accessible to all. With it, you are your own bank. Only you control and are responsible for your funds.

The most critical flaw in Bitcoin is its lack of privacy. Monero solves these privacy issues by automatically applying privacy techniques to every single transaction made. You can have confidence that it is not possible to own ‘tainted’ Monero. To read more, take a look here.

If you need a ‘get started’ tutorial or to understand how to create your personal wallet, you can go on the official website at I assume that you need only to know how to mining fast Monero coins on your Linux Fedora system.


xmr-stak is a suite for fast Monero mining on Windows and Linux systems

If you need to know which program is better for you, you can search over Internet or use the reddit MoneroMining, where you can find all the info that you need. My choice is the xmr-stak suite. xmr-stak is a suite of programs (spec. to CPU or AMD/Nvidia GPU) for pool mining. Pool means that the program doesn’t mine directly, it calculates hashes through CPU or GPU and send its to a central pool, where happens the real mining process.

While xmr-stak-cpu and xmr-stak-amd are really easy to compile, xmr-stak-nvidia is a creepy. Due to drivers, CUDA, C compilers and a mix of all that things, compile it (for me) was a nightmare on Fedora 26. So, let see the magical combination that let’s the magic happens.

Clone the latest release of xmr-stak-nvidia from the official repository.

Nvidia driver, CUDA tools and libraries from Negativo17 repository. Take a look CUDA is version 8.

sudo dnf install compat-gcc-53

sudo dnf install compat-gcc-53-c++

export CC=/usr/bin/gcc53

export CXX=/usr/bin/g++53

cd xmr-stak-nvidia #move to where your downloaded or cloned folder is

cmake .

make install

Now, have fun. If you would like to give me a tip in Monero, you can at this wallet address: