Install XMRIG Cryptonight CPU Mining on Ubuntu
Install:
cd && sudo apt-get update && sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev software-properties-common nano tmux cpulimit && sudo add-apt-repository ppa:jonathonf/gcc-7.1 && sudo apt-get update && sudo apt-get install gcc-7 g++-7 && git clone https://github.com/xmrig/xmrig.git && cd xmrig && mkdir build && cd build && cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 && make && sudo apt-get autoclean && sudo apt-get clean && sudo apt-get autoremove && nano config.json
Input Configuration:
{
"algo": "cryptonight",
"av": 0,
"background": false,
"colors": true,
"cpu-affinity": null,
"cpu-priority": 5,
"donate-level": 1,
"log-file": null,
"max-cpu-usage": 100,
"print-time": 5,
"retries": 5,
"retry-pause": 5,
"safe": true,
"threads": null,
"pools":
[
{
"url": "POOL:PORT",
"user": "YOURWALLET",
"pool_password" : "YOURWORKER:YOUREMAIL",
"keepalive": true,
"nicehash": false
}
],
"api":
{
"port": 0,
"access-token": null,
"worker-id": null
}
}
Press ctrl+x
Press y
Press enter
Running bash:
tmux
./xmrig