Author

Topic: bfgminer - Bitmain Antminer U2 & Raspberry Pi Model 3 B+ - solo mining setup (Read 185 times)

newbie
Activity: 8
Merit: 5
!!! Important Addition !!!

Due to changes at GitHub a few lines of code need to be changed:

After "git clone https://github.com/luke-jr/bfgminer.git" type in "cd bfgminer".

Then type in "sudo nano .gitmodules". In this file you have to replace every "git://" with "https://".

Exit and save the file (Exit with ‚CTRL X‘ and confirm changes by pressing ‚Y‘ and pressing ‚Enter‘).

Afterwards continue the tutorial at "sudo ./autogen.sh" as normal and everything should work.
newbie
Activity: 8
Merit: 5
***bfgminer - Bitmain Antminer U2 & Raspberry Pi Model 3 B+ - solo mining setup***

*using Raspberry Pi Model 3 B+
*using Bitmain Antminer U2
*using Raspberry Pi OS Lite (64 bit)
*using solo.ckpool.org
*using bfgminer

*NOTE: Instead of 'BITCOIN_ADDRESS' insert your own Bitcoin Address.

*Go to the main directory:
cd

*Update the Raspberry Pi:
sudo apt-get update
sudo apt-get upgrade

*Install dependencies:
sudo apt-get install git build-essential autoconf automake libtool libgcrypt20-dev pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncurses5-dev libudev-dev libusb-1.0-0-dev libusb-1.0-0 libevent-dev libmicrohttpd-dev libhidapi-dev

*Clone bfgminer:
git clone https://github.com/luke-jr/bfgminer.git

*Edit .gitmodules
cd bfgminer
sudo nano .gitmodules
*In this file you have to replace every „git://“ with „https://“
*Exit and save the file (Exit with ‚CTRL X‘ and confirm changes by pressing ‚Y‘ and pressing ‚Enter‘)

*Configure and compile bfgminer:
sudo ./autogen.sh
sudo ./configure
sudo make

*Start bfgminer (while in 'bfgminer' directory):
sudo ./bfgminer -o stratum+tcp://solo.ckpool.org:3333 -u BITCOIN_ADDRESS -p btc -S all



**Autostart bfgminer in a screen session when Raspberry Pi is powered on - optional**

*Go to the main directory:
cd

*Install screen:
sudo apt-get install screen

*Open this file:
sudo nano /etc/rc.local

*Add this just above 'exit 0':
cd /home/pi/bfgminer
sudo screen -dmS bfg ./bfgminer -o stratum+tcp://solo.ckpool.org:3333 -u BITCOIN_ADDRESS -p btc -S all

*Exit with 'CTRL X' and confirm changes by pressing 'Y' and pressing 'Enter'



**Using screen - basics**

*Attach bfg screen session after Raspberry Pi startup:
sudo screen -x bfg

*Detach bfg screen session
Press 'CTRL A' thereafter 'D' (while session is attached)

*Kill bfg screen session
Press 'CTRL A' thereafter 'K', confirm by pressing 'Y' (while session is attached)
Jump to: