A short step-by-step on how to compile Bitcoind on Raspberry Pi.
First thing you need to do is to increase the RPi’s Swap Size
$ sudo vim /etc/dphys-swapfile
Modify the line to change the setting from 100Mb to 500Mb.
CONF_SWAPSIZE=100
to
CONF_SWAPSIZE=500
Apply the changes
$ sudo dphys-swapfile setup
$ sudo dphys-swapfile swapoff
$ sudo dphys-swapfile swapon
Check the new swap size using free
command
$ free
Update your Raspberry Pi’s packages
$ sudo apt-get update
$ sudo apt-get upgrade
Install all dependencies needed to compile the bitcoind
$ sudo apt-get install checkinstall subversion git git-core build-essential
$ sudo apt-get install libtool autotools-dev autoconf
$ sudo apt-get install libssl-dev libdb++-dev libminiupnpc-dev
$ sudo apt-get install libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-all-dev
After successfully installing the packages, go to your preferred directory for downloading the bitcoind source code to compile.
$ cd ~
$ mkdir source
$ cd source
$ git clone git://github.com/bitcoin/bitcoin.git
$ cd ~/source/bitcoin/src
Prepare the bitcoin source code from github
$ ./autogen.sh
$ ./configure --without-gui
Now… grab something to eat or to watch while compiling. It’s gonna take a long while to compile.
After a few (maybe hours)… you may now configure your bitcoin.conf and run
$ ~/source/bitcoin/src/bitcoind -daemon
Watch out for my next post on setting-up bitcoind (bitcoin.conf settings)
Update:
For minimal configuration… create this file in ~/.bitcoin/bitcoin.conf
server=1
rpcuser={insert your preferred username}
rpcpassword={insert your preferred long hash password for security}
rpctimeout=30
rpcport=8332
gen=0
allowreceivebyip=1
Toss some coins!! 🙂 BTC: 1Hb9ci7bcEQ5RNnKnUGEgWj7amBF37mEY6
Links:
You must be logged in to post a comment.