Pages:
Author

Topic: [HOWTO] Setup a p2pool for Feathercoin - page 4. (Read 14494 times)

member
Activity: 98
Merit: 10
April 24, 2013, 01:21:06 AM
#6
Quick and dirty

Modified code can be found here - https://github.com/chrda/p2pool-fc

Instructions for Ubuntu 12.04
Code:
sudo apt-get update
sudo apt-get install python-software-properties screen git python-rrdtool python-pygame python-scipy
sudo apt-get install python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev
sudo apt-get install python-dev libboost-all-dev libdb++-dev autoconf automake ncurses-dev

Install Feathercoin Daemon:
Code:
cd ~/ ; git clone https://github.com/FeatherCoin/FeatherCoin ; cd ~/FeatherCoin/src ; make -f makefile.unix USE_UPNP=- ; mv feathercoind ~/
mkdir ~/.feathercoin
nano -w ~/.feathercoin/feathercoin.conf

Add this text into ~/.feathercoin/feathercoin.conf
Code:
server=1
daemon=1
rpcuser=rpcadmin
rpcpassword=GenerateAgoodpasswordhere
rpcport=9667

Fire Up Feathercoin daemon:
Code:
~/feathercoind

Get p2pool modifed code for feathercoin:
Code:
cd ~/ ; git clone https://github.com/chrda/p2pool-fc.git

Install scrypt module for ltc that feathercoin uses (Need sudo) :
Code:
cd ~/p2pool-fc/litecoin_scrypt ; sudo python setup.py install

Start up your P2pool for Feathercoin!:
Code:
screen -d -m -S fcpool ~/p2pool-fc/run_p2pool.py --net feathercoin -a YourFCfeePayoutAddress -f 1 --give-author 0 --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9337 rpcadmin yourgoodpasswordfromfeathercoin.confhere

You can use screen -r to open up the p2pool console, or you can tail -f ~/p2pool-fc/data/feathercoin/log

--w port (The port for the stat web interface and also the port where miners connect)
-f number ( Fee you will get for running the pool, in percent)

Some nice commands:
tail -f ~/p2poolf-fc/data/feathercoin/log | grep BLOCK

-----------------------
Thanks to paul21 for helping me find a few snags, and p2pool owner forrestv for creating the script.

When using the git code mention over, your p2pool should be able to connect to the 2 other servers i have setup.

Disclaimer:
I have tried to get as much help as possible modifying the p2pool, but there has been some lack of interest there. But hey, it "works".
Also might be some errors in the guide above, most can be solved with some linux skills. If not, post in the thread and you will get some help.
This guide will focus on Ubuntu 12.04 and might work fine on other ubuntu platforms.
There might be some code error showing up, but if shares are going through and stats seems fine, it should be working.

Got any inputs on the code, please contact me, i need to modify the 2 live servers also if certain code is changed.






I have successfuly setup my own feathercoin p2pool with the p2pool server running on virtualbox ubuntu 12.04, miner runing on win7 sp1 x64.
hero member
Activity: 631
Merit: 501
April 23, 2013, 04:47:07 PM
#5
I am receiving payments for blocks found.
Very nice work   Grin
legendary
Activity: 1344
Merit: 1001
April 23, 2013, 03:56:48 PM
#4
Very nice guide. I might actually give this a go...
member
Activity: 112
Merit: 10
April 23, 2013, 03:54:30 PM
#3
Thanks. Very informative.
hero member
Activity: 631
Merit: 501
April 23, 2013, 02:18:50 PM
#2
Everything works great... just update your p2pool launch script from

--bitcoind-rpc-port 9337

to

--bitcoind-rpc-port 9667

Based on your feathercoin.conf file -- and everything is good!   Grin


Edit:
I noticed some console errors when running the process... and I am not sure if it will mess with the block found/payout logic.

I am pointing some hashing power at P2Pool and hope that a block is found and paid out properly.
I will post back once I see this is working without any problems.
hero member
Activity: 602
Merit: 500
April 20, 2013, 11:35:12 PM
#1
Quick and dirty

Modified code can be found here - https://github.com/narken/p2pool-altcoins

Instructions for Ubuntu 12.04
Code:
sudo apt-get update
sudo apt-get install python-software-properties screen git python-rrdtool python-pygame python-scipy
sudo apt-get install python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev
sudo apt-get install python-dev libboost-all-dev libdb++-dev autoconf automake ncurses-dev

Install Feathercoin Daemon:
Code:
cd ~/ ; git clone https://github.com/FeatherCoin/FeatherCoin ; cd ~/FeatherCoin/src ; make -f makefile.unix USE_UPNP=- ; mv feathercoind ~/
mkdir ~/.feathercoin
nano -w ~/.feathercoin/feathercoin.conf

Add this text into ~/.feathercoin/feathercoin.conf
Code:
server=1
daemon=1
rpcuser=rpcadmin
rpcpassword=GenerateAgoodpasswordhere
rpcport=9667

Fire Up Feathercoin daemon:
Code:
~/feathercoind

Get p2pool modifed code for feathercoin:
Code:
cd ~/ ; git clone https://github.com/Yorango/p2pool-ftc

Install scrypt module for ltc that feathercoin uses (Need sudo) :
Code:
cd ~/p2pool-fc/litecoin_scrypt ; sudo python setup.py install

Start up your P2pool for Feathercoin!:
Code:
screen -d -m -S fcpool ~/p2pool-fc/run_p2pool.py --net litecoin -a YourFCfeePayoutAddress -f 1 --give-author 0 --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9337 rpcadmin yourgoodpasswordfromfeathercoin.confhere

You can use screen -r to open up the p2pool console, or you can tail -f ~/p2pool-fc/data/feathercoin/log

--w port (The port for the stat web interface and also the port where miners connect)
-f number ( Fee you will get for running the pool, in percent)

Some nice commands:
tail -f ~/p2poolf-fc/data/feathercoin/log | grep BLOCK

-----------------------
Thanks to paul21 for helping me find a few snags, and p2pool owner forrestv for creating the script.

When using the git code mention over, your p2pool should be able to connect to the 2 other servers i have setup.

Disclaimer:
I have tried to get as much help as possible modifying the p2pool, but there has been some lack of interest there. But hey, it "works".
Also might be some errors in the guide above, most can be solved with some linux skills. If not, post in the thread and you will get some help.
This guide will focus on Ubuntu 12.04 and might work fine on other ubuntu platforms.
There might be some code error showing up, but if shares are going through and stats seems fine, it should be working.

Got any inputs on the code, please contact me, i need to modify the 2 live servers also if certain code is changed.




Pages:
Jump to: