-
Notifications
You must be signed in to change notification settings - Fork 137
How to Build paycoind on Raspian (Raspberry Pi)
This is the process I used to create a Paycoin Node on a Raspberry Pi running Raspian.
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
The above steps saves about 300mb of space.
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
Type df -k -Bg
and if the top line is 3.9gb and you have larger than a 4gb sd card read the following paragraph.
If you have larger than a 4gb SD card and are using the 4GB image for Raspian you can follow this tutorial to expand the file system so you get full use out of the SD card.
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
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
cd /opt (If is doe not exist then sudo mkdir /opt)
sudo git clone https://github.com/PaycoinFoundation/paycoin.git
cd /opt/paycoin/src
This is the longest step and why extra RAM is needed. Run it overnight or when you have other things to do, it will take a long time
sudo make -f makefile.unix USE_UPNP=-
sudo cp paycoind /usr/local/bin (this allows you to type paycoind "wallet command" from any directory)
cd ~
paycoind &
nano ~/.paycoin/paycoin.conf
rpcuser=pick any username
rpcpassword=A really strong password
server=1
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 *
cd ~/
paycoind backupwallet xpy_backup_wallet.dat
cd ~/.paycoin
mv wallet.dat old_wallet.dat
mv ~/xpy_backup_wallet.dat ~/.paycoin/wallet.dat
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)
paycoind help
paycoind listtransactions
paycoind listminting
These commands will remove unneeded folders. rmdir Templates rmdir Public rmdir Music rmdir Downloads rmdir Videos rmdir Documents rmdir Desktop cd python_games rm . cd .. rmdir python_games
vi .bashrc
- Find line 85 manually or if you type
/alias
- It will get you close and you can scroll down a few lines
- type i to get in insert mode
- Remove the # on line 85
- I personally like to add ah to the end of the command so the line should look like this:
alias ll='ls -lah'
- hit the esc key
- type
:wq
w = write (save) and q = quit
This will give you an easier to read directory listing
rather than