How to setup own Mining Pool step by step

in #kr5 years ago

This is a step by step guide on how to setup your own mining pool for things like GeekCash, Bitcoin, Litecoin and other crypto-currencies.

Connect to VPS — Ubuntu which GeekCash is already
To install GeekCash Daemon follow the instructions below: https://medium.com/geekcash/how-to-setup-masternode-from-beginners-ea5f60686790

  1. We need install some required packages

Node 8.x.x

sudo apt-get install libevent-pthreads-2.0–5
sudo apt-get install libcurl4-openssl-dev
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
make sure redis-server work

  1. Install open-node-mining-portal

3.1 Get source

git clone https://github.com/geekcash/node-open-mining-portal.git pool
cd pool
npm install
Before run you must change some configuration — I use FileZilla to edit file thought SFTP

3.2 Change pool/config.json

goto /root/pool rename config_example.json to config.json

edit config.json and change the website configuration to match your server

Save and push change

3.3 Change geekcash.json

Go to root/pool/configs -> rename geekcash_example.json to geekcash.json

return terminus back to root

Create new address:

geekcash-cli getnewaddress pool
GLLDUZqZFof4cdrffZd4RmT1V8cKFM4Npz

Go to .geekcash → cat geekcash.conf to show configuration

rpcuser=rKGhy6aC7TPB
rpcpassword=ZMGCchzgRUSGtIfCr9CQhRgqylgg4U2J
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
Edit file geekcash.json

Change address and rewardRecipients to your new created pool address

Change user and password to your rpcuser and rpcpassword

Save file and push updated file

3.4 Test pool

Go to pool and run node init

3.5 Install Pm2 to keep pool working

npm install pm2 -g
start init.js via pm2
pm2 start init.js — name=”pool”

3.6 Now try mining on new pool

Sort:  

Congratulations @raouf-engineer! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 10 posts. Your next target is to reach 20 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @raouf-engineer! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 62513.70
ETH 2949.39
USDT 1.00
SBD 3.60