Bitcoin/CGMiner

CGMiner
CGMiner - http://ck.kolivas.org/apps/cgminer/
 * "This is a multi-threaded multi-pool FPGA and ASIC miner for bitcoin."

ckolivas/cgminer · GitHub - https://github.com/ckolivas/cgminer

Source
Dependencies: yum install libudev-devel

Build: wget http://ck.kolivas.org/apps/cgminer/4.5/cgminer-4.5.0.tar.bz2 tar -jvxf cgminer-4.5.0.tar.bz2 cd cgminer-4.5.0 ./configure --enable-icarus --enable-ants2 --prefix=/opt/cgminer make clean && make sudo make install
 * 1) ./configure --enable-icarus --enable-ants2

Run (from build): ./cgminer --config ~/conf/bitcoin.conf

Run (from install): /opt/cgminer/bin/cgminer --config ~/conf/bitcoin.conf

Binary
wget http://ck.kolivas.org/apps/cgminer/cgminer-4.5.0-x86_64-built.tar.bz2 tar -jvxf cgminer-4.5.0-x86_64-built.tar.bz2 cd cgminer-4.5.0-x86_64-built

./cgminer --config ~/conf/bitcoin.conf

Error when I tried to run it on CentOS 6: ./cgminer: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

cgminer raspberry pi
Recommended to use an older version on Raspberry Pi:

Initial Setup & Overview | PiMiner Raspberry Pi Bitcoin Miner | Adafruit Learning System - http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/initial-setup-and-assembly

Install Software | PiMiner Raspberry Pi Bitcoin Miner | Adafruit Learning System - http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/install-cgminer

Note: 3.1.1 is the last version that includes support for targeted device selection: --scan-serial|-S Serial port to probe for Icarus FPGA Mining device

tar method: sudo apt-get update sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev

wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2 tar xvf cgminer-3.1.1.tar.bz2 cd cgminer-3.1.1 ./configure --enable-icarus make

git source method: sudo apt-get update sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf automake

git clone https://github.com/ckolivas/cgminer.git cd cgminer git checkout v3.1.1 aclocal ./autogen.sh ./configure --enable-icarus make

config: cat > cgminer.conf << EOF {   "api-allow": "0/0", "api-listen": true, "api-port": "4028", "expiry": "120", "failover-only": true, "icarus-options": "115200:1:1", "icarus-timing": "3.0=100", "kernel-path": "/usr/local/bin", "log": "5", "no-pool-disable": true, "pools": [ {           "pass": "letmein3", "url": "http://pit.deepbit.net:8332", "user": "kenneth@k.ttak.org" }   ],    "queue": "2", "scan-time": "60", "shares": "0", "worktime": true } EOF

config: cat > cgminer.conf << EOF {   "pools": [ {           "url": "http://pit.deepbit.net:8332", "user": "kenneth@k.ttak.org", "pass": "letmein3" }   ] } EOF

ls /dev/*USB*

sudo nohup ./cgminer --config cgminer.conf -S /dev/ttyUSB0 >/dev/null 2>&1&
 * 1) sudo nohup ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 -S /dev/ttyUSB1 >/dev/null 2>&1&

cgminer api
cgminer API - https://github.com/ckolivas/cgminer/blob/master/API-README

PiMiner

git clone https://github.com/adafruit/PiMiner.git

Forked to: https://github.com/kiloforce/cgminerminer

git clone https://github.com/kiloforce/cgminerminer.git

string command version: version| STATUS=S,When=1380856129,Code=22,Msg=CGMiner versions,Description=cgminer 3.1.1|VERSION,CGMiner=3.1.1,API=1.25|
 * 1) nc localhost 4028

json command version: {"command":"version"} {"STATUS":[{"STATUS":"S","When":1380856108,"Code":22,"Msg":"CGMiner versions","Description":"cgminer 3.1.1"}], "VERSION":[{"CGMiner":"3.1.1","API":"1.25"}],"id":1}
 * 1) nc localhost 4028