[TUTORIAL/Arch Linux] How to compile/setup a jumpcoin node.

  • Ok, let's get right into it.

    In this tutorial I am going to use GCC.

    You will also need git, python and probably an AUR package manager.

    1. Install all dependencies

    OpenSSL 1.0 (higher version will fail, trust me ;D)

      sudo pacman -S openssl-1.0

    Boost 1.58 (higher version will fail)

    Boost is a bit harder because we have to build boost from source.

    1. $ mkdir jumpcoin
    2. $ cd jumpcoin
    3. $ wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2
    4. $ tar -xf boost_1_58_0.tar.bz2
    5. $ cd boost_1_58_0
    6. $ ./bootstrap.sh --prefix=build
    7. $ ./b2 install --prefix=build

    This process could take a while...

    Consider enjoying Star Wars while waiting ;)

    telnet towel.blinkenlights.nl

    Now edit the file boost_1_58_0/boost/asio/ssl/impl/context.ipp

    Change Line 93 to ''handle_ = ::SSL_CTX_new(::SSLv23_method());"

    Change Line 96 to ''handle_ = ::SSL_CTX_new(::SSLv23_clien_method());"

    Change Line 99 to ''handle_ = ::SSL_CTX_new(::SSLv23_server_method());"

    2. Clone GitHub Repo

    git clone https://github.com/Jumperbillijumper/jumpcoin

    3. Edit the Makefile

    cd jumpcoin/src

    nano makefile.unix

    Remove USE_UPNP

    Change Line 158 to "LIBS += /usr/lib/libleveldb.so $(CURDIR)/leveldb/libmemenv.a"

    4. Set environment variables

    1. $ export BOOST_INCLUDE_PATH=../../boost_1_58_0/build/include
    2. $ export BDB_INCLUDE_PATH=/usr/include
    3. $ export OPENSSL_INCLUDE_PATH=/usr/include/openssl-1.0
    4. $ export BOOST_LIB_PATH=../../boost_1_58_0/build/lib
    5. $ export OPENSSL_LIB_PATH=/usr/lib/openssl-1.0

    5. Build leveldb

    cd leveldb && chmod +x ./build_detect_platform && make libleveldb.a && make libmemenv.a && cd ..

    6. Build jumpcoind

    Now it's the time, fingers crossed :D

    make -f makefile.unix

    7. Wait...

    Wait until the compilation is.

    Maybe stretch out or do some push ups. ;)

    8. After compilation

    strip jumpcoind reduce file size

    mv jumpcoind ../../ move executable

    cd ../../

    9. Jumpcoin setup

    mkdir ~/.jumpcoin

    create a new config "jumpcoin.conf"

    you can generate a random RPC username and password with openssl rand -hex 64 (64 is the length in bytes)

    Before running the node you can copy your wallet.dat to ~/.jumpcoin to import your wallet

    10 Finally :thumbup:

    Now you can run ~/jumpcoin/jumpcoind (use -printtoconsole and -debug flags for more info)

    (11. Adjust Firewall for port tcp:31242)

    1. /*
    2. * Todo: Add signature
    3. */
    4. Jumpcoin: JfWeJHqnxPk2Xeq4gjRUUBC9QUJp4V7876