Bitcoin Forum
October 31, 2024, 12:07:16 PM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [TUTORIAL] Starting Bitcoin UNOMP - mining pool  (Read 376 times)
progof (OP)
Jr. Member
*
Offline Offline

Activity: 157
Merit: 4


View Profile
January 09, 2019, 01:27:59 PM
 #1

Instruction

1. To register for VPS hosting from link https://www.digitalocean.com/
2. Create "Droplet" Ubuntu 14 x64 / 1GB / 1vCPU / 25 GB SSD
3. Connect to server by SSH
4. In the console in turn type (copy-paste) the following commands:

Create a directory in which the pool software will be located.
Code:
cd /home && mkdir pool

Code:
sudo apt-get update

Code:
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev

Code:
sudo apt-get install libboost-all-dev git npm nodejs nodejs-legacy libminiupnpc-dev redis-server

Code:
sudo apt-get install libdb-dev libqrencode-dev qt4-qmake libqtgui4 libqt4-dev

Code:
sudo apt-get install libminiupnpc-dev libminiupnpc8 libboost1.48-all-dev

Code:
sudo apt-get install curl ntp unzip libdb++-dev libboost-all-dev libqrencode-dev aptitude && aptitude install miniupnpc

Install the daemon bitcoind
Code:
sudo add-apt-repository ppa:bitcoin/bitcoin

Code:
sudo apt-get update

Code:
sudo apt-get install bitcoind

Code:
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Code:
sudo curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh

Code:
source ~/.profile

Code:
nvm install 0.10.25

Code:
nvm use 0.10.25

Create a configuration file bitcoin.conf
Code:
mkdir ~/.bitcoin/ && nano .bitcoin/bitcoin.conf 

Code:
rpcuser=*your nickname*
rpcpassword=*your password*
rpcport=8332
server=1
daemon=1

Go to the pool directory and run the daemon
Code:
cd /home/pool/ && bitcoind

Clone the repository of the pool itself
Code:
git clone https://github.com/UNOMP/unified-node-open-mining-portal.git unomp

Code:
cd unomp

Customize the file config.json
Code:
cp config.json.example config.json && nano config.json

Code:
{
    "logLevel": "debug",
    "logColors": true,

    "cliPort": 17117,

    "clustering": {
        "enabled": true,
        "forks": "auto"
    },

    "defaultPoolConfigs": {
        "blockRefreshInterval": 1000,
        "jobRebroadcastTimeout": 55,
        "connectionTimeout": 600,
        "emitInvalidBlockHashes": false,
        "validateWorkerUsername": true,
        "tcpProxyProtocol": false,
        "banning": {
            "enabled": true,
            "time": 600,
            "invalidPercent": 50,
            "checkThreshold": 500,
            "purgeInterval": 300
        },
        "redis": {
            "host": "127.0.0.1",
            "port": 6379,
            "db": 0,
            "password": ""
        }
    },

    "website": {
        "enabled": true,
        "host": "Your ip VPS",
        "siteTitle": "UNOMP Pool",
        "port": 80,
        "stratumHost": "Your ip VPS",
        "stats": {
            "updateInterval": 60,
            "historicalRetention": 43200,
            "hashrateWindow": 300,
            "graphColors": ["#058DC7", "#50B432", "#ED561B", "#DDDF00", "#24CBE5", "#64E572",
            "#FF9655", "#FFF263", "#6AF9C4"]
        },
        "adminCenter": {
            "enabled": true,
            "password": "your password"
        }
    },

    "redis": {
        "host": "127.0.0.1",
        "port": 6379,
        "db": 0,
        "password": ""
    },

    "switching": {
        "switch1": {
            "enabled": true,
            "algorithm": "sha256",
            "ports": {
                "3333": {
                    "diff": 10,
                    "varDiff": {
                        "minDiff": 16,
                        "maxDiff": 512,
                        "targetTime": 15,
                        "retargetTime": 90,
                        "variancePercent": 30
                    }
                }
            }
        },
        "switch2": {
            "enabled": false,
            "algorithm": "scrypt",
            "ports": {
                "4444": {
                    "diff": 20,
                    "varDiff": {
                        "minDiff": 10,
                        "maxDiff": 30,
                        "targetTime": 15,
                        "retargetTime": 90,
                        "variancePercent": 30
                    }
                }
            }
        },
        "switch3": {
            "enabled": false,
            "algorithm": "x11",
            "ports": {
                "5555": {
                    "diff": 0.001,
                    "varDiff": {
                        "minDiff": 0.001,
                        "maxDiff": 1,
                        "targetTime": 15,
                        "retargetTime": 60,
                        "variancePercent": 30
                    }
                }
            }
        }
    },

    "profitSwitch": {
        "enabled": false,
        "updateInterval": 600,
        "depth": 0.90,
        "usePoloniex": true,
        "useBittrex": true
    }
}

Customize the file bitcoin.json
Code:
cd pool_configs/ && cp litecoin.json.example bitcoin.json && nano bitcoin.json

Code:
{
    "enabled": true,
    "coin": "bitcoin.json",

    "auxes": [],
    "address": "Your BTC address",// Address to which mined coins will come

    "rewardRecipients": {
        "Your BTC address": 1// The percentage that will be charged with the payment
    },

    "paymentProcessing": {
        "enabled": true,
        "paymentInterval": 3600,// Payout interval, specified in seconds
        "minimumPayment": 10,// Minimum payout
        "daemon": {
            "host": "127.0.0.1",
            "port": 8332,
            "user": "your nickname",
            "password": "your password"
        }
    },

    "ports": {
        "3008": {
            "diff": 1000
        },
        "3032": {
            "diff": 5000,
            "varDiff": {
                "minDiff": 2500,
                "maxDiff": 10000,
                "targetTime": 15,
                "retargetTime": 90,
                "variancePercent": 30
            }
        },
        "3256": {
            "diff": 25600
        }
    },

    "daemons": [
        {
            "host": "127.0.0.1",
            "port": 8332,
            "user": "your nickname",
            "password": "your password"
        }
    ],

    "p2p": {
        "enabled": false,
        "host": "Your ip VPS",
        "port": 8332,
        "disableTransactions": false
    },

    "mposMode": {
        "enabled": false,
        "host": "Your ip VPS",
        "port": 3306,
        "user": "me",
        "password": "mypass",
        "database": "db",
        "checkPassword": false,
        "autoCreateWorker": false
    }

}

Code:
cd .. && cd ..

Install and build redis
Code:
sudo apt-get install build-essential tcl

Code:
curl -O http://download.redis.io/redis-stable.tar.gz

Code:
tar xzvf redis-stable.tar.gz

Code:
cd redis-stable

Code:
make

Code:
make test

Code:
sudo make install

Code:
cd utils/

Code:
sudo ./install_server.sh

Code:
6 times press Enter

Code:
sudo service redis_6379 start

Go to the pool directory
Code:
cd .. && cd .. && cd unomp

We update and install additional packages
Code:
npm update

Code:
npm install posix

Start the pool
Code:
node init.js

Code:
Go to the pool web page http://your_ip_vps/

Code:
-o stratum+tcp://your_ip_vps:3333 -u <WALLET_ADDRESS> -p c=BTC
nshyamkrishna
Member
**
Offline Offline

Activity: 72
Merit: 11


View Profile
January 09, 2019, 06:55:40 PM
 #2

Nice Tutorial. Good Work
bountylayomi
Copper Member
Newbie
*
Offline Offline

Activity: 234
Merit: 0


View Profile
January 10, 2019, 10:10:37 AM
 #3

Great tutorial here.
WHALESBURG SMART MINING POOL:

Whalesburg Token (WBT) is ERC-20 utility token released by Whalesburg Mining platform. WBT is a tool that not only brings you to the next level of mining profitability, but itself is a tradable token. Also its an effective marketing way to gamify a product and build a strong community.

Holding WBT can bring you to the next level in terms of mining profitability. You can increase your share price and thus your overall profit by holding enough tokens to upgrade to the next tier.
ARTRN
Newbie
*
Offline Offline

Activity: 63
Merit: 0


View Profile
January 10, 2019, 11:25:54 AM
 #4

Great work. thanks for this.
progof (OP)
Jr. Member
*
Offline Offline

Activity: 157
Merit: 4


View Profile
January 14, 2019, 08:04:03 PM
 #5

up
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!