Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # source this script if you want the exports to stick
- # download needed packages
- sudo apt-get update
- 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
- # install CUDA
- # manually accept EULA, download driver + CUDA to default location. Can skip samples
- wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run
- sudo bash cuda_5.5.22_linux_64.run
- # add to paths
- export PATH="/usr/local/cuda-5.5/bin:$PATH"
- export LD_LIBRARY_PATH="/usr/local/cuda-5.5/lib64:/lib"
- sudo ./nvidiastartup.sh
- # Download and build cudaminer
- git clone git://github.com/cbuchner1/CudaMiner
- cd CudaMiner
- ./configure
- make
- # Below is an example call to cudaminer. Stratum is the protocol used for mining, and is built into cudaminer.
- # -H parallizes CPU usage, -i tells cudaminer that neither GPU is needed for display.
- # ./cudaminer -H 1 -i 0,0 -o stratum+tcp://pool:port -O workername:workerpw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement