Author Topic: HOW TO: Installing p2pool on Ubuntu server 12.04  (Read 46369 times)

0 Members and 1 Guest are viewing this topic.

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
HOW TO: Installing p2pool on Ubuntu server 12.04
« on: December 27, 2013, 06:26:00 AM »
*** 1/31/2014 For those who've already followed this how-to there currently is a discussion regarding the share chain length initially being set to 12 hours and increasing it to 24 hours which should result in lower hashrate miners getting a more likely "fair-share".
If you are running a personal or public pool please check back frequently either on the first post or http://www.reddit.com/r/dogemining/comments/1wm315/i_think_i_found_the_reason_for_frequent_p2pool/ for updates (the reddit link will likely have more recent info as I can't always update immediately). This would require a coordinated update if a change is decided upon.


P2pool latency getting you down? Why not set up your own p2pool node!

For even more reasons to go with p2pool check out http://whatisp2pool.com

If none of the nodes listed here (http://doges.org/index.php/topic,3091.0.html) are doing it for you we still want you on p2pool.

Running your own p2pool node on your local lan you should have great latency, minimal dead rate and 0% fee.

I forgot to mention that in p2pool the block finder gets .5% of the block reward!
Ever found a block while in a pool and said "YES!!!! . . . . . Oh nevermind, damn I wish....."? At least with p2pool you get a little larger slice of the pie.

Just grab that old computer sitting in your basement or closet and get started.
As long as it's a decent single core with 1GB of ram or more you should be fine running it for a couple miners at your house.
Obviously as you scale up and add more hash you'll need more cpu/ram.

Installing p2pool
I've tried to write these instructions  to be as easy as possible. If I left something out please let me know.

This is for ubuntu 12.04. If you don't know what lines will allow you to paste multiple lines it's best to paste each

line by itself. Also I didn't install miniupnp when I did mine.

Let's begin:
Install Ubuntu server 12.04 http://www.ubuntu.com/download/server
.....
You have installed ubuntu server 12.04 and you are connected to the internet. Just in case you are using an old copy
on a cd and/or there are recent updates lets do:

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get update
sudo apt-get install git build-essential libssl-dev libdb4.8-dev libdb4.8++-dev libboost1.48-all-dev
sudo apt-get install git build-essential libssl-dev libdb4.8-dev libdb4.8++-dev libboost1.49-all-dev

git clone https://github.com/dogecoin/dogecoin
cd dogecoin/src

make -f makefile.unix USE_UPNP=-

***and here is where we wait, wait, wait for the compile to finish:

**Once finished lets do:
cd ~

./dogecoin/src/dogecoind

**dogecoin should pop an error up here telling you that you need to create a config file first so let do that:

cd .dogecoin

nano dogecoin.conf

**Paste in the following (shift+insert to paste on linux) - all of it at once (Change username and password)
rpcuser=MYNEWUSERNAME
rpcpassword=MYNEWPASSWORD
rpcallowip=127.0.0.1
addnode=67.205.20.10
addnode=146.185.181.114
addnode=95.85.29.144
addnode=78.46.57.132
addnode=188.165.19.28
addnode=162.243.113.110
rpcport=22555
port=22556
server=1
daemon=1

**Type CTRL+x
**and you want to save so hit Y, enter

cd ~

**Now we start dogecoin
./dogecoin/src/dogecoind

**hit enter a couple times if it doesn't return you to a prompt
**Syncing will take a while. You can check the current block it is on by typing "./dogecoin/src/dogecoind getinfo".
**Then check the current **block either on your windows client or at http://dogechain.info to see how far your new
**p2pool server has gotten.
***Continue:

sudo apt-get install python-zope.interface python-twisted python-twisted-web

git clone --recursive https://github.com/blixnood/p2pool

cd p2pool/litecoin_scrypt
sudo python setup.py install

** Blixnood/m has updated his p2pool repository to include the new front end by default.

**At this point technically p2pool is ready to go. But Blixnood also known as 'm' has designed a much better
**interface to p2pool than the standard one that has been included by default. So let's do this because you know
**you want the better one.
cd ~/p2pool
**Lets create a backup copy of the original just in case.
cp -r web-static web-static-backup
** Remove old web-static folder
rm -f -r web-static
** Grab blixnoods new version
git clone https://github.com/blixnood/P2PoolExtendedFrontEnd web-static


**Here are the instructions from M to finalize the front end:
**Edit js/settings.js and add your contact email.

cd web-static/js
nano settings.js
**add your contact email and ctrl+x

**Edit index.html and change the Litecoin-icon and Litecoin-large to the images you want (or remove them completely).

**Edit index.html and update the menubar link with your pool name.
cd ..
nano index.html

** Find this line: <a class="brand" href="/">P2Pool (<span class="symbol upper"></span>)</a> about, well exactly at
**the time of writing 39 lines down and change it to (or whatever you'd prefer instead of MYSUPERPIMP):

<a class="brand" href="/">MYSUPERPIMP P2Pool (<span class="symbol upper"></span>)</a>

** Ok you are all set.
** Let's make sure your dogecoind is current before starting p2pool:

./dogecoin/src/dogecoind getinfo

**Does the "Blocks": XXXXX match what's listed at dogechain.info?
**If so continue, otherwise start here again once your dogecoin client is fully synced with the network


**Change your username and password here with whatever you put into the dogecoin.conf created above

screen -d -m -S myp2pool ~/p2pool/run_p2pool.py --give-author 0 --net dogecoin MyNewUsername MyNewPassword

** some optional p2pool parameters that I've been asked about are fee and doge payout address here they are just insert them into the screen startup string (address should equal an address on your local wallet, rather than one on your p2pool server):

--fee x.x --address DOGEPAYOUTADDRESS

** This is what connects you to your p2pool session. To Exit the screen session HOLD CTRL and type a d   
** (ctrl+c will kill your p2pool session and you'll need to restart it.)

screen -x myp2pool

*!*!* -= SWAP CONFIG AND AUTO-RESTART =- !*!*!
http://doges.org/index.php?topic=5586.msg47856#msg47856

Start your miner:
Replace 192.168.1.1 with your p2pool computers ip address. You can find this by typing ifconfig at your linux prompt:
(look for the line similar to this: inet addr: 192.168.1.1)

cgminer --scrypt -o 192.168.1.1:22550 -u DOGEPAYOUTADDRESS -p anything
bfgminer --scrypt -o 192.168.1.1:22550 -u DOGEPAYOUTADDRESS -p anything

If you are running this on a home network you may need to forward port 22550 from your router to the pc you are running p2pool on. You can check peer connections and hashrate at http://Myp2poolipaddress:22550

If you are running this on a vps instead of a box at your house/business do some research on securing ssh with keys and setting up a firewall. A simple firewall like csf which interfaces to iptables is sufficient as long as you secure the ports correctly.

After the initial install if you reboot your machine you can start dogecoind and p2pool with:
cd ~
./dogecoin/src/dogecoind
screen -d -m -S myp2pool ~/p2pool/run_p2pool.py --give-author 0 --net dogecoin MyNewUsername MyNewPassword

Check that p2pool is up and connected with

screen -x myp2pool

and to exit Hold CTRL + a d

Looking forward to seeing p2pools hashrate skyrocket!  ;D

If you want to make your pool public please post at: http://doges.org/index.php?topic=3091.0 and I'll get you added.

Posting there bumps it to top post and it's not me bumping it so looks better than me constantly posting "Added new pool xyz" ;o)

* You should still set a couple failover pools in case your p2pool instance goes down.
Here: http://doges.org/index.php/board,54.0.html
Or
Here: http://doges.org/index.php/topic,3091.0.html

*updated miner port to 22550 instead of 95550

UPDATE DOGECOIND:
git clone https://github.com/dogecoin/dogecoin dogecoinnew
cd dogecoinnew/src
make -f makefile.unix USE_UPNP=-

cd~
killall dogecoind
mv -f dogecoin dogecoinold
mv -f dogecoinnew dogecoin
./dogecoin/src/dogecoind

p2pool should reconnect. Double check it though

screen -x myp2pool

exit screen: Hold CTRL + a d

You can also remove the old dogecoin folder
cd ~
rm -f -r dogecoinold
« Last Edit: February 05, 2014, 07:03:16 PM by crypto49er »
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #1 on: December 27, 2013, 11:45:06 AM »
Updated first post to remove blixnood front end installation instructions. New front end has been incorporated into the blixnood p2pool repository.
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #2 on: December 28, 2013, 09:51:27 AM »
*If you've attempted to follow this and failed miserably my apologies. Blixnood is using a different miner port than what I specified to connect to.

I'll update shortly.

I'm checking with him first to see if that was his intention before I update the main post.
Again sorry about that.


* Main post has been updated. If you already followed this but couldn't get your miner to connect just continue at the "Start your Miner" section and change your miner config to the new port. Sorry if there was any confusion.
« Last Edit: December 28, 2013, 10:12:08 AM by crypto49er »
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #3 on: December 30, 2013, 05:40:01 PM »
http://whatisp2pool.com
This is why you should mine on p2pool whether it is on your node or ours.
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline ineedmoredogecoin

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 2
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #4 on: December 31, 2013, 06:31:49 AM »
This thread needs more attention. Bump.

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #5 on: December 31, 2013, 11:33:41 AM »
"How to" has successfully been followed by Shibey. http://k42.ch:22550

It's not too difficult everyone, but if you are nervous about it try one of the other many p2pools available.
http://doges.org/index.php/board,54.0.html
or
http://doges.org/index.php/topic,3091.0.html
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline UNseleCT

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 2
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #6 on: December 31, 2013, 09:39:46 PM »
This is a great guide, thanks for the write up! I ran into an issue with make -f makefile.unix USEUPNP=- but resolved it with make -f makefile.unix USE_UPNP=.

I do have a quick question though... when starting p2pool it shows

determining payout address...
loaded cached address: (address)
Success! Payout Address: (address)

is this something I should be worried about? or is this normal?
« Last Edit: December 31, 2013, 09:40:30 PM by UNseleCT »

Offline ineedmoredogecoin

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 2
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #7 on: January 01, 2014, 03:37:17 AM »
It's normal.

Offline crypto49er

  • Trade Count: (0)
  • Doge
  • **
  • Posts: 149
  • German Shepherd
    • View Profile
    • Crypto49er
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #8 on: January 01, 2014, 06:41:41 AM »
If you misconfigure a miner or set a pool fee any payouts will go to that address which was pulled from the install of dogecoind on your p2pool machine.
Pool Donations Appreciated: DTPgwgDvyDL3vcnJFf33nkhBm6o2ZxVT6G

http://doge.crypto49er.com:9555
http://doge-eu.crypto49er.com:9555

Offline 9d3ts

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 28
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #9 on: January 01, 2014, 02:56:52 PM »
Thanks for this. I'm having a bit of trouble, I'm pretty new to ubuntu server.

After compiling dogecoin at make -f makefile.unix USEUPNP=-

I get a miniupnp error. And "cd .dogecoin" gives a no such file error. I create the config. Then I try ./dogecoin/src/dogecoind and I get a no such file error.

What am I doing wrong? Thanks in advance
Much Broke, Many Thanks.
D5V8VX6QDBDBhZdBzhbobNt6X8DEbDyebC

Offline UNseleCT

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 2
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #10 on: January 01, 2014, 03:03:49 PM »
 I ran into an issue with make -f makefile.unix USEUPNP=- but resolved it with make -f makefile.unix USE_UPNP=

Offline 9d3ts

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 28
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #11 on: January 01, 2014, 05:59:17 PM »
Thank you, that fixed! Waiting for dogecoin to sync now.
Much Broke, Many Thanks.
D5V8VX6QDBDBhZdBzhbobNt6X8DEbDyebC

Offline undeadcircus

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 13
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #12 on: January 01, 2014, 08:24:40 PM »
I am planning to install a Radeon R9 270 in my Ubuntu 12.04 server. Can I run mining software in the same server that is hosting the p2pool software without any significant drawbacks? Would it pose any issues?

Also.. I've been asking all over the freakin' place.. But can anyone point me in the direction of a tutorial somewhere that will walk me through installing the drivers and a GPU miner for the R9 270 on an Ubuntu 12.04 server? I haven't gotten the card in yet, but I want to get all my bases covered before I get the hardware in.
« Last Edit: January 01, 2014, 08:25:46 PM by undeadcircus »

Offline jinx

  • Trade Count: (+10)
  • Puppy
  • *
  • Posts: 38
  • WUBWUBWUB
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #13 on: January 01, 2014, 10:02:50 PM »
nice guide
ask for skype/pm

Offline 9d3ts

  • Trade Count: (0)
  • Puppy
  • *
  • Posts: 28
  • Shiba Inu
    • View Profile
Re: HOW TO: Installing p2pool on Ubuntu server 12.04
« Reply #14 on: January 01, 2014, 11:00:01 PM »
Ok, so its up and running.

How do I config/view the default wallet?

Any other config settings once its running?

Much Broke, Many Thanks.
D5V8VX6QDBDBhZdBzhbobNt6X8DEbDyebC

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14