Created
July 14, 2017 21:09
-
-
Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
Bitcore-node-dash install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
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