Author Topic: [MMC] Pool Mining Script Auto Installer for Debian & Ubuntu ( for xpool)  (Read 3205 times)

0 Members and 1 Guest are viewing this topic.

Offline s4l1h

  • Full Member
  • ***
  • Posts: 122
    • View Profile
MMC Pool Mining Script Auto Installer

Pool Adres: http://mmc.xpool.xram.co/
Pool Topic: https://bitsharestalk.org/index.php?topic=1588.0

Code: [Select]
#!/bin/bash

clear
if [ "$#" -eq  "0" ];then
echo "Usage: sh $0 YOURMMCADRESS threadSize(optional)"
echo "Example: sh $0 MQoJDguWCMAug2J2rRUEsZPC9UjdSCppkS 4"
exit
fi

if [ "$#" -lt 2  ];then
p="false";
  else
    p=$2
fi

echo  " "
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  " "
fi

echo  "#########  Update Package List  #########"
echo  " "
echo  " "
echo  " "
apt-get update -y
echo  " "
echo  " "
echo  " "
echo "#########  Upgrade Package\e[0m #########"
echo  " "
echo  " "
echo  " "
apt-get upgrade -y
echo  " "
echo  " "
echo  " "
echo "#########  Install Ntp(for server time)#########"
echo  " "
echo  " "
echo  " "
apt-get install ntp -y
echo  " "
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.bz2
tar xvf memoryminer.tar
echo  " "
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'
fi
echo "######## 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  " "




or single command install
Code: [Select]
wget https://gist.github.com/s4l1h/8119376/raw/03c165660a5c106d96af0ce90cddfa1042e03f46/setup.sh;chmod +x setup.sh;sh setup.sh

Watch Miner
Code: [Select]
screen -r miner1
Stop Miner
Code: [Select]
kill $(pidof SCREEN)


Donation Address => MQoJDguWCMAug2J2rRUEsZPC9UjdSCppkS
« Last Edit: December 25, 2013, 07:40:41 pm by s4l1h »