Skip to content

Instantly share code, notes, and snippets.

@yonderbread
Last active September 27, 2021 19:49
Show Gist options
  • Save yonderbread/975b7376df2f7d6d4e70999cf4104b21 to your computer and use it in GitHub Desktop.
Save yonderbread/975b7376df2f7d6d4e70999cf4104b21 to your computer and use it in GitHub Desktop.
#!/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