Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

How to Install Insight-api on Ubuntu 18.04

Discussion in 'Miscellaneous Dash Guides' started by Antti Kaikkonen, Jul 10, 2018.

  1. Antti Kaikkonen

    Antti Kaikkonen Active Member

    Joined:
    Jun 20, 2017
    Messages:
    250
    Likes Received:
    164
    Trophy Points:
    103
    Dash Address:
    XnZdwT1w2kGeH6RujwoyJ7BBNrukdyTBRB
    1) Update your server
    Code:
    sudo apt update
    sudo apt upgrade
    2) Install some tools and dependencies
    Code:
    sudo apt install npm
    sudo apt install build-essential
    sudo apt install libzmq3-dev
    3) Download Dash-core
    Code:
    cd ~
    wget https://github.com/dashpay/dash/releases/download/v0.12.3.3/dashcore-0.12.3.3-x86_64-linux-gnu.tar.gz
    tar -xvzf dashcore-0.12.3.3-x86_64-linux-gnu.tar.gz
    rm dashcore-0.12.3.3-x86_64-linux-gnu.tar.gz
    4) Install https://github.com/dashevo/dashcore-node
    Code:
    sudo npm install -g @dashevo/dashcore-node
    5) Create a configuration for your node
    Code:
    dashcore-node create mynode
    7) Install insight-api service
    Code:
    cd mynode
    dashcore-node install @dashevo/insight-api
    8) Change datadir and exec
    Code:
    nano dashcore-node.json
    Change the value of "datadir" to "../.dashcore"
    Change the value of "exec" to "../dashcore-0.12.3/bin/dashd"

    9) Run it
    Code:
    dashcore-node start
    For me it started synchronizing in 5-10 minutes and finished in 1-2 hours.
     
    #1 Antti Kaikkonen, Jul 10, 2018
    Last edited: Nov 22, 2018
    • Like Like x 2
  2. strophy

    strophy Administrator
    Dash Core Team Dash Support Group Moderator

    Joined:
    Feb 13, 2016
    Messages:
    571
    Likes Received:
    322
    Trophy Points:
    133
    Thanks @Antti Kaikkonen !! I have worked through this and confirmed the process works as advertised. I'd like to include this in the official documentation, since there are a few conflicting instructions floating around on the internet. Is there a way we can modify this so that it doesn't run with root privileges? Would this help remove the manual changes you make in step 8? Also can we add steps to install the UI and block explorer?

    @Obusco do you have a few comments here as well? What should a standard install look like? Can we fix the dependency error in steps 5/6?
     
    • Like Like x 1
  3. Antti Kaikkonen

    Antti Kaikkonen Active Member

    Joined:
    Jun 20, 2017
    Messages:
    250
    Likes Received:
    164
    Trophy Points:
    103
    Dash Address:
    XnZdwT1w2kGeH6RujwoyJ7BBNrukdyTBRB
    @strophy the manual changes are required because the version 4.0.0 is not available in https://www.npmjs.com/package/@dashevo/dashcore-node. If 4.0.0 was available then I think step 4 could also be replaced with
    Code:
    npm install -g @dashevo/dashcore-node
    . I think I tried installing with the latest version in the npm repository (3.0.6) but didn't manage to get it working.

    I don't think I have the time to work on this this month but maybe next month.
     
  4. Antti Kaikkonen

    Antti Kaikkonen Active Member

    Joined:
    Jun 20, 2017
    Messages:
    250
    Likes Received:
    164
    Trophy Points:
    103
    Dash Address:
    XnZdwT1w2kGeH6RujwoyJ7BBNrukdyTBRB
    https://www.npmjs.com/package/@dashevo/dashcore-node has finally been updated to 4.0.0.

    This made installing insight-api much easier. Changed the tutorial to reflect these changes.

    It should now work with any user, but sudo privileges are required.

    Also the tutorial says 18.04 but I think it should also work on 16.04 (untested).
     
  5. strophy

    strophy Administrator
    Dash Core Team Dash Support Group Moderator

    Joined:
    Feb 13, 2016
    Messages:
    571
    Likes Received:
    322
    Trophy Points:
    133
    • Like Like x 1

Share This Page