#Login as root

mkdir downloads

cd downloads

 

nano /etc/gai.conf

#Find the Line: #precedence ::ffff:0:0/96 100

#and change to

precedence ::ffff:0:0/96 100 

 

 

wget https://download.litecoin.org/litecoin-0.8.7.5/linux/litecoin-0.8.7.5-linux.tar.xz

tar xf  litecoin-0.8.7.5-linux.tar.xz

cd litecoin-0.8.7.5-linux

cd bin

cd 64

./litecoind

#this will make the paths. #now nano

nano /root/.litecoin/litecoin.conf

#paste below

server=1

rpcallowip=127.0.0.1

rpcuser=p2pool          

rpcpassword=SomeCrazyPasswordTHatIsLong

alertnotify=echo %s | mail -s "Litecoin Alert" This email address is being protected from spambots. You need JavaScript enabled to view it.

rpcport=10332

port=10333

#dont paste past here

#save it ctrl+o  ctrl+x

 

./litecoind &

./litecoind  getinfo

#look for "blocks" : 554673

#wait for block to down load (4-6 hours) check the current block count here for the chain

# http://explorer.litecoin.net/

 

sudo apt-get update

sudo apt-get install python-zope.interface python-dev python-twisted python-twisted-web git build-essential

 

cd  /root/downloads

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

cd p2pool

cd litecoin_scrypt

sudo python setup.py install

 

 

#check block status:  

/root/downloads/litecoin-0.8.7.5-linux/bin/64/litecoind getinfo

 

 

#makre sure the entire chanin is downloaded then

python run_p2pool.py --net litecoin

 

#try to connect with a miner

minerd --url http://xxx.xxx.xxx.xxx:9327

#if it all works kill your miner

#kill the script

screen -d -m -S ltcp2pool ~/p2pool/run_p2pool.py --net litecoin --address YourWalletAddress --give-author 0 p2pool SomeCrazyPasswordTHatIsLong