Order your VPS and wait until it is set-up.
Then use putty or your favourite SSH client to connect. Immediately change your root password with the command "passwd"
## Then we commence with updating our repos and the system
Code:
apt-get -y update && apt-get -y upgrade
## Then we install all needed software. The -y switch stops the system from asking you if you agree to install the specific applications.
Code:
apt-get -y install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev nano curl
Code:
apt-get -y install libboost-all-dev libdb5.1 libdb5.1-dev libdb5.1++-dev git ntp make g++ gcc autoconf cpp ngrep iftop sysstat iptraf
### Now we create our working directory for now and download the darcoind stable release.
Code:
mkdir Downloads && cd Downloads && apt-get -y install git && git clone git://github.com/darkcoinproject/darkcoin && cd darkcoin/src
## Now we compile it. This process can take up to 30 minutes on slower machines.
Code:
time make -f makefile.unix "USE_UPNP:=-" "USE_IPV6:=0"
## Here we add the darkcoind to our binaries directory so we can start darkcoind no matter where we are in the directory structure.
Code:
strip darkcoind && cp darkcoind /usr/bin && cp darkcoind /usr/bin && mkdir ~/.darkcoin
# Now we create our darkcoin configuration file.
Code:
cat > ~/.darkcoin/darkcoin.conf << EOF
#CHANGE THE FOLLOWING TO STRONG RANDOM STRING#
rpcuser=RANDOM STRING
rpcpassword= RANDOM STRING
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
# IF YOU PLAN ON RUNNING YOUR MASTER-NODE VIA TOR UNCOMMENT THE FOLLOWING & REFER TO THE TOR GUIDES #
#proxy=127.0.0.1:9050
#--- DO NOT FORGET TO ENTER THE CORRECT PUBLIC IP# Enter[CODE] curl icanhazip.com
at your terminal to find it out.#
externalip='YOUR SERVERS PUBLIC IP'
#--------------------------------------------------
#masternode=0
#masternodeprivkey=
EOF[/CODE]
# We start darkcoind & check its status and wait until the blockchain has been downloaded. ( About 30 minutes maximum right now).
## When you are sure the blockchain is up-to-date we commence with updating our darkcoind to the RC2 with master-node support.
## Download newest Release Candidate
Code:
cd ~/.darkcoin && wget http://www.darkcoin.io/downloads/rc/darkcoind
# Make it executable and stop darkcoind server
Code:
chmod 755 darkcoind && darkcoind stop
# Backup the old darkcoind binary in /usr/bin
Code:
cd /usr/bin && mv darkcoind darkcoind.old
##Create a symlink from your downloaded new binary to the binaries folder.
# You have 2 options now:
# a) you move our local wallet with 1000DRK to the remote VPS or b) you send exactly 1000DRK to the wallet that can be created with
while darkcoind is still running.
# for a) to the following first.
Code:
ln -s ~/.darkcoin/darkcoind . && cd ~/.darkcoin && rm wallet.dat
##ON YOUR LOCAL COMPUTER COPY THE ENCRYPTED 1000DRK WALLET TO THE REMOTE MASTER-NODE VPS.
(Install SCP if necessary ,
)
## In the directory where you saved your copy of the 1000DRK wallet destined for the master-node do :
Code:
scp wallet.dat root@YOURVPSIPADRESS:/home/
## yes & root password
## BACK ITO YOUR SSH TERMINAL ON THE REMOTE VPS
## Now you move it to the correct folder.
Code:
mv /home/wallet.dat ~/.darkcoin/wallet.dat && cd ~/.darkcoin/
##Start darcoind again. Check for version information to make sure it is indeed the newest RC.
## Test if balance for correctness ( 1000DRK)
Code:
darkcoind masternode genkey
### Copy output ( when using putty just mark it and it is copied to the clipboard automatically.)
##Change masternode=0 to masternode=1 and paste copied output key ( Remove the # in front of both lines)
masternode=1
masternodeprivkey=
exit with CTRL+X and confirm with "y"
Code:
darkcoind masternode start *your password for encrypted wallet*
### DELETE BASH HISTORY TO MAKE SURE AN INTRUDER CANNOT GET YOUR PASSWORD FROM IT ##
Code:
cd ~/ && ln -sf /dev/null .bash_history && history -c && exit
tail -f ~/.darkcoin/debug.log
###UPDATE PROCEDURE
darkcoind stop
cd ~/.darkcoin && rm -r chainstate/ && rm -r blocks/ && rm darkcoind && cd /usr/bin && mv darkcoind darkcoind.old && cd ~/.darkcoin && wget
http://www.darkcoin.io/downloads/rc/darkcoind
chmod 755 darkcoind && cd /usr/bin && ln -s ~/.darkcoin/darkcoind .
cd ~/.darkcoin && darkcoind
darkcoind getinfo
darkcoind masternode start *your password for encrypted wallet*