Raspberry Pi - Bitcoin Solo Miner

How to build a Raspberry Pi Bitcoin Miner with USB-Block Erupter (SHA256)
You need a Raspberry Pi:


A USB-Hub with a Power Supply:


And one or more USB-Miner:


Raspberry OS: Download-Page

Open the terminal on your Raspberry Pi and enter:

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:

wget http://ck.kolivas.org/apps/cgminer/cgminer-4.11.1.tar.bz2

After the download is complete, decompress it by entering the following:

tar xvf cgminer-4.11.1.tar.bz2

Move to the decompressed cgminer directory:

cd cgminer-4.11.1

Configure the software for use with Block Erupter USB devices:

./configure --enable-icarus

Finally, make the program:


Return to the home directory by entering:


Now we can create a configuration file to store the settings we'll use with cgminer.
Create the file and begin editing it by entering the following command:

sudo nano cgminer.conf

Update the below template with your mining pool credentials by replacing "PoolAddress:Port",
"UserName.WorkerName", and "Password" with your info, then copy & paste into the nano editor:

{ "pools" : [
"url" : "PoolAddress:Port",
"user" : "UserName.WorkerName",
"pass" : "Password"
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"failover-only" : true,
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"api-allow" : "0/0",
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"

Now connect your USB mining device(s) to your Raspberry Pi.
To List all serial USB devices, enter the following command:

ls /dev/*USB*

To start your Bitcoin Miner in a Solo Pool enter:

sudo ./cgminer-4.11.1/cgminer -o stratum+tcp://solo.ckpool.org:3333 -u YourBitcoinWalletAdress.worker1 -p x

Now your worker is hashing in the following Mining Pool: https://solo.ckpool.org

You can mine DigiByte in the same way: https://dgb.solomining.io/sha256/#howToConnect