Please login or register.

Bitmonerod Node on RPi2 - Working

A BIG thanks to NoodleDoodle, smooth & saddam for helping me.

Kit Used


RPi2

Manhattan 7-port USB 2.0 hub

Verbatim s256gb SSD

Download ubuntu for RPi2 2015-04-06-ubuntu-trusty.zip

Follow these instructions for getting UBUNTU on to your SSD or USB RaspiPress remember you're installing ubuntu not wheezy!

At this point I get the RPi2 to a point that I can disconnect the monitor, keyboard etc

I also MAC reserved the RPi2's IP Address via DHCP (On your router or DHCP server, so it has a consistent IP Address)

So a few tasks are required first

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
sudo halt -p

This powers it off so you can disconnect monitor, keyboard etc and SSH in from where you would normally

power up and ssh on to your RPi2

ssh [email protected]

CHANGE THE DEFAULT PASSWORD

bubtu@ububtu:~$ passwd
Changing password for ubuntu.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
sudo apt-get install dphys-swapfile

I've left the swap settings as default

sudo apt-get install screen

Screen is great, you can disconnect from the session and know it's still running fine Ctrl+Alt+d

Thats the preparing of the RasPi2 with ubuntu complete

You now need to install all the dependencies that bitmonero requires

sudo apt-get install git vim libboost1.55-all-dev build-essential doxygen libevent-dev libunbound-dev miniupnpc liblmdb-dev cmake libdb++-dev
git clone https://github.com/monero-project/bitmonero.git bitmonero

then we compile - took just under 2 hours for me.

cd
cd bitmonero
make -j2 release-arm7

The -j2 is to use the extra cores from your RPi2 - I've seen some bitcoin core instructions using -j4 for compiling

Once done you're ready to launch

cd build/release/bin
./bitmonerod --db-type berkeley

This took me about 36 hours to sync the blockchain

But it works a treat :-)

Syntax for starting bitmonero as a node

./bitmonerod --db-type=berkeley --rpc-bind-ip 0.0.0.0 --rpc-bind-port 5012

Syntax for starting simmplewallet to your new remote node

./simplewallet --daemon-address 192.168.0.XX:5012 --wallet-file ./wallet.bin
Replies: 16
osensei edited 8 years ago Weight: -194 | Link [ - ]

Hi, I just wanted to share a tip that could be added to the tutorial.

I've noticed that the process irqbalance starts to eat a lot of memory as time passes by. This is due to a bug which is explained and fixed here, and is also reported in launchpad.

It can be solved by either building a newer irqbalance from source, or installing it from this PPA