Bitcoin Forum
November 21, 2017, 05:02:19 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How create your own altcoin pool - Ubuntu 16.04 and baikal solo  (Read 1473 times)
optnickr
Member
**
Offline Offline

Activity: 110


View Profile
January 23, 2017, 11:58:49 AM
 #1

Install Required Packages
some commands do not put sudo!
Code:
$cd ~
$mdkir pool
sudo apt-get update
$sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
$sudo apt-get install libboost-all-dev git npm nodejs nodejs-legacy libminiupnpc-dev redis-server

$sudo apt-get install libdb-dev libqrencode-dev qt4-qmake libqtgui4 libqt4-dev
$sudo apt-get install libminiupnpc-dev libminiupnpc8 libboost1.48-all-dev


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

$sudo add-apt-repository ppa:bitcoin/bitcoin
$sudo apt-get update
$sudo apt-get install libdb4.8-dev libdb4.8++-dev

$sudo curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh
$source ~/.profile
$nvm install 0.10.25
$nvm use 0.10.25

$git clone https://github.com/inflationcoin/inflationcoin.git

Compile wallet daemon

Code:
$cd inflationcoin/
$cd inflationcoin/src/leveldb
$chmod 775 build_detect_platform
$sudo make libleveldb.a libmemenv.a
$cd ..
$make -f makefile.unix USE_UPNP=1 USE_QRCODE=1 USE_UPNP=1
$sudo ./InflationCoind
You will get a message stating there is no configuration file.
$sudo gedit ~/.InflationCoin/InflationCoin.conf

rpcuser=youruser
rpcpassword=yourpassword
rpcallowip=*
rpcport=11371
daemon=1
server=1
gen=0
addnode= 91.134.120.210
addnode= 185.122.58.10
addnode= 136.243.40.220


$sudo ./InflationCoind

Quote
you can compile qt wallet if you want
$cd ..
$qmake USE_UPNP=-
$make

Code:
$cd ~/pool
$git clone https://github.com/UNOMP/unified-node-open-mining-portal.git unomp
$cd unomp
$cp config.json.example config.json
$ifconfig
192.168.1.105 -- Its my wi-fi lan ip(you must copy your inet addr from your Wi-Fi or ethernet if you use ethernet).
Code:
$sudo gedit config.json
modify website ip
"siteTitle": "Pool name"
"stratumHost": "if you set no-ip<< or external IP"
"port": 8080 > must be above from port 6000
we have to make new wallet address

$cd ~/pool/inflationcoin/src/
$./InflationCoind getnewaddress

iD9Jnr5PqLkvGY2BN2fVHMPN8yEv2W18EZ < I received this address
Code:
$cd ~/pool/unomp/pool_configs/

$cp litecoin.json.example Inflationcoin.json

$sudo gedit inflationcoin.json

"enabled": true,
"coin": "inflationcoin.json",
"auxes": [],
"address": "iD9Jnr5PqLkvGY2BN2fVHMPN8yEv2W18EZ", << your wallet
payment interval ... 600 = 10 minutes
minimumpayment...
change all daemons and put your ip and port from ~/.Inflationcoin/Inflationcoin.conf in my case was "11371"

$cp ~/pool/unomp/coins/dash.json ~/pool/unomp/coins/inflationcoin.json
$sudo gedit ~/pool/unomp/coins/inflationcoin.json

inflationcoin.json edit


{
    "name": "inflationcoin",
    "symbol": "IFLC",
    "algorithm": "x11",
    "mposDiffMultiplier": 256
}

$sudo gedit ~/pool/unomp/init.js
"search for setrlimit then set from soft:100000 hard:100000 to soft:1000 hard:1000 sand and close"


we need install REDIS

Code:
$cd ~/pool
$sudo apt-get install build-essential tcl
$curl -O http://download.redis.io/redis-stable.tar.gz
$tar xzvf redis-stable.tar.gz
$cd redis-stable
$make
$make test
$sudo make install
$cd utils/
$sudo ./install_server.sh
enter
enter
enter
enter
enter
enter :)
$sudo service redis_6379 start

Test

Code:
$redis-cli
>save
ctrl+c

If you want to stop redis

Code:
$sudo service redis_6379 stop

To set Redis to automatically start at boot, run:
Code:
$sudo update-rc.d redis_6379 defaults
$cd ~/pool/unomp/
now we need to wait the wallet sync!
open a new terminal to check if wallet is sync


Code:
$cd ~/pool/inflationcoin/src/
$sudo ./InflationCoind getinfo

or

$sudo ~/pool/inflationcoin/src/InflationCoind getinfo

When the wallet finishes syncing:

Code:
$cd ~/pool/unomp/
$npm install posix
$npm update
$node init.js

all without sudo!  "npm and node init.js"

Video of this tutorial: https://www.youtube.com/watch?v=xsgZjgLcwH4

Good luck!

it is done!
WOW!! hard Cheesy

Thanks!
Donations: 1MoTYQvyW9zQWFxNc2gi4GSLHrjWK1AWCM

references:
http://blockgen.net/setup-your-own-mining-pool/
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis


My Blog:http://crazy-informatica.blogspot.com.br
1511240539
Hero Member
*
Offline Offline

Posts: 1511240539

View Profile Personal Message (Offline)

Ignore
1511240539
Reply with quote  #2

1511240539
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511240539
Hero Member
*
Offline Offline

Posts: 1511240539

View Profile Personal Message (Offline)

Ignore
1511240539
Reply with quote  #2

1511240539
Report to moderator
1511240539
Hero Member
*
Offline Offline

Posts: 1511240539

View Profile Personal Message (Offline)

Ignore
1511240539
Reply with quote  #2

1511240539
Report to moderator
jcreyesb
Full Member
***
Offline Offline

Activity: 140


View Profile
September 23, 2017, 01:11:37 AM
 #2

i can't installed  multi-hashing
 
Code:
npm ERR! multi-hashing@0.0.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the multi-hashing@0.0.9 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the multi-hashing package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs multi-hashing
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls multi-hashing
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ubuntu/unomp/node_modules/stratum-pool/npm-debug.log




what i can do? i erase and reinstall npm but always the same message
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!