Install Software

cgminer

Cgminer is a cross-platform program for mining crypto-currency with support for SHA-256 and scrypt 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:
Download: file
sudo apt-get update
After the update has completed, Install the all of cgminer's software dependencies by entering:
Download: file
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:
Download: file
cd
Download: file
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:
Download: file
tar xvf cgminer-3.1.1.tar.bz2
Move to the decompressed cgminer directory:
Download: file
cd cgminer-3.1.1
Configure the software for use with Block Erupter USB devices:
Download: file
./configure --enable-icarus
Note: Other device types will require specific "--enable" parameters, see cgminer's README files for more info
Finally, make the program:
Download: file
make
… and that's all for the cgminer install. Return to the home directory by entering:
Download: file
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:
Download: file
git clone https://github.com/adafruit/PiMiner.git
Once the download is complete, we're ready to configure settings for our miner.
This guide was first published on Jun 20, 2013. It was last updated on Jun 20, 2013. This page (Install Software) was last updated on Oct 17, 2019.