sudo apt install git
git clone https://github.com/bitzeny/cpuminer.git cpuminer
cd cpuminer
sudo apt-get install libcurl4-openssl-dev gcc-mingw-w64 automake gcc make
./autogen.sh
./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer"
make