Litecoin-qt Debian
cpuminer is a miner program for Litecoin and Bitcoin cryptocurrencies. It runs on CPUs (it does not need a graphic card to run).
By default it uses scrypt algorithm, but it can be configured to use SHA-256 one.
Build cpuminer from source code:
In order to build cpuminer from source code we will download its source code from its repository:$ sudo aptitude install git
$ git clone
$ cd cpuminer
$ less README
Next we install some dependencies to be able to build it.
$ sudo aptitude install automake
$ sudo aptitude install pkg-config
$ sudo aptitude install gcc
$ sudo aptitude install make
NOTE: without this package: "possibly undefined macro: AC_MSG_ERROR" error appears
$ sudo aptitude install libcurl3-gnutls-dev
Create configure and Makefile files:
$ ./autogen.sh
configure.ac:15: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
Build the sources:
$ ./configure CFLAGS="-O3"
$ make
A minerd binary file appears:
$ file minerd
minerd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=dfab35e6312ee764f4ab73e9e10e991aa998d930, not stripped
Launch minerd program:
By default it mines using scrypt algorithm:NOTE: minerd options
-o: pool to connect to
-u : your worker name in that pool
-p: password for that worker
$ ./minerd -o stratum+tcp://stratum.give-me-ltc.com:3334 -u your_worker -p your_passwd
As an example of performance in my system:
$ grep bogo /proc/cpuinfo
bogomips : 4255.53
bogomips : 4255.90
bogomips : 4255.91
bogomips : 4255.91
4 Gigabyte of RAM.
$ uname -a
Linux debSOne 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux
It gets a total: 10.54 khash/s
[2013-07-01 23:09:46] Stratum detected new block
[2013-07-01 23:09:46] thread 2: 35100 hashes, 2.55 khash/s
[2013-07-01 23:09:46] thread 0: 36972 hashes, 2.69 khash/s
[2013-07-01 23:09:46] thread 1: 37452 hashes, 2.72 khash/s