Linux tip, Fedora tip / howto: mining bitcoins and litecoins using an nVidia card
Try my online puzzle page with Calcudoku, Killer Sudoku and printable Sudoku.
mining bitcoins and litecoins using an nVidia cardThese are installation and running instructions for if you have a recent nVidia card (that supports CUDA), are running Linux (I got this to work for Fedora 15, but the instructions should be transferable to most distributions), and want to mine bitcoins (BTC) or litecoins (LTC).
All steps run as root unless otherwise noted.
install CUDA 5.0Download and install the appropriate package for your distribution from the CUDA downloads page.
The CUDA installer gives you the option to install the nVidia display driver, if you don't have one installed already.
To figure out if you need the 64 bit or 32 bit version, run:
Note: for cudaminer, you need to install the 32 bit version (!) For my 64 bit Fedora 15 setup, the Fedora 16 installer worked fine:
mining LTC with cudaminerNote that if you're running Fedora 14 or older, then your gcc compiler is too old to create CUDA 5.0 executables (I was able to upgrade my Fedora 13 install to Fedora 15 using the yum feature "distro-sync". If this applies to you, check out this page).
As stated above, install the 32 bit version of CUDA 5.0 (so even if you're on a 64 bit system):
You also need to install 32 bit versions of glibc-devel and libcurl-devel:
Download the latest cudaminer package via the bitcointalk forum. The version I used was cudaminer-2013-04-10.zip (version 2013-04-12 works as well):
If you run into any problems, send me a note using the form at the bottom of this page.
mining coins with poclbm
install PyOpenCLGet the latest source by running:
I have boost-python installed, and am not sure if it is required (to get it, run yum install boost-python).
I had to point the configure script to the OpenCL include directory:
install poclbmThis is a "PyOpenCL" bitcoin miner. To get the latest source:
create a mining pool accountThere are lots of places where you can do this. Let's say you created an account called "coins" at coinotron.com.
In their "My Account" section, create a "Worker": for example, "first", with its password "apw", and pick LTC as the coin to mine.
The command to start mining would then be:
For bitcoins (BTC), change the port number to 3333.
ImportError: No module named serial.serialutilIf you get this error when trying to run poclbm.py install the pyserial package:
TypeError: Error when calling the metaclass bases, function() argument 1 must be code, not strIf you get this error, then you're using an older version of poclbm.py: simply update by running
mining coins with cgminer
run cgminerSome environment variables that are recommended:
Using the same account as in the above example, for mining litecoins:
some resultsOn a GeForce GT440, for litecoins with scrypt enabled I'm getting about 7.5-8 KH/s with cgminer and poclbm, and about 31 KH/s with cudaminer (!)
Card temperature goes up to about 75-80 degrees Celsius (but I have a resistor sitting in front of the fan to reduce RPM, so this could be made cooler).
The only miner producing accepted hashes so far is cudaminer (so possibly I'm still doing something wrong with the setup of the other miners).
Problems?Do let me know of any issues / error messages / etc. that you run into using the form below.