Bitcoin Forum
April 20, 2014, 08:15:37 AM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  All
  Print  
Author Topic: A Complete Guide to P2Pool - Merged Mining (BTC/NMC/DVC/IXC/I0C) plus LTC, Linux  (Read 103896 times)
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 07:29:23 PM
 #1

Scope of the P2Pool solution

Own P2Pool server installation, for the Mining of Bitcoins, Namecoins, Devcoins, IXcoins and I0coins using Merged Mining and also, for Litecoins.

Solution based on Ubuntu Linux 11.10 32 bits.

You can install P2Pool easily within a virtual machine powered by KVM, Xen or VMWare.

The payout logic of P2Pool is PPLNS (Pay-Per-Last-N-Shares).

This guide does not require advanced Linux knowledge.

NOTE 1: You need to have your mining rig already working somehere...

NOTE 2: Change aptitude for apt-get if the command do not exist in your installation.


Brief of procedure

1- Install Ubuntu Linux 11.10;

2- Install Bitcoin 0.6.0 Client;

3- Install all packages needed to use P2Pool;

4- Start P2Pool for Bitcoins;

5- Point your miners to your newly P2Pool;

6- Accessing your P2Pool statistics;


(OPTIONAL FROM NOW)

7- Make a one-time donation to all miners of P2Pool simultaneously (including yourself!);

8- Automatic regular donations (daily, weekly or monthly) to the miners;

9- Install all needed packages to compile and use Litecoin, Namecoin, Devcoin, IXcoin and I0coin;

10- Start P2Pool for Litecoins;

11- Point your miners to your newly Litecoin P2Pool;

12- Accessing your Litecoin P2Pool statistics;

13- Make a one-time donation to all miners of Litecoin P2Pool simultaneously (including yourself!);

14- Start P2Pool for Bitcoin with Merged Mining enabled;


Complete procedure


1- Install Ubuntu Linux 11.10 - 32 bits server.

 Download the CD Image of Ubuntu 11.10 from: http://mirror.globo.com/ubuntu/releases/oneiric/ubuntu-11.10-server-i386.iso

 The minimum requirement is a Virtual Machine with the following settings: 2 CPUs, 1024MB of RAM and 10G disk.

 Soon as the CD starts, press F4 and choose "Minimal Installation", for phisical servers or, "Minimal Installation Virtual" for virtual machines powered by Xen, KVM or VMWare.

 During the installation, make a user called "administrative" and give to it a GOOD password. Do not encrypt its homedir during the installation.

2- Installing Bitcoin

Run the following commands:

Code:
sudo aptitude install python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo aptitude update
sudo aptitude install bitcoind

Optional (for Desktops or servers with GUI):

Code:
sudo aptitude install bitcoin-qt

* Configuring and starting Bitcoin

NOTE: Type: "mkdir ~/.bitcoin/" to create this directory.

The file ~/.bitcoin/bitcoin.conf must contain:

Edit the file:
nano ~/.bitcoin/bitcoin.conf

Code:
server=1
daemon=1
rpcuser=usuariox
rpcpassword=SupEr3421Senha_SECRETAandGRandE

To start Bitcoin 0.6.0, type:

Code:
bitcoind

To use bitcoind (0.6.0), type:

Code:
bitcoind help


NOTE: The blockchain download will start now... You NEED to wait the full download BEFORE start P2Pool!!

NOTE: If you already have your P2Pool running alongside with Bitcoin <0.6.0 and want to upgrade Bitcoin, I recomend a new and clean ~/.bitcoin directory for Bitcoin 0.6.0


3- Install all packages needed to use P2Pool;

Code:
sudo aptitude install screen git python-rrdtool python-pygame python-scipy python-twisted python-twisted-web python-imaging


4- Start P2Pool for Bitcoins;

* Get P2Pool latest software version:

Code:
git clone git://github.com/forrestv/p2pool.git

* Running P2Pool

Code:
screen -d -m -S btcp2pool ~/p2pool/run_p2pool.py --give-author 0 usuariox SupEr3421Senha_SECRETAandGRandE

* To connect to your Bitcoin P2Pool output console:

Code:
screen -x btcp2pool

* Blocks mined by P2Pool since you're in:

Code:
grep BLOCK ~/p2pool/data/bitcoin/log

* Got share!

Code:
grep GOT\ SHARE ~/p2pool/data/bitcoin/log

