Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Last active June 8, 2019 07:51
Show Gist options
  • Save imylomylo/fc40542912df01d3caf2ba1982932e92 to your computer and use it in GitHub Desktop.
Save imylomylo/fc40542912df01d3caf2ba1982932e92 to your computer and use it in GitHub Desktop.
komodo-in-a-box install komodo and nanomsg

If installing iguana-in-a-box notary mgmt - Iguana dependency - nanomsg

cd ~
git clone https://github.com/nanomsg/nanomsg
cd nanomsg
mkdir build
cd build
cmake .. -DNN_TESTS=OFF -DNN_ENABLE_DOC=OFF
cmake --build . 
sudo cmake --build . --target install
sudo ldconfig

Clone the source - beta release or jl777 pre-alpha-release

Option 1 - beta release

cd ~
git clone https://github.com/komodoplatform/komodo.git
cd komodo
git checkout beta

Option 2 - jl777 pre-alpha-release

cd ~
git clone https://github.com/jl777/komodo.git
cd komodo
git checkout jl777

Build & Install

Fetch zcash params (1GB)

./zcutil/fetch-params.sh

Build komodo

./zcutil/build.sh -j$(nproc)

Configuration

Create seed node and mining node data dir

cd ~
mkdir ~/.komodo
mkdir ~/coinData

Create configuration file

cd ~/.komodo
touch komodo.conf
rpcuser=$(dd bs=24 count=1 if=/dev/urandom | base64 | tr +/ _.)
rpcpassword=$(dd bs=24 count=1 if=/dev/urandom | base64 | tr +/ _.)
echo "rpcuser=$rpcuser" > komodo.conf
echo "rpcpassword=$rpcpassword" >> komodo.conf
echo "rpcport=7771" >> komodo.conf
echo "daemon=1" >> komodo.conf
echo "server=1" >> komodo.conf
echo "txindex=1" >> komodo.conf
chmod 0600 komodo.conf

Create shortcut for executable path

cd ~
mkdir bin
sudo ln -sf ~/komodo/src/komodod /usr/local/bin/
sudo ln -sf ~/komodo/src/komodo-cli /usr/local/bin

Congratulations! You're now ready for the magic of komodo-in-a-box!

Log out & log back in for komodod & komodo-cli to be available for komodo-in-a-box.

@tssandor
Copy link

Very first line should be cd ~

@tssandor
Copy link

Actually all "cd" should be "cd ~"

@tssandor
Copy link

I think we should either symlink komodod and komodo-cli to /usr/local/bin or add ~/bin to the PATH

@imylomylo
Copy link
Author

changed all cd to cd ~ and linked to /usr/local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment