How to setup a Stash mining pool for beginners

This guide will demonstrate how to set up your own personal Stash mining pool.

Prerequisites

  • VPS running Ubuntu 18.04 with 1GB RAM
  • Mining software (eg ccminer — this is specific to your mining hardware)
  • A Stash address for mining payouts

We will be installing a Stash Core node and a Stratum Pool. The Stash Core node and the Stratum Pool will be configured to talk to each other. The Stratum Pool will allow miners to connect and start mining Stash.

Follow Part A) of the guide How to setup a Stash masternode for beginners except when you get to number 10 change:

wget stashpay.io/masternode.sh && bash masternode.sh

To this:

wget stashpay.io/pool.sh && bash pool.sh [your mining address here]

Substitute “[your mining address]” with the Stash address you would like your mining rewards to be paid to. In this example we use Xj4YENArPqPMSiaziaasepj3jgqJY65cH3

This will take some time as the script automatically installs a Stash Core node and a Stratum Server.

When prompted to install the Stash Core node type “y” for yes and press Enter

When the installation completes you will see the stratum details needed to connect your miner to the Stash Core node to start mining.

See this gif screen recording below to see the entire installation process (may take some time to load):

We will now connect our miner to our mining pool. Which mining software you use will depend on your mining hardware and personal preferences. In this example we will use ccminer 2.3 for nVidia GPUs by tpruvot@github.

To connect to our stratum pool type:

ccminer.exe -a x11 -o stratum+tcp://[ipaddress]:3032

replacing “[ipaddress]” with your VPS ip address from step A) . In our example we type:

ccminer.exe -a x11 -o stratum+tcp://155.138.128.16:3032

If all goes well your miner should now connect to your pool and start mining.

To check that your stratum node server is running type:

source ~/.bashrc

Then type:

forever list

You should see a running process and a log file location. The log file location is randomly generated each time the server reboots and will be different on your server.

To check the Stratum server is running type:

tail -f /root/.forever/[random].log

replacing “[random]” with the letters in your output above.

By default the server opens two ports 3032 and 3256. This and many other settings such as difficulty and payout settings can be modified.

To change the default pool configuration edit the config file:

nano node_modules/stratum-pool/pool.js

After making changes reboot your VPS.

The forever process ensures that Stratum Pool automatically starts when your VPS boots up. This process is started via crontab. To edit this type:

crontab -e

(press 1. nano for editor is prompted)

To check the Status of your Stash Core Node see Troubleshooting section of How to setup a Stash masternode for beginners


Originally published at medium.com on March 11, 2019.