* To donate a small percentage to the P2Pool author, remove the option "--give-author 0":

Code:
screen -d -m -S btcp2pool ~/p2pool/run_p2pool.py usuariox SupEr3421Senha_SECRETAandGRandE

* Upgrading P2Pool to a newer version:

Code:
cd ~/p2pool
git pull

Then, stop and start P2Pool by connecting to its console and hitting "control+c" and, start it again.

NOTE: You need to know the IP address of your P2Pool server, to get it, type:

Code:
ip r

The IP address will appear right after the string "src".


5- Point your miners to your newly P2Pool;

Code:
cgminer -o http://IP_P2POOL_SERVER:9332/ -u garimpeiro1 -p x -g 1 --auto-fan --auto-gpu --gpu-engine 600-900 --gpu-memclock 180 -I 8 --submit-stale --gpu-reorder --api-listen --api-network


6- Accessing your P2Pool statistics;

Code:
http://IP_P2POOL_SERVER:9332/graphs/


WELL DONE!


Now we have the pluses...


7- Make a one-time donation to all miners of P2Pool simultaneously (including yourself!);

Code:
bitcoind sendmany "" "$(wget -O- http://IP_P2POOL_SERVER:9332/patron_sendmany/5.0)"


8- Automatic regular donations (daily, weekly or monthly) to the miners;

Code:
crontab -e

Type:

Code:
# Daily donations:
#0 0 * * * bitcoind sendmany "" "$(wget -O- http://IP_P2POOL_SERVER:9332/patron_sendmany/2)"

# Weekly donations:
#0 0 * * 0 bitcoind sendmany "" "$(wget -O- http://IP_P2POOL_SERVER:9332/patron_sendmany/5)"

# Monthly donations:
#0 0 1 * * bitcoind sendmany "" "$(wget -O- http://IP_P2POOL_SERVER:9332/patron_sendmany/10)"

NOTE: To activate regular donations, uncomment the line you wish to activate, by removing the carachter "#".


9- Install all needed packages to compile and use Litecoin, Namecoin, Devcoin, IXcoin and I0coin;

Code:
sudo apt-get build-dep bitcoin
sudo aptitude install build-essential libglib2.0-dev libglibmm-2.4-dev libqt4-dev python-dev libcurl4-gnutls-dev

* Litecoin

Code:
git clone https://github.com/coblee/litecoin.git
cd ~/litecoin/src/
make -f makefile.unix litecoind
mkdir ~/.litecoin/

Content of ~/.litecoin/litecoin.conf:

Edit the file:
nano ~/.litecoin/litecoin.conf

Code:
server=1
daemon=1
rpcuser=liteuserx
rpcpassword=nkrt345udsdfjhgjhsdfuyrt78rtTJHRFHTDTYD
rpcport=9334
port=9335
gen=0

* Starting Litecoin

Code:
~/litecoin/src/litecoind

* Using Litecoin

Code:
~/litecoin/src/litecoind help

----------

* Namecoin

Code:
git clone git://github.com/namecoin/namecoin.git
cd ~/namecoin/src/
make -f makefile.unix namecoind
mkdir ~/.namecoin/

Content of ~/.namecoin/bitcoin.conf:

Edit the file:
nano ~/.namecoin/bitcoin.conf

Code:
server=1
daemon=1
rpcuser=usuarioy
rpcpassword=dasdGfhoiu35BCV47586fgdh234GDFSEG
rpcport=7333

* Starting Namecoin

Code:
~/namecoin/src/namecoind

* Using Namecoin
Code:
~/namecoin/src/namecoind help

----------

* Devcoin

Code:
git clone git://github.com/knotwork/old-devcoind.git
cd ~/old-devcoind/src/
make -f makefile.unix bitcoind
mkdir ~/.devcoin/

Content of ~/.devcoin/devcoin.conf:

Edit the file:
nano ~/.devcoin/devcoin.conf

Code:
server=1
daemon=1
rpcuser=devuser
rpcpassword=nggdhuiBGFhgf534746783ujghmgndf
rpcport=6333
port=6334

* Starting Devcoin

Code:
~/old-devcoind/src/bitcoind

* Using Devcoind

Code:
~/old-devcoind/src/bitcoind help

----------

* IXCoin

Code:
git clone git://github.com/ixcoin/ixcoin.git
cd ~/ixcoin/src/
make -f makefile.unix ixcoind
mkdir ~/.ixcoin/

