1. sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev 2. git clone https://github.com/xmrig/xmrig.git 3. mkdir xmrig/build && cd xmrig/build 4. cmake .. 5. make -j$(nproc)