Install cgminer bitcoin in Rasberry Pi


cgminer

Cgminer is a cross-platform program for mining crypto-currency with support for SHA-256 andscrypt algorithms, as well as drivers for a broad range of mining hardware.

To install cgminer on the Pi, we'll first need to connect to the Pi via ssh or console cable.
Once you're logged in, ensure all preexisting software is up to date by entering the following:
Copy Code
  1. sudo apt-get update
After the update has completed, Install the all of cgminer's software dependencies by entering:
Copy Code
  1. sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
Once dependencies are installed, download the cgminer software using:
Copy Code
  1. cd
Copy Code
  1. wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
Note: this is not the latest version of cgminer, at the time of this writing, the current version (3.3.1) has issues communicating with Block Erupter USB on Raspbian
After the download is complete, decompress it by entering the following:
Copy Code
  1. tar xvf cgminer-3.1.1.tar.bz2
Move to the decompressed cgminer directory:
Copy Code
  1. cd cgminer-3.1.1
Configure the software for use with Block Erupter USB devices:
Copy Code
  1. ./configure --enable-icarus
Note: Other device types will require specific "--enable" parameters, see cgminer's README files for more info
Finally, make the program:
Copy Code
  1. make
… and that's all for the cgminer install. Return to the home directory by entering:
Copy Code
  1. cd

PiMiner

The PiMiner software continuously gathers info from cgminer, formats it for display, and responds to button presses on the 16x2 Character LCD Plate.

To install it, enter the following commands:
Copy Code
  1. git clone https://github.com/adafruit/PiMiner.git
Once the download is complete, we're ready to configure settings for our miner.