Created
May 26, 2011 15:52
-
-
Save rcaetano/993399 to your computer and use it in GitHub Desktop.
Scripts for setting up amazon EC2 instances to mine bitcoins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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