Last active
September 27, 2021 19:49
-
-
Save yonderbread/975b7376df2f7d6d4e70999cf4104b21 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
#!/usr/bin/env bash | |
set -e | |
apt update && apt upgrade -y | |
apt install -y git proot wget build-essential cmake make tor libmicrohttpd | |
clear | |
mkdir -p ~/bin | |
mkdir -p ~/._temp | |
cd ~/._temp | |
git clone https://github.com/xmrig/xmrig xmrig-git | |
cd xmrig-git && mkdir -p build && cd build | |
cmake .. -DWITH_HWLOC=OFF | |
make -j`nproc` | |
cp ./xmrig ~/bin/xmrig | |
chmod +x ~/bin/xmrig | |
rm -rf ~/._temp && cd $HOME | |
touch ~/run_xmrig && chmod +x ~/run_xmrig | |
cat <<EOF > ~/run_xmrig | |
./bin/xmrig -o xmr.miningpool.fun:3330 \ | |
-u 8BzAyHepayZAavYkNgAmd4DR5mXURwAEhD9bcHTjWJaY3JR2StF5BUUAgAV8FZYBDwbqCScfiqNTFWvvdaRmbjTjGDtCZoN \ | |
-p $(whoami) --tls -k -a rx/0 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment