Created
April 24, 2019 18:55
-
-
Save TheNicholasNick/48b0219d64fdf9eee31195b39d854945 to your computer and use it in GitHub Desktop.
TurtleCoin Ubuntu 16.04 xmrig gcc-7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://askubuntu.com/a/980495 | |
apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:ubuntu-toolchain-r/test && \ | |
apt-get update && \ | |
apt-get install -y gcc-7 g++-7 && \ | |
apt-get install -y git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev && \ | |
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 -CMAKE_CXX_FLAGS=-O3 && \ | |
make -j24 | |
cat << EOT > config.json | |
{ | |
"algo": "cryptonight-pico/trtl", | |
"api": { | |
"port": 0, | |
"access-token": null, | |
"id": null, | |
"worker-id": null, | |
"ipv6": false, | |
"restricted": true | |
}, | |
"asm": true, | |
"autosave": true, | |
"av": 0, | |
"background": false, | |
"colors": true, | |
"cpu-affinity": null, | |
"cpu-priority": null, | |
"donate-level": 5, | |
"huge-pages": true, | |
"hw-aes": null, | |
"log-file": null, | |
"max-cpu-usage": 100, | |
"pools": [ | |
{ | |
"url": "trtl.pool.mine2gether.com:3335", | |
"user": "TRTLv3KaQcYTqjGUbG5CqF16NMhDNxP4WV7hGE9hvUFL3eREfXffp4S1ohhtkd2Be1ZtdJQjU7N4S5Hv6NSiq734CWBzpVBgw67", | |
"pass": "w=epyc24cores", | |
"rig-id": null, | |
"nicehash": false, | |
"keepalive": false, | |
"variant": -1, | |
"tls": false, | |
"tls-fingerprint": null | |
} | |
], | |
"print-time": 60, | |
"retries": 5, | |
"retry-pause": 5, | |
"safe": false, | |
"threads": null, | |
"user-agent": null, | |
"watch": true | |
} | |
EOT | |
./xmrig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment