Description
\\ How to do it yourself | D.I.Y //
NOTE – This is just the DIY. You don’t need to do any of the below in order to get this set up. The pre-build is pretty much as plug and play as mining can get!
How to mine with an Antminer U2 on a Raspberry Pi 4, Raspberry Pi Model 3 A+ or Raspberry Pi Model Pi 3 B+
Open the “Terminal” app. Enter the following commands. If you have trouble, enter each command as its own separate line:
sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev zlib1g-dev git cd git clone https://github.com/kanoi/cgminer.git cd cgminer CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus sudo make install
— That’s it! You should be good to test if the installation was successful.
Type in the command:
cd cgminer sudo cgminer -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 128
In order to mine on your own, you need to change the mining pool URL to whichever mining pool you are using. It’s usually this part: stratum+tcp://stratum.kano.is:3333
You’d replace that with something like stratum+tcp://solo.ckpool.org:3333
This page will be updated on how to control this headless via SSH. [It’s easier than you think]
In order to run this yourself, you can
Mining URLs for popular Bitcoin Mining Pools:
Kano Pool - Registration required for solo mining. sudo cgminer -o stratum+tcp://stratum.kano.is:3333 -u USERNAME.WORKER -p x --suggest-diff 128
BTC Solo Mining sudo cgminer -o stratum+tcp://stratum.solomining.io:7777 -u CHANGETHISTOYOURBITCOINADDRESS -p x --suggest-diff 128
MMPool - Regular mining pool but whoever finds the block keeps all transaction fees from that block sudo cgminer -o stratum+tcp://stratum.solomining.io:7777 -u CHANGETHISTOYOURBITCOINADDRESS -p x --suggest-diff 128