Generic:
Linux:
sudo apt-get install python2 python2-dev python2-twisted python2-pip-whl python2-setuptools-whl
sudo apt-get install gcc g++
Download the required submodules:
git submodule init
git submodule update
dash_hash:
cd dash_hash
python setup.py install --user
To use P2Pool, you must be running your own local dashd. For standard configurations, using P2Pool should be as simple as:
python run_p2pool.py
Then run your miner program, connecting to 127.0.0.1 on port 7903 with any username and password.
If you are behind a NAT, you should enable TCP port forwarding on your router. Forward port 9998 to the host running P2Pool.
Run for additional options.
python run_p2pool.py --help
https://en.bitcoin.it/wiki/P2Pool
Thanks to: