To do this you should have some basic knowledge about Linux and cryptocurrencies / mining. This method is tested on Debian 12.

Compiling XMRig

Configuring XMRig

After compiling XMRig, you should write or generate a configuration file. You can generate one on xmrig.com/wizard. This is where you specify what pool you want to mine in, if you are using CUDA, OpenCL, or are using CPU only. Monero mining works good with CPU-Only setups, because is uses the RandomX algorithm. This PoW algorithm is ASIC resistant, which means it is impossible to build specialized hardware to mine Monero: Miners must use consumer-grade hardware and compete fairly. Monero can be mined by both CPUs and GPUs, but the former is much more efficient.