##############
# simple monero mining script that uses xmrig
#
# you can download xmrig here: https://xmrig.com/download
#
##############

startMiningXMR.sh
#!/bin/bash
WALLET=your-monero-wallet.yourmachine
BIN=xmrig
if [ "$1" == "" ]; then
THREAD="-t 1"
else
THREAD="-t $1"
fi


#kill process
ps -ef |grep xmrig |grep -v grep |awk {'print $2'} |xargs -n 1 kill -9
CMD="$BIN $THREAD --donate-level=0 -a rx/0 -o de.minexmr.com:4444 -u $WALLET -p youremail"
#echo $CMD
#$CMD
#exit
screen -dmS xmr $CMD

computer2know :: thank you for your visit :: have a nice day :: © 2024