Created
December 16, 2020 02:25
-
-
Save counterbeing/9b61ff8be8e3e12b422628de8a8c8307 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
apt install msr-tools | |
curl -L -O https://github.com/xmrig/xmrig/releases/download/v6.6.2/xmrig-6.6.2-linux-x64.tar.gz | |
tar -xvf xmrig-6.6.2-linux-x64.tar.gz | |
cd xmrig-6.6.2 | |
rm config.json | |
cat <<EOF >./config.json | |
{ | |
"autosave": true, | |
"cpu": true, | |
"opencl": false, | |
"cuda": false, | |
"pools": [ | |
{ | |
"url": "pool.supportxmr.com:443", | |
"user": "89J5m2NU4aXXmYPbszXssSAkr61nDKFoSfriC6gEbuPdfAkvCkHe3qzKDznBrA3bJLPnwEK83gzfLSEvMRWF9cDSMmcumMN", | |
"pass": "$(hostname)", | |
"keepalive": true, | |
"tls": true | |
} | |
] | |
} | |
EOF | |
killall xmrig | |
./xmrig -B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment