CUDA Miner Installation on a fresh Ubuntu 14.04 LTS


Step by Step Guide to Cuda Mining on Ubuntu 14.04 LTS (as simple as copy paste)

  1. After Ubuntu is installed and ready, click on the ubuntu icon on the side bar or press windows key on your keyboard type additional drivers and open the application. You will have 4 to 5 choices depending on your nvidia graphics card
    • Either select the one which has recommended
    • Or choose the one which says tested
  2. Apply the changes and wait for it to install. Once it is installed press Ctrl + Alt + F6 to go to command line mode. This is because during the installation of the nvidia driver inside the cuda toolkit, Xserver (the service that enables graphical user interface has to be turned off)
  3. Once in the CLI (Command Line Interface) type (without quotes) ” sudo su ”  and enter your password
  4. Now let us begin preparing the machine for Cuda Mining…
  5. Run the command (without quotes) – ” apt-get update “
  6. Run the command (without quotes) – ” apt-get upgrade “
  7. Run the command (without quotes) – ” apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglapi-mesa libgl1-mesa-dri “
  8. Run the command (without quotes) – “cd /home/yourusername/Downloads” (Here your username is the name of the user, usually just press the tab key after typing /home/)
  9. Download the toolkit – run the command (without quotes) – “wget”
  10. Give execution permission to the file you just downloaded chmod +x
  11. Stopping the display service  (without quotes) – “service lightdm stop”
  12. Run the installer (the parameter override compiler will negate any compiler version issues)  ./ -override compiler
  13. Give yes for all questions, and when asked for the path where the cuda toolkit and cuda toolkit samples, press enter so that it takes the default location, it will be easier to debug.
  14. You might be asked to re run the setup after restart as the installer will try and remove the other drivers. Once restarted come back to the CLI using Ctrl + Alt + F6 and nagivate to downloads folder (without quote) – “cd /home/yourusername/Downloads/”. After that escalate privilege to root using “sudo su ” command, enter your password if asked.
  15. Run the command (without quotes)  – ” cd “
  16. Edit .bashrc file with the command (without quotes) – nano .bashrc
  17. Add the following to the end of the document – “PATH=$PATH:/usr/local/cuda-6.0/bin”, o the next line (press enter) ” LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-6.0/lib64:/lib “
  18. Press Ctrl + Y to close press enter to save. You will be back at the terminal. Run  the command (without quotes) : “source .bashrc”
  19. Run the command (without quotes) – ” apt-get install openmpi-bin openmpi-common libopenmpi-dev “
  20. Run the command (without quotes) – ” cd /home/yourusername/NVIDIA_CUDA-6.0_Samples “
  21. Run the command (without quotes) – ” make “
  22. Once the processing is complete and you are back at the cursor (make sure there are no errors.
  23. Run the command (without quotes) ” ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/ “
  24. Run the command (without quotes) – ” nano /etc/ “
  25. Inside the file add these 2 lines – ” /usr/local/cuda-6.0/lib64 ” ” /usr/local/cuda-6.0/lib “. Press Ctrl + Y and enter key to save and exit to terminal
  26. Run the command (without quotes) – ” nano /etc/ “
  27. Inside the file add these 2 lines – ” /usr/local/cuda-6.0/lib64 ” ” /usr/local/cuda-6.0/lib “. Press Ctrl + Y and enter key to save and exit to terminal
  28. Run the command (without quotes) – “ldconfig”
  29. Run the command (without quotes) – ” cd ~ “
  30. Run the command (without quotes) – ” cd /home/yourusername/Downloads/ “
  31. Run the command (without quotes) – ” wget
  32. Run the command (without quotes)- “mv” – For easy understanding
  33. Run the command (without quotes)- “unzip”
  34. Run the command (without quotes) – ” cd sCudaMiner “
  35. Run the command (without quotes) – ” chmod a+wrx configure “
  36. Run the command (without quotes) – ” apt-get install libcurl4-gnutls-dev  autogen automake libssl-dev libssl1.0.0 libcryptokit-ocaml libcryptokit-ocaml-dev libcrypto++-dev libcrypto++9 “
  37. Run the command (without quotes) – ” ./ “
  38. Run the command (without quotes) – ” ./configure “
  39. Run the command (without quotes) – ” make “
  40. Run the command (without quotes – ” ./cudaminer -d 0 -i 0 –benchmark “

Once this runs, it means you are ready to mine with cuda miner…


Will post how to mine with a pool in a couple of days..


Reply / Comment to this blog post or leave a message at contact section, I will reach back to you..


Happy Mining

Deadbrain 🙂

Shouts to Christian Buchner & Damian Gregory