Content of ~/.ixcoin/ixcoin.conf:

Edit the file:
nano ~/.ixcoin/ixcoin.conf

Code:
server=1
daemon=1
rpcuser=ixuser
rpcpassword=DsadsavgfhgfhRt356345fgdfgGSDF

* Starting IXcoin

Code:
~/ixcoin/src/ixcoind

* Using IXcoin

Code:
~/ixcoin/src/ixcoind help

----------

* I0Coin

Code:
git clone git://github.com/doublec/i0coin
cd ~/i0coin/src/
make -f makefile.unix i0coind
mkdir ~/.i0coin/

Content of ~/.i0coin/i0coin.conf:

Edit the file:
nano ~/.i0coin/i0coin.conf

Code:
server=1
daemon=1
rpcuser=i0user
rpcpassword=fHEWQhkhjbcvBCVfhsd32r23rvgfuufGFDgdf
port=7337
rpcport=7338

* Starting I0coin

Code:
~/i0coin/src/i0coind

* Using I0coin

Code:
~/i0coin/src/i0coind help


10- Start P2Pool for Litecoins;

* First, install "litecoin_scrypt" to Python:

Code:
cd ~/p2pool/litecoin_scrypt
sudo python setup.py install

* Start your Litecoin P2Pool:

Code:
screen -d -m -S ltcp2pool ~/p2pool/run_p2pool.py --give-author 0 --net litecoin --bitcoind-rpc-port 9334 --bitcoind-p2p-port 9335 liteuserx nkrt345udsdfjhgjhsdfuyrt78rtTJHRFHTDTYD

* To connect to your Litecoin P2Pool output console:

Code:
screen -x ltcp2pool

* Blocks mined by P2Pool since you're in:

Code:
grep BLOCK ~/p2pool/data/litecoin/log

* Got share!

Code:
grep GOT\ SHARE ~/p2pool/data/litecoin/log


11- Point your miners to your newly Litecoin P2Pool;

Code:
minerd --url http://IP_P2POOL_SERVER:9327/ --userpass ltcminer0:x

12- Accessing your Litecoin P2Pool statistics;

Code:
http://IP_P2POOL_SERVER:9327/graphs/

13- Make a one-time donation to all miners of Litecoin P2Pool simultaneously (including yourself!);

Code:
~/litecoin/src/litecoind sendmany "" "$(wget -O- http://IP_P2POOL_SERVER:9327/patron_sendmany/500.0)"

14- Start P2Pool for Bitcoin with Merged Mining enabled;

Code:
screen -d -m -S multip2pool ~/p2pool/run_p2pool.py --give-author 0 usuariox SupEr3421Senha_SECRETAandGRandE --merged http://usuarioy:dasdGfhoiu35BCV47586fgdh234GDFSEG@127.0.0.1:7333/


* Multi-Merged-Mining:

Code:
screen -d -m -S multip2pool ~/p2pool/run_p2pool.py --give-author 0 usuariox SupEr3421Senha_SECRETAandGRandE --merged http://usuarioy:dasdGfhoiu35BCV47586fgdh234GDFSEG@127.0.0.1:7333/ --merged http://devuser:nggdhuiBGFhgf534746783ujghmgndf@127.0.0.1:6333/ --merged http://ixuser:DsadsavgfhgfhRt356345fgdfgGSDF@127.0.0.1:8338/ --merged http://i0user:fHEWQhkhjbcvBCVfhsd32r23rvgfuufGFDgdf@127.0.0.1:7338/

NOTE: From day 2012/10/02, I'll start daily donations to Litecoin P2Pool miners, 200 LTC per day!

NOTE: From day 2012/10/02, I'll start almost daily donations to Bitcoin P2Pool miners, 1.5 BTC per day, but subdivided in 3 * 0.50 (at 08:00 AM, 16:00 PM and 00:00 AM)!

Regards,
Thiago

* Bitfication.com! Turn your fiat, into bits!
1397981737
Hero Member
*
Offline Offline

Posts: 1397981737

View Profile Personal Message (Offline)

Ignore
1397981737
Reply with quote  #2

1397981737
Report to moderator
1397981737
Hero Member
*
Offline Offline

Posts: 1397981737

View Profile Personal Message (Offline)

Ignore
1397981737
Reply with quote  #2

