-
-
Save 1stvamp/8021683 to your computer and use it in GitHub Desktop.
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
from fabric.api import env, task, run, sudo, cd, local | |
from fabric.decorators import with_settings | |
from fabric.operations import put | |
env.user = 'ec2-user' | |
env.hosts = [ | |
'ec2-your-address-1.us-west-2.compute.amazonaws.com', | |
'ec2-your-address-2.us-west-2.compute.amazonaws.com', | |
'ec2-your-address-3.us-west-2.compute.amazonaws.com', | |
'ec2-your-address-4.us-west-2.compute.amazonaws.com', | |
'ec2-your-address-5.us-west-2.compute.amazonaws.com', | |
] | |
# replace with your path | |
env.key_filename = '/Users/bat/config/personal/coins.pem' | |
env.forward_agent = True | |
# open everything in screen by running: | |
# screen | |
# sudo yum -y groupinstall "Development Tools" && sudo yum -y install git libcurl-devel python-devel screen rsync yasm numpy openssl-devel | |
def install_packs(): | |
run('sudo yum -y groupinstall "Development Tools"') | |
run('sudo yum -y install git libcurl-devel python-devel screen rsync yasm numpy openssl-devel') | |
# ssh -i /Users/bat/config/personal/coins.pem [email protected] | |
# screen | |
# open another terminal window | |
# ssh -i /Users/bat/config/personal/coins.pem [email protected] | |
# screen | |
# open another terminal window | |
# ssh -i /Users/bat/config/personal/coins.pem [email protected] | |
# screen | |
# open another terminal window | |
# ssh -i /Users/bat/config/personal/coins.pem [email protected] | |
# screen | |
# open another terminal window | |
# ssh -i /Users/bat/config/personal/coins.pem [email protected] | |
# screen | |
# open another terminal window | |
# wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run | |
# sudo sh cuda_5.5.22_linux_64.run | |
# cd && rm -fr CudaMiner && git clone https://github.com/cbuchner1/CudaMiner.git && cd CudaMiner && git checkout 88c6da6d5c2b798d1de7031e8dbcc2678f635e4b | |
def clone_cudaminer(): | |
run('rm -fr CudaMiner') | |
run('git clone https://github.com/cbuchner1/CudaMiner.git') | |
with cd('CudaMiner'): | |
run('git checkout 88c6da6d5c2b798d1de7031e8dbcc2678f635e4b') | |
# ./configure && make | |
def config_cudaminer(): | |
with cd('CudaMiner'): | |
run('./configure') | |
def make_cudaminer(): | |
with cd('CudaMiner'): | |
run('make') | |
# run in each ssh session | |
# ./cudaminer -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.gpu1 -p yourpassword -C 1 | |
# ./cudaminer -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.gpu2 -p yourpassword -C 1 | |
# ./cudaminer -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.gpu3 -p yourpassword -C 1 | |
# ./cudaminer -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.gpu4 -p yourpassword -C 1 | |
# ./cudaminer -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.gpu5 -p yourpassword -C 1 | |
# once it's running in each, open a new screen window in by typing "C-a c" (ctrl-a followed by c). | |
# to move between windows in screen use "C-a n" | |
# in the new screen window run these | |
# git clone https://github.com/pooler/cpuminer.git && cd cpuminer && ./autogen.sh && ./configure && make | |
def clone_cpuminer(): | |
run('git clone https://github.com/pooler/cpuminer.git') | |
def config_cpuminer(): | |
with cd('cpuminer'): | |
run('./autogen.sh') | |
run('./configure') | |
def make_cpuminer(): | |
with cd('cpuminer'): | |
run('make') | |
# ./minerd -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.cpu1 -p yourpassword -t 6 | |
# ./minerd -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.cpu2 -p yourpassword -t 6 | |
# ./minerd -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.cpu3 -p yourpassword -t 6 | |
# ./minerd -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.cpu4 -p yourpassword -t 6 | |
# ./minerd -o stratum+tcp://doge.scryptpools.com:3333 -u yourusername.cpu5 -p yourpassword -t 6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment