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:
sudo apt-get update
After the update has completed, Install the all of cgminer's software dependencies by entering:
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:
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:
tar xvf cgminer-3.1.1.tar.bz2
Move to the decompressed cgminer directory:
cd cgminer-3.1.1
Configure the software for use with Block Erupter USB devices:
./configure --enable-icarus
Note: Other device types will require specific "--enable" parameters, see cgminer's README files for more info
Finally, make the program:
… and that's all for the cgminer install. Return to the home directory by entering:


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:
git clone
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 Nov 28, 2021.

Text editor powered by tinymce.