This guide was tested on a fresh install of Debain. But most of it should apply in other situations. I prefer to always login as root on my mining rigs, it makes things easier.
Edit the sources.list file:
# nano /etc/apt/sources.list
Add the following to the end of every line that starts "deb" or "deb-src":
contrib non-freeTo save and exit press: [CTRL]+[x] then [y] then [Enter]
Install necessary packages:
# apt-get update # apt-get upgrade # apt-get install git libcurl4-openssl-dev libudev-dev libncurses5-dev ntp # apt-get install automake build-essential linux-headers-$(uname -r)
Download the latest Nvidia drivers and Cuda 5.5:
# wget http://us.download.nvidia.com/XFree86/Linux-x86_64/334.21/NVIDIA-Linux-x86_64-334.21.run # wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run
Start the driver installation and follow the promts:
# sh NVIDIA-Linux-x86_64-334.21.run
Create a directory for Cuda 5.5, extract the installers and start installation:
# mkdir cuda5.5 # sh cuda_5.5.22_linux_64.run --extract=/root/cuda5.5 # cd cuda5.5 # sh cuda-linux64-rel-5.5.22-16488124.run
The extract process will take a while, be patient. It will extract three files, we are only installing one of them.
Set path variables:
# export LD_LIBRARY_PATH="/usr/local/cuda/lib64" # export PATH="/usr/local/cuda/bin:$PATH"
Download and compile CudaMiner:
# cd /root # git clone https://github.com/cbuchner1/CudaMiner # cd CudaMiner # ./autogen.sh # ./configure # make
Test CudaMiner:
# ./cudaminer -l auto -o stratum+tcp://us.clevermining.com:3333 -u 1EJNWmLtmdNVQqkJGFYfM473RTBB1YevKx -p x