Hi guille889,
I had the same problem and found (really hard) some good tutorials. For CPU mining in centos I've followed this tutorial https://altcoinslisting.com/blog/mine-with-centos and for GPU mining this tutorial https://altcoinslisting.com/blog/mine-with-gpu-amd
Hope it will work for you too.