Advertisement
Guest User

Amazon EC2 Mining Setup

a guest
Nov 22nd, 2013
910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # source this script if you want the exports to stick
  3. # download needed packages
  4. sudo apt-get update
  5. sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev gcc make libcurl4-openssl-dev autoconf git screen libncurses5-dev libdb4.8-dev libtool -y
  6. # install CUDA
  7. # manually accept EULA, download driver + CUDA to default location. Can skip samples
  8. wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run
  9. sudo bash cuda_5.5.22_linux_64.run
  10. # add to paths
  11. export PATH="/usr/local/cuda-5.5/bin:$PATH"
  12. export LD_LIBRARY_PATH="/usr/local/cuda-5.5/lib64:/lib"
  13. sudo ./nvidiastartup.sh
  14. # Download and build cudaminer
  15. git clone git://github.com/cbuchner1/CudaMiner
  16. cd CudaMiner
  17. ./configure
  18. make
  19. # Below is an example call to cudaminer. Stratum is the protocol used for mining, and is built into cudaminer.
  20. # -H parallizes CPU usage, -i tells cudaminer that neither GPU is needed for display.
  21. # ./cudaminer -H 1 -i 0,0 -o stratum+tcp://pool:port -O workername:workerpw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement