How to build a KoreCoin wallet on Raspberry Pi with openSUSE

Setup your Pi

First, you will need to setup your Raspberry Pi with openSUSE. If you haven’t done that, please go back and complete that step

Build the KoreCoin wallet

All done? Great. Now it is time to build your KoreCoin wallet

Use SSH to login to your pi.

ssh jproto@<ip address of your pi>

If you connected, you should be all ready to start building the Kore wallet.

Install the required software

We will be installing software so we need to switch to root user

su

Now let’s install our build dependencies

zypper install -t pattern devel_C_C++
zypper install boost-devel libdb-4_8 libdb-4_8-devel libssl43 \
libminiupnpc-devel libqrencode3 libevent-devel git libopenssl-devel

Go back to your user

exit

You should no longer be the root user and your prompt should no longer be red.

Make the wallet

Use git to clone the source

cd bin
git clone https://github.com/KoreTeam/KoreCoin.git kore-wallet

Fix leveldb

There are two issues with the level db implementation in the version of the wallet

The first is easy to fix. You need to make the file build_detect_platfrom executable.

cd ~/bin/kore-wallet/src/leveldb
chmod +x leveldb/build_detect_platform

The second is a bit more complex. The version of the atomic_pointer header filefor leveldb that is packaged with the wallet source code is not compatable with ARM architechture. Fortunately for us, later versions are. We can drop one in and make it work.

cd ~/bin/kore-wallet/src/leveldb/port
rm leveldb/port/atomic_pointer.h
wget https://raw.githubusercontent.com/google/leveldb/v1.20/port/atomic_pointer.h

Done.

Now we can build the wallet

cd ~/bin/kore-wallet/src
make -f makefile.unix -j4
strip korecoind
ln ./korecoind ~/bin/korecoind

Make the config file

Create the file ~/.KoreCoin/KoreCoin.conf

mkdir ~/.KoreCoin
nano ~/.KoreCoin/KoreCoin.conf

Note: replace the value for rpcpassword with your own value, make it a strong password as this allows access to your coins.

rpcuser=korecoinrpc
rpcpassword=xxxxxxxxxxxxxxxxyourrpcpasswordxxxxxxxxxxxxxxxxxxxxx
rpcallowip=127.0.0.1
alertnotify=echo %s | mail -s "kore alert" admin@foo.com
server=1
daemon=1
addnode=nnmnabc45yzj7xip.onion

Restrict access to KoreCoin.conf

chmod 600 ~/.KoreCoin/KoreCoin.conf

Start your wallet

You now have a functioning wallet. Go ahead and start it up and let it download the block chain. This will also take a while, up to a few days.

korecoind 

You can check on the status with the following command

korecoind getinfo

Resources

Below are some resources that may be helpful to you

Written on September 19, 2017