Skip to content

Instantly share code, notes, and snippets.

@rcaetano
Created May 26, 2011 15:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rcaetano/993399 to your computer and use it in GitHub Desktop.
Save rcaetano/993399 to your computer and use it in GitHub Desktop.
Scripts for setting up amazon EC2 instances to mine bitcoins
# miner_pool.sh - executes a script against each instance: ./mine_pool.sh setup.sh
# list your instances here
# use ami-12b6477b
INSTANCES="ec2-50-19-52-212.compute-1.amazonaws.com
ec2-50-16-126-107.compute-1.amazonaws.com
ec2-184-72-177-183.compute-1.amazonaws.com
ec2-50-17-126-57.compute-1.amazonaws.com
ec2-184-73-119-153.compute-1.amazonaws.com"
for instance in $INSTANCES
do
echo "=== $instance";
ssh -i ~/.ssh/arsybitcoin.pem root@$instance 'bash -s' < $1
done
----
# miner_setup.sh - setup a miner instance to start mining
git clone https://github.com/Kiv/poclbm.git
cd poclbm
nohup python26 poclbm.py -d0 --host=deepbit.net --port=8332 --user={username} --pass={passwd} > null &
nohup python26 poclbm.py -d1 --host=deepbit.net --port=8332 --user={username} --pass={passwd} > null &
nvidia-smi -a -q | grep GPU
----
# miner_gpuinfo.sh - gets the miner's GPU info
nvidia-smi -a -q | grep GPU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment