Raspberry PI 3 Fullnode

Wallet and Masternode support

Moderator: Core Team

Post Reply
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#1

Wed Aug 29, 2018 7:41 pm

Hello :D
I'm trying now to run a fullnode on a Raspberry Pi 3. Here are my steps deposited to try.

OS: Raspbian Stretch Lite https://www.raspberrypi.org/downloads/raspbian/

User : root or sudo su root

Code: Select all

# Swapfile
dd if=/dev/zero of=/mnt/mybtdxswap.swap bs=2M count=1000
mkswap /mnt/mybtdxswap.swap
swapon /mnt/mybtdxswap.swap

# Bitcloud https://github.com/LIMXTEC/BTDX-Masternode-Setup/blob/master/btdxsetup.sh
apt update -y && apt dist-upgrade -y
apt install automake build-essential libtool autotools-dev autoconf pkg-config libssl-dev -y
apt install libboost-all-dev -y
apt install git -y
apt install nodejs -y
apt install libminiupnpc-dev redis-server -y
apt install software-properties-common -y
apt install libevent-dev -y
apt install libncurses5-dev -y
apt install libzmq3-dev -y

cd /root/ && git clone https://github.com/LIMXTEC/Bitcloud.git
rm -rf /root/Bitcloud/db4
mkdir -p /root/Bitcloud/db4

#make Berkeley DB
cd /root/Bitcloud/ && wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz && cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/root/Bitcloud/db4 && make install

#make Bitcloud
cd /root/Bitcloud/
./autogen.sh
./configure LDFLAGS="-L/root/Bitcloud/db4/lib/" CPPFLAGS="-I/root/Bitcloud/db4/include/" --without-gui --with-unsupported-ssl --enable-tests=no CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"
make

# copy to usr/local/bin
strip /root/Bitcloud/src/bitcloudd
strip /root/Bitcloud/src/bitcloud-cli
strip /root/Bitcloud/src/bitcloud-tx
cp /root/Bitcloud/src/bitcloudd /usr/local/bin
cp /root/Bitcloud/src/bitcloud-cli /usr/local/bin
cp /root/Bitcloud/src/bitcloud-tx /usr/local/bin

#Set bitcloud.conf
mkdir -p ~/.bitcloud
rrpcuser="btdxpi$(shuf -i 100000000-199999999 -n 1)"
rrpcpassword="$(shuf -i 1000000000-3999999999 -n 1)$(shuf -i 1000000000-3999999999 -n 1)$(shuf -i 1000000000-3999999999 -n 1)"
echo -e "rpcuser=$rrpcuser \nrpcpassword=$rrpcpassword \nrpcallowip=127.0.0.1 \nserver=1 \nlisten=1 \ndaemon=1  \nlogtimestamps=1 \n" > /root/.bitcloud/bitcloud.conf

#swap off/disable for safe your SD-Card
service dphys-swapfile stop
systemctl disable dphys-swapfile

#Start Bitcloud and synch
bitcloudd

#watch debug.log
tail -f /root/.bitcloud/debug.log
Happy trying 8-)

Added in 46 minutes 50 seconds:
Add : --without-gui --with-unsupported-ssl --enable-tests=no

New:

./configure LDFLAGS="-L/root/Bitcloud/db4/lib/" CPPFLAGS="-I/root/Bitcloud/db4/include/" --without-gui --with-unsupported-ssl --enable-tests=no

Added in 15 minutes 12 seconds:
Remove: apt-get

New:
# Bitcloud https://github.com/LIMXTEC/BTDX-Masternode-Setup/blob/master/btdxsetup.sh
apt update -y && apt dist-upgrade -y
apt install automake build-essential libtool autotools-dev autoconf pkg-config libssl-dev -y
apt install libboost-all-dev -y
apt install git -y
apt install nodejs -y
apt install libminiupnpc-dev redis-server -y
apt install software-properties-common -y
apt install libevent-dev -y
apt install libncurses5-dev -y
apt install libzmq3-dev -y

Error in : mkdir -p ~/.bitcloud/bitcloud.conf

New:
mkdir -p ~/.bitcloud

New Version : 2.1.0

Remove : bitcloud.conf ... \naddnode=seed.bitcloud.network (now in the new Version)
Last edited by SpecT on Sun Sep 09, 2018 7:33 pm, edited 5 times in total.
These users thanked the author SpecT for the post:
luk (Thu Sep 06, 2018 5:56 pm)
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#2

Wed Aug 29, 2018 9:14 pm

apt install nodejs-legacy -y

The following information may help to resolve the situation:

The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Old Version working .. now broken ... waiting :?

Remove nodejs-legacy !
Last edited by SpecT on Fri Aug 31, 2018 8:45 pm, edited 1 time in total.
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#3

Fri Aug 31, 2018 8:45 pm

configure: error: Detected LibreSSL: This is NOT supported, and may break consensus compatibility!

Add to ./configure
--with-unsupported-ssl

trying
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#4

Sat Sep 01, 2018 7:35 am

make

error:
Makefile:3947: recipe for target 'libbitcoin_server_a-main.o' failed

Try : https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#memory-requirements

./configure LDFLAGS="-L/root/Bitcloud/db4/lib/" CPPFLAGS="-I/root/Bitcloud/db4/include/" --without-gui --with-unsupported-ssl CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"

... testing
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#5

Sat Sep 01, 2018 4:03 pm

Yes its works :-)

Have fun
User avatar
luk
Core Team
Posts: 39
Joined: Fri Jun 01, 2018 6:50 am
Has thanked: 10 times
Been thanked: 5 times

#6

Thu Sep 06, 2018 5:56 pm

Thank you very much for this guide!
User avatar
SpecT
Posts: 7
Joined: Tue Jun 05, 2018 9:36 am
Has thanked: 1 time
Been thanked: 3 times

#7

Sun Sep 09, 2018 7:37 pm

Version 2.1.0 works well on Raspberry Pi 3 8-)
These users thanked the author SpecT for the post:
luk (Fri Oct 05, 2018 7:01 am)
User avatar
luk
Core Team
Posts: 39
Joined: Fri Jun 01, 2018 6:50 am
Has thanked: 10 times
Been thanked: 5 times

#8

Fri Oct 05, 2018 7:02 am

SpecT wrote:
Sun Sep 09, 2018 7:37 pm
Version 2.1.0 works well on Raspberry Pi 3 8-)
Thank you very much for your contribution. I will announce this via Twitter :)
Post Reply