How to Compile Bitcoind and Litecoind on Raspberry Pi

2 Sep
2014

raspberry-pi-controller

If you have a spare Raspberry Pi that you are not using you might want to turn it into a Bitcoin or Litecoin network node in order to support the network. The RPi is not very powerful and the use of an SD flash card might create some problems with reliability on the long term, but you might want to give it a try and see how long it will last. A 32GB SD card is recommended to be used in order to have some spare space available for the already pretty large Bitcoin blockchain, the Litecoin blockchain is much smaller. What is important to note is that it is not a wise idea to have the two clients running on the same Raspberry Pi as it will be a bit too much for the low power device. Also it will be a good idea to transfer the current blockchain files to the RPi, so that the device will not have to start from the beginning downloading the blockchain as this may take way too much time on it. Also some tweaks of the RPi OS could be implemented in order to reduce the unnecessary writes and optimize the memory usage of the device.

When you start and flash an ISO image on a 32GB SD card you will most likely not have the full space of the flash card available, so you need to extend the image to use the full card, you can do so by running the following command: sudo raspi-config


To compile Bitcoind 0.9.2.1 without wallet functionality:

sudo apt-get install libboost1.50-dev libboost-filesystem1.50-dev libboost-system1.50-dev libboost-program-options1.50-dev libboost-thread1.50-dev libboost-chrono1.50-dev libboost-test1.50-dev libcurl4-openssl-dev libdb5.3++-dev libminiupnpc-dev

wget https://github.com/bitcoin/bitcoin/archive/v0.9.2.1.zip
unzip v0.9.2.1.zip
cd bitcoin-0.9.2.1

./autogen.sh
./configure –disable-wallet
make

cd src
strip bitcoind


To compile Litecoind 0.8.7.2:

sudo apt-get install build-essential libssl-dev libboost-all-dev libminiupnpc-dev

wget https://github.com/litecoin-project/litecoin/archive/master-0.8.zip
unzip master-0.8.zip
cd litecoin-master-0.8

cd src
make -f makefile.unix
strip litecoind






Check Some More Similar Crypto Related Publications:

Leave a Reply

Your email address will not be published. Required fields are marked *

top