Skip to content

Instantly share code, notes, and snippets.

@alexanderjsingleton
Last active February 24, 2022 00:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexanderjsingleton/28d6553ed2fc276c947e96c342332a26 to your computer and use it in GitHub Desktop.
Save alexanderjsingleton/28d6553ed2fc276c947e96c342332a26 to your computer and use it in GitHub Desktop.
How to Install Minera for Mining Bitcoin with Slushpool and GekkoScience USB Antsticks

How to Install Minera for Mining Bitcoin with Slushpool and GekkoScience USB Antsticks

Part 1: Raspberry Pi Set-up and Installation

Required Components

  1. Raspberry Pi: CanaKit starter-pack recommended- available via Amazon.
  2. USB-mouse
  3. USB-keyboard
  4. SD-card reader.
  5. HDMI-cable
  6. Access to an external-monitor or LCD-television via HDMI.
  7. Physical / LAN-Internet connection.

YouTube Tutorial

Alexander J. Singleton provides a YouTube screencast for Raspberry Pi set-up and configuration introducing Bitcoin-mining as part-1 of a 2-series tutorial via YouTube.

Part 2: Minera Client Install

Required Components

  1. GekkoScience 2-Pac Compac USB Stick Bitcoin Miner (15gh/s) available via Amazon or eBay.
  2. If you're attempting to maxmimize your env hash-rate beyond additional two ports provided by Raspberry Pi, I've only had success with industrial-grade external USB 20-port or 10-port hubs- also available for purchase at Amazon or eBay. 3.. Do not forget to purchase a USB powered-fan to cool any ennvironments supporting an external USB-hub- also available via Amazon or Ebay.

YouTube Tutorial

Alexander J. Singleton provides a YouTube screencast for Minera-client installation and configuration on Raspberry Pi utilizing GekkoScience-USB sticks as part-2 of series tutorial via YouTube.

Minera Client Installation and Configuration

  1. After setting-up your Raspberry Pi environment, launch terminal and run curl -o- https://raw.githubusercontent.com/getminera/minera/master/install_minera_ubuntu.sh | sudo bash

  2. Go to http://IP-address-of-your-local-mining-host/minera

    1. Download nmap and run nmap -sP 10.0.0.0/24 to locate the Minera host-IP address.
  3. In my case, my local-Minera URL is (http://10.0.1.102/minera). Upon access, enter the default username and password 'minera' (you'll want to change this later in Settings > User for InfoSec).

  4. Go to Minera Settings > Open Terminal

  5. Again, enter default minera username and password if you haven't already changed them yet.

  6. Minera configuration:

    1. cd /var/www/minera/minera-bin/src
    2. sudo mkdir -p git/vthoang; cd git/vthoang
    3. sudo git clone https://github.com/vthoang/cgminer.git
    4. cd cgminer
    5. sudo apt-get install libusb-1.0-0-dev
    6. sudo CFLAGS="-O2" ./autogen.sh --enable-gekko
    7. sudo make -j 2
    8. cp cgminer /var/www/minera/minera-bin/custom/cgminer-vthoang
    9. cd /var/www/minera/minera-bin/custom
    10. exit
  7. Return to minera-client homepage and select Settings > General

  8. Enable all radio-buttons featured in the Dashboard panels section to "On".

  9. After creating your account at slushpool, In the "Pools Settings" section, enter your slushpool-url, username.workername, and pool-password (E.G. "stratum+tcp://stratum.slushpool.com:3333", alexanderjsingleton.King, password)

  10. Under the "Custom miners" section slide radio-button to on (there should be a cgminer-vthoang flag-indictor next to the button).

  11. Within the "Local Miner Settings", under the "Currently selected" dropdown-bar, select "[Custom Miner]cgminer-vthoang" and below that dropdown-bar, there is another- select "--Preconfigured miner options--".

  12. Below that section there are two radio-buttons for "Enable logging" and "Append JSON conf (-c /var/www/minera/conf/miner_conf.json)"- slide them to "On."

  13. In the Manual Options sections, input the optimal hash-frequency parameters for your miners (E.G. for GekkoScience multiple 2-Pac-sticks --gekko-2pac-freq 150 OR if different sticks enter --gekko-compac-freq 200 --gekko-2pac-freq 150).

  14. Slide the last three features to "On"

    1. Autorestart if devices are possible dead.
    2. Miner Autorecover
    3. Miner superuser (root)
  15. Click Save & Restart

Return to the Dashboard- allow 5 minutes to compile and BOOM, you're a regular Bitcoin lemming!

Adding Additional Hardware or Revising Parameters

Any hardware additions to an existing Raspberry Pi * Minera environment or any adjustments to the hardware parameters specified in Minera Settings > Manual-options do indeed require recompiling cgminer. In order to resolve, proceed with the following:

  1. cd /var/www/minera
  2. sudo nano build_miner.sh
  3. Scroll down to the cgminer config and append --enable-blockerupter so the entire line displays CGMINER_CONFIG="--enable-avalon2 --enable-bflsc --enable-bitforce --enable-bitfury --enable-drillbit --enable-hashfast --enable-icarus --enable-klondike --enable-modminer --enable-blockerupter"
  4. Exit and Write.
  5. Run sudo ./build_miner.sh all
  6. Upon compiling, exit from your host-session, unplug the antsticks, power-cycle the Raspberry Pi and then plug-in antsticks.
  7. Log-in to the Raspberry Pi and sign-in to Minera- you should see verifiable success displayed in the Minera Dashboard > Device Tree.
@Malvu
Copy link

Malvu commented Feb 1, 2019

Hello
Having several GekkoScience USB Antsticks, do these work simultaneously or do I have to create a worker for everyone on SlushPool?
Pierre

@rhoeba
Copy link

rhoeba commented Jul 5, 2020

Hi alexander,

I have been trying to satart up with this whole system. But there is a problem i keep on running in to.
I'm not able to get Minera on the sim, whenever i try this it gives me a faulty code en just doesn't work at all.
Do you have any other people with this problem? if yes i would like to know how to work around it.

thanks!

@rhoeba
Copy link

rhoeba commented Jul 5, 2020

what is what i get.

./install_minera.sh: regel 62: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 63: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 64: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 65: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 66: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 67: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 68: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 69: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 70: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 71: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 72: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 73: redis-cli: opdracht niet gevonden
./install_minera.sh: regel 74: redis-cli: opdracht niet gevonden
Adding minera startup command to rc.local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment