Skip to content

Instantly share code, notes, and snippets.

@Alex-Werner
Created July 14, 2017 21:09
Show Gist options
  • Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
Bitcore-node-dash install
sudo apt-get install -y -q \
build-essential \
curl \
git \
libzmq3-dev \
python2.7 \
apt-get update \
&& apt-get install -y -q software-properties-common \
&& add-apt-repository ppa:bitcoin/bitcoin \
&& apt-get update \
&& apt-get install -y -q \
automake \
autotools-dev \
bsdmainutils \
build-essential \
libboost-all-dev \
libdb4.8-dev \
libdb4.8++-dev \
libevent-dev \
libssl-dev \
libtool \
pkg-config \
# compile last dashd
cd /tmp \
&& git clone https://github.com/dashpay/dash \
&& cd dash \
&& ./autogen.sh \
&& ./configure \
&& make
cp /tmp/dash/src/{dashd,dash-cli} /usr/bin \ && rm -rf /tmp/dash
# setup and switch to user bitcore
/usr/sbin/useradd -s /bin/bash -m -d /bitcore bitcore \
&& chown bitcore:bitcore -R /bitcore
su bitcore
HOME=/bitcore
NODE_VERSION=4.0.0
NVM_VERSION=0.33.2
NVM_DIR=$HOME/.nvm
curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
cd $HOME \
&& source $NVM_DIR/nvm.sh \
&& nvm use v4.0.0 \
&& mkdir -p $HOME/.bitcore/data \
&& ln -s /usr/bin/dashd $HOME/.bitcore/data \
&& git clone https://github.com/dashpay/bitcore-dash -b nodownload \
&& cd bitcore-dash \
&& npm install dashpay/insight-api-dash#master_jaxx --save \
&& npm install -g
cd $HOME \
&& echo "#!/bin/bash" >> launch_bitcore-dash.sh \
&& echo "source $NVM_DIR/nvm.sh" >> launch_bitcore-dash.sh \
&& echo "cd $NVM_DIR/versions/node/v4.0.0/bin/" >> launch_bitcore-dash.sh \
&& echo "bitcored" >> launch_bitcore-dash.sh \
&& chmod a+x launch_bitcore-dash.sh
Then start with :
./bitcore/launch_bitcore-dash.sh
@libanaabdul
Copy link

Hi Alex,

This is resolved. But when is testnet sync just in case to 97%, why? Please help me!

Thanks!

@zarulizham
Copy link

Hello, currently I'm encountered a problem which
screen shot 2017-12-11 at 2 48 19 pm

Any reasons and fix for this problem?

@emil-perhinschi
Copy link

https://github.com/dashpay/bitcore-dash -b nodownload

that branch does not exist there at this time

this should work

https://github.com/dashpay/bitcore-node-dash

@dukle
Copy link

dukle commented May 14, 2018

The dashcore is trying to get installed from here: https://bamboo.dash.org/browse/DASHL-REL-13/artifact/JOB1/gitian-linux-dash-dist/dashcore-0.12.2-linux64.tar.gz

Is this the right path?

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