How to build a KoreCoin wallet on Ubuntu

Here are instructions on how to compile a KoreCoin QT wallet on Ubuntu from source

Kore logo

I am using

Get the dependencies

First we will need to add the bitcoin ppa. This will allow us to get the v4.8 of Berkeley DB.

sudo add-apt-repository ppa:bitcoin/bitcoin

press [Enter]

sudo apt-get update
sudo apt-get install git build-essential -y
sudo apt-get install libssl-dev libdb4.8-dev libdb4.8++-dev libboost-all-dev \
libminiupnpc-dev libqrencode-dev libevent-dev -y
sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools -y

Download the source

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

Build the source

Now we have the source code and the dependencies that we need. We just need to build the code.

This can be achieved with the following series of commands.

cd ~/bin/kore-wallet/ 
qmake "USE_UPNP=1"

Level db issue

I had issues with building leveldb and had to build it myself. You can do this with the following series of commands.

cd ~/bin/kore-wallet/src/leveldb
chmod +x build_detect_platform
make libleveldb.a libmemenv.a
cd ~/bin/kore-wallet/

Make and install

Now you are ready to make and install the wallet. This will take a while…

make
strip korecoin-qt

Making a config file

You will likely need to create a config file to get the wallet syncing. Close the wallet and create the following file Note: replace the rpcpassword value with some long string of random characters

mkdir ~/.KoreCoin
gedit ~/.KoreCoin/KoreCoin.conf

Paste in the follwing contents using your own secure RPC password. Warning: The RPC password grants access to your wallet and coins, keep it secure

rpcuser=korerpcuser
rpcpassword=<xxxxxxxxsomerandompasswordxxxxxxxxxxx>
rpcallowip=127.0.0.1
server=1
daemon=1
addnode=nnmnabc45yzj7xip.onion

Put the executable in your path

Make a link to your bin directory so it is in your path

ln ./korecoin-qt ~/bin/korecoin-qt

Add bin to your path

This will allow us to run scripts in ~/bin from any directory

gedit ~/.bashrc

Add this to the bottom of the file

export PATH=$PATH:~/bin

Now reload bashrc

source ~/.bashrc

Run the wallet

The wallet should be ready to go! You can run it with the following command. The first time you run the wallet it may give you an error that it can’t open the database file; if you get this, run it again.

korecoin-qt

Kore wallet

Trouble connecting?

If you still have trouble syncing, stop the wallet and replace the onion addresses that you put into your KoreCoin.conf file with ones that you find at the Korecoin Explorer.

Resources

Below are some resources that may be helpful to you

Written on September 16, 2017