0 Members and 1 Guest are viewing this topic.
#!/bin/bashclearif [ "$#" -eq "0" ];then echo "Usage: sh $0 YOURMMCADRESS threadSize(optional)" echo "Example: sh $0 MQoJDguWCMAug2J2rRUEsZPC9UjdSCppkS 4" exitfiif [ "$#" -lt 2 ];then p="false"; else p=$2 fiecho " "echo " "echo " "echo "######### Your MMC ADRES => $1 #########"echo " "echo " "echo " "if [ $p = "false" ];then echo "######### No Thread Limit #########" echo " " echo " " echo " " else echo "######### Thread => $p #########" echo " " echo " " echo " "fiecho "######### Update Package List #########"echo " "echo " "echo " "apt-get update -yecho " "echo " "echo " "echo "######### Upgrade Package\e[0m #########"echo " "echo " "echo " "apt-get upgrade -yecho " "echo " "echo " "echo "######### Install Ntp(for server time)#########"echo " "echo " "echo " "apt-get install ntp -yecho " "echo " "echo " "echo "######### Install Other Package #########"echo " "echo " "echo " "apt-get install git make g++ build-essential libminiupnpc-dev libdb++-dev libgmp-dev libssl-dev dos2unix libboost-all-dev screen -y echo " "echo " "echo " "echo "######### Downloading MemoryMiner #########"echo " "echo " "echo " "wget "http://mmc.xpool.xram.co/assets/files/memoryminer.tar.bz2"bzip2 -d memoryminer.tar.bz2tar xvf memoryminer.tarecho " "echo " "echo " "echo "######### Building MemoryMiner #########"echo " "echo " "echo " "cd memoryminer/src && make -f makefile.unix;cp memoryminer /usr/local/bin/echo "######### MemoryMiner Runing Background with screen #########"if [ $p = "false" ];then /usr/bin/screen -dmS miner1 bash -c 'until memoryminer -poolip=mmc.xpool.xram.co -poolport=1339 -pooluser=$1 && false; do echo "Error, restarting...";done' else /usr/bin/screen -dmS miner1 bash -c 'until memoryminer -poolip=mmc.xpool.xram.co -poolport=1339 -pooluser=$1 -genproclimit=$p && false; do echo "Error, restarting...";done'fiecho "######## Complete ############"echo " "echo " "echo " "echo "######## Watch Miner => screen -r miner1 #########"echo " "echo " "echo " "echo "######## Stop Miner => kill $(pidof SCREEN) #########"echo " "echo " "echo " "echo "Mining Static => http://mmc.xpool.xram.co/individual?address=$1"echo " "echo " "echo " "
wget https://gist.github.com/s4l1h/8119376/raw/03c165660a5c106d96af0ce90cddfa1042e03f46/setup.sh;chmod +x setup.sh;sh setup.sh
screen -r miner1
kill $(pidof SCREEN)