Although this is a bit of highjacking this “Tips for Verified Raspberry Pi Nodes” thread, I wanted to share my experience.
As I recently installed Peercoin 0.4 on two of my VPS, I want to share some commands which might help getting it up.
I’m willing to put it in a separate thread (or ask a mod to do that, if it is considered wrong in this thread). I just thought it might be recognized better if I put it here
This quick guide shall help to get a Peercoin client on a VPS to support the Peercoin network.
I [size=12pt]don’t[/size] recommend using a VPS for PoS minting!
Although this is convenient, it has serious security drawbacks compared to minting on a device, which you own and control. Remember: the VPS runs on a server using virtualization. You have no control over that. So you shouldn’t trust it
Minimum requirements:
[ul][li]server with x86 CPU[/li]
[li]linux operating system[/li]
[li]256 MB RAM[/li]
[li]400 MB free disk space (currently needed < 350 MB)[/li]
[li]logged in user is able to “sudo” commands[/li]
[li]broadband internet connection with no restrictions (NAT, firewall)[/li][/ul]
The programs “wget” and “tar” should be available out of the box in almost all linux distributions. If not, install them with the appropriate package manager.
I’m not sure, but I think “~/” will be the home directory for most linux distros as well.
Let’s go:
Log on to a console - in case of VPS this is most likely a connection via SSH.
Copy & paste the complete code section should work as well, but I don’t recommend this no-brainer approach
cd ~/
wget http://sourceforge.net/projects/ppcoin/files/0.4.0/ppcoin-0.4.0-linux.tar.gz/download -O ppcoin-0.4.0-linux.tar.gz
tar xvf ppcoin-0.4.0-linux.tar.gz
# if you are not sure wether you have a 32 bit or 86 bit linux, you can find it out this way:
uname -a
# there is either something "i686" (32 bit) or " x86_64" (64 bit) in the output
# use the appropriate version of ppcoind. in case of doubt chose the 32 bit version (memory issues at 32 bit seem to be no problem with Peercoin ;) )
sudo cp ppcoin-0.4.0-linux/bin/64/ppcoind /usr/bin/
# or
sudo cp ppcoin-0.4.0-linux/bin/32/ppcoind /usr/bin/
# create a ppcoin.conf file (owner-readable-only) with rpcuser and rpcpassword (required for ppcoind to be run as daemon)
mkdir ~/.ppcoin/
echo rpcuser=bitcoinrpc >> ~/.ppcoin/ppcoin.conf
echo rpcpassword=764ghKJBJR754fghfjzt67rdJGftd587tgf45edhTGdd >> ~/.ppcoin/ppcoin.conf
sudo chmod 700 ~/.ppcoin/
sudo chmod 400 ~/.ppcoin/ppcoin.conf
# start ppcoind as daemon
ppcoind -daemon
# wait some time before you check the status (else "error: couldn't connect to server" is shown)
ppcoind getinfo
# wait for the block chain to be synced
You should inspect the number of connections after ppcoind is runnning for some time. After reaching 8 connections quite fast it is expected to grow slowly. If you constantly stay at 8 connections, there might be something wrong and the desired effect of supporting the network has not been achieved. It might be better to stop ppcoind in that case. But give it some time!
ppcoind hovers between 17 and 21 connections (after ppcoind is running for approx. 2 hours; I’ll monitor that):
ppcoind getinfo
{
"version" : "v0.4.0ppc-beta",
"protocolversion" : 60004,
"walletversion" : 60000,
"balance" : 0.00000000,
"newmint" : 0.00000000,
"stake" : 0.00000000,
"blocks" : 105594,
"moneysupply" : 21293800.47462900,
"connections" : 20,
"proxy" : "",
"ip" : "obfuscated",
"difficulty" : 103854944.26609707,
"testnet" : false,
"keypoololdest" : 1396903475,
"keypoolsize" : 101,
"paytxfee" : 0.01000000,
"errors" : ""
}
…for the record: one of my VPS troubles me. Getinfo shows “ip” : “0.0.0.0” and 0 connections. There’s something wrong… I bet there’s some NAT as part of the virtualization