1397981737
Report to moderator
Unbeatable Service & Product Support
Grab Your Miners at GAWMiners.com
Order Before April 25th to receive
Double your Hashing Power for 1 week!

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

Posts: 1397981737

View Profile Personal Message (Offline)

Ignore
1397981737
Reply with quote  #2

1397981737
Report to moderator
1397981737
Hero Member
*
Offline Offline

Posts: 1397981737

View Profile Personal Message (Offline)

Ignore
1397981737
Reply with quote  #2

1397981737
Report to moderator
1397981737
Hero Member
*
Offline Offline

Posts: 1397981737

View Profile Personal Message (Offline)

Ignore
1397981737
Reply with quote  #2

1397981737
Report to moderator
Schwede65
Sr. Member
****
Offline Offline

Activity: 300


View Profile

Ignore
February 06, 2012, 07:36:39 PM
 #2

fine guide of a P2Pool-linux-solution...

what will all the poor windows-user do?  Grin

is it possible to have it for win too?
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 07:45:15 PM
 #3

fine guide of a P2Pool-linux-solution...

what will all the poor windows-user do?  Grin

is it possible to have it for win too?

I'm so sorry Schwede65... I have no clue about Windows, since I never used this thing in my life...  :-/

But, you can install the VMWare / VirtualBox in your Windows and follow this guide...  Wink

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 07:48:55 PM
 #4

Fellas,

 I am monitoring the hashrate of both P2Pools, for Litecoin and for Bitcoin...

 I wanna see those hashrates go up, up, UP!!

 Come on!!

Cheers!
Thiago

* Bitfication.com! Turn your fiat, into bits!
Gabi
Hero Member
*****
Offline Offline

Activity: 1050


View Profile

Ignore
February 06, 2012, 08:45:16 PM
 #5

fine guide of a P2Pool-linux-solution...

what will all the poor windows-user do?  Grin

is it possible to have it for win too?

I'm so sorry Schwede65... I have no clue about Windows, since I never used this thing in my life...  :-/

But, you can install the VMWare / VirtualBox in your Windows and follow this guide...  Wink
Don't

For Windows it's much much easier.
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 10:14:17 PM
 #6

fine guide of a P2Pool-linux-solution...

what will all the poor windows-user do?  Grin

is it possible to have it for win too?

I'm so sorry Schwede65... I have no clue about Windows, since I never used this thing in my life...  :-/

But, you can install the VMWare / VirtualBox in your Windows and follow this guide...  Wink
Don't

For Windows it's much much easier.

Impossible to be true.

I write 6 step, easy-to-follow guide. For Windows, it is too difficult to follow/setup...

Anyway, of course, it is up to you guys to choose which one is best for you...

Windows is so damn hard, it is obscure... And it is insecure, vulnerable, poorly made, catch viruses, froze...

Linux is safe, stable, open, well made / well architected, do not catch viruses, easy integration with cloud storages, native encrypted file system, huge community support, plug-and-play out-of-the-box for any hardware out there...  So, you decide.

Best,
Thiago

* Bitfication.com! Turn your fiat, into bits!
Schwede65
Sr. Member
****
Offline Offline

Activity: 300


View Profile

Ignore
February 06, 2012, 10:15:26 PM
 #7

I'm so sorry Schwede65... I have no clue about Windows, since I never used this thing in my life...  :-/

Hey ThiagoCMC, you can get down off your's high horse!

Thx to Holliday for the windows guide...
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 10:19:29 PM
 #8

I'm so sorry Schwede65... I have no clue about Windows, since I never used this thing in my life...  :-/

Hey ThiagoCMC, you can get down off your's high horse!

Thx to Holliday for the windows guide...

 Tongue

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 06, 2012, 10:44:38 PM
 #9


^^^^^^^^^
This is EASY    Huh     +_+

Anyway, it is usefull... No doubt...

So, now we have two P2Pool guides, for Windows and Linux...  Smiley

Sorry if I being rude, I have no patience with Windows... I don't care about it... I am really sorry...

Horses down...  lol

Best,
Thiago

* Bitfication.com! Turn your fiat, into bits!
Schwede65
Sr. Member
****
Offline Offline

Activity: 300


View Profile

Ignore
February 06, 2012, 10:57:23 PM
 #10


^^^^^^^^^
This is EASY    Huh     +_+

Anyway, it is usefull... No doubt...

So, now we have two P2Pool guides, for Windows and Linux...  Smiley

Sorry if I being rude, I have no patience with Windows... I don't care about it... I am really sorry...

Horses down...  lol

Best,
Thiago

 Grin
Red Emerald
Hero Member
*****
Offline Offline

Activity: 728



View Profile WWW

Ignore
February 07, 2012, 01:02:28 AM
 #11

Very helpful.  I already have my p2pool running, and it looks like we did all of the same things.

ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 07, 2012, 02:35:43 AM
 #12

 Grin

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 07, 2012, 03:16:19 AM
 #13


^^^^^^^^^
This is EASY    Huh     +_+

So, now we have two P2Pool guides, for Windows and Linux...  Smiley

Setting up P2Pool on windows is easier for people who are comfortable with windows.

Setting up P2Pool on linux is easier for people who are comfortable with linux.

I'm glad we have guides for both now! And maybe some day, a windows user like me, will use the linux guide to give it a shot!  Cheesy

I'm here to help you with that!!  ^^

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 07, 2012, 06:18:17 AM
 #14

* Added "-g 1" to cgminer;
* Added the screen option to connect to the P2Pool output console;

Added here:

Awesome P2Pool Web Stats Page:

http://p2poolparty.org/stats.html

And some code:

https://github.com/goblin/p2pool-stats/

Some "block history" page / table?

Some "round durations" page / table?

Tks,
Thiago

* Bitfication.com! Turn your fiat, into bits!
finway
Hero Member
*****
Offline Offline

Activity: 714


View Profile

Ignore
February 07, 2012, 03:19:11 PM
 #15

Nice!

ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 08, 2012, 12:07:51 AM
 #16

Nice!


Thanks!!


Step 10 updated with:

 * install "litecoin_scrypt" to Python


Cheers!
Thiago

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 09, 2012, 05:15:42 AM
 #17

Hi!

 Steps 4 and 10 was upgraded.

 Commands to show the blocks mined by P2Pool since you're in and to see when you got a share!

Cheers!
Thiago

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 09, 2012, 06:26:55 AM
 #18

I would love to see P2Pool with 1THash...

It is definitively the most awesome Bitcoin / Litecoin pool.

You do not need to trust in some third part to manage something so private.

That would be nice to have it fully integrated with Bitcoin/Litecoin clients... With automatic/dynamic sub-pools management... Or something like that, if needed... What about that?!

Cheers!
Thiago

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 09, 2012, 06:35:03 AM
 #19

Fellas,

 I am monitoring the hashrate of both P2Pools, for Litecoin and for Bitcoin...

 I wanna see those hashrates go up, up, UP!!

 Come on!!

Cheers!
Thiago

Litecoin P2Pool grow grom ~400kHash to 1000kHash!! iiiiihhihihihi!  Cheesy

Tomorrow (2012/10/02) I'll start donations to Bitcoin/Litecoin P2Pool subsidy!

1.5 Bitcoins (3 donations of 0.50) / day (~15 days)!

200 Litecoins / day (30 days)! Lets reach 3000kHash!! 5000kHash!!

Best!
Thiago

* Bitfication.com! Turn your fiat, into bits!
ThiagoCMC
Staff
Hero Member
*****
Offline Offline

Activity: 980


฿itcoin: Currency of Resistance!


View Profile WWW

Ignore
February 09, 2012, 07:14:02 AM
 #20

1.5 Bitcoins (3 donations of 0.50) / day (~15 days)!

I would suggest it's better to donate the 1.5 Bitcoins all at once each day.

Having a bunch of small coins in your wallet only makes for more fees when you want to combine them in a spend.

Dividing them up won't make much difference anyway, someone new joining the pool can just wait for tomorrow to get a bonus!

You read my mind!

So, I'll do it at once. 1.5 BTC / day at a random time. With ~24H between each donation.

BTW, if people just come in to receive the donation and go out, how patron_sendmany works internally?! I mean, put a rule there to maximize more the old miners instead the new ones... Just to try to obtain an certain level of equilibrium... If you mine 24/7 at P2Pool, you deserve more from this promotion... But I don't know how to do that... lol

Also, I would like to maximize the payments to the small miners! Wink

Maybe monitoring/logging the bitcoin/litecoin address age visible at patron_sendmany output?!

* Bitfication.com! Turn your fiat, into bits!
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  All
  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!