Skip to content

How to Build paycoind on Raspian (Raspberry Pi)

PaycoinMaster edited this page Nov 14, 2015 · 13 revisions

This is the process I used to create a Paycoin Node on a Raspberry Pi running Raspian.

Due to running on a Raspberry Pi you do not have enough RAM to build so we got to build Virtual RAM Know as SWAP

Create Swap

dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img

Setup your Development Environment

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y libdb++-dev
sudo apt-get install -y autoconf libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev
sudo apt-get install -y libdb5.3

Download newest Paycoin source

cd /opt (If is doe not exist then sudo mkdir /opt)
sudo git clone https://github.com/PaycoinFoundation/paycoin.git

Start Building paycoin

cd /opt/paycoin/src
sudo make -f makefile.unix USE_UPNP=-
sudo cp paycoind /usr/local/bin *(this allows you to type paycoind "wallet command" from any directory) *

Run Paycoind & Setup Paycoin.conf

cd ~
paycoind &
nano ~/.paycoin/paycoin.conf 
rpcuser=pick any username
rpcpassword=A really strong password
server=1

Important Commands

paycoind & - Adding the "&" runs the wallet as a service and will not terminate on logout
paycoind getinfo
paycoind encryptwallet (long complicated password) - Remember this as it is required to unlock your wallet to send coins and mint coins
paycoind walletpassphase (long complicated password) 99999999 - *Unlocks wallet for minting once blockchain is synchronized and you have mature coins *

Backup and Restore Wallet

Backup

cd ~/
paycoind backupwallet xpy_backup_wallet.dat

Restore

cd ~/.paycoin
mv wallet.dat old_wallet.dat
mv ~/xpy_backup_wallet.dat ~/.paycoin/wallet.dat

Upgrade Instructions.

cd /opt/paycoin
git pull
cd src
make -f makefile.unix USE_UPNP=-
paycoind stop
cp ./paycoind /usr/local/bin/
paycoind
paycoind getinfo (verify the correct wallet version)

Other useful commands

paycoind help
paycoind listtransactions
paycoind listminting
Clone this wiki locally