Post
Topic
Board Announcements (Altcoins)
5 Steps - DAS - Masternode Guide - Windows/Linux Cold Wallet + Ubuntu 16.x VPS
by
polylogic
on 02/08/2017, 19:57:50 UTC
Polylogic - DAS - Masternode Guide - Windows/Linux Cold Wallet + Ubuntu 16.x VPS Masternode LINK

Part 01

Lets prepare the Cold Storage (this should work with any OS)


- Install the (Windows) Wallet and sync with Network
- Send 1000.01 DAS from Exchange to your 0 address (send 0.01 DAS more than nessesary because of fees)
- Encrypt Wallet with Strong Password
- Backup Wallet.dat File
- Open Debug Console and type without ":
Code:
dumpprivkey "walletaddress"
- Save the Private Key to a txt file and type:
Code:
masternode genkey
- This is your Masternode Key, save it aswell.
Code:
masternode outputs
- Save This Data too. Its your Transaction ID and IDX. We need all those keys later.
- now backup your wallet.dat

if you want to manage 2+ masternodes you have to:
 - close the wallet delete the wallet .dat in /%appdata%/.das/
 - open wallet and a you will get new address 0
 - repeat the first steps of the tutorial.
 - now import the old address 0 by typing "importprivkey
 - this part of the tutorial is still incomlete, to be continued but all the important steps are here xD


Part 02

Prepare the Linux VPS (Ubuntu 16.x)


WARNING - WARNING - WARNING - WARNING - WARNING - WARNING

if you dont know how to operate a Linux Server,
then you should think twice about setting up a Masternode Server.
Masternodes have a Public IP Address and may be subject to Intruders and Hacking attemts.
We have to properly secure the server and keep it updated.
For now, this Tutorial will provide you with a basic security but it is highly advised to
take the proper precautions and stay alert.

i will update this guide to my best knowlege, maybe one of you can give some iptables tips
and how we get fail2ban goin.


WARNING - WARNING - WARNING - WARNING - WARNING - WARNING

if you dont know what you are doing and still want to participate just copy paste the commands.

- log into your vps via ssh (i use putty)
Code:
apt update
apt upgrade

- now we change the ssh port to some number you like
Code:
nano /etc/ssh/sshd_config
change the port from 22 to your lucky number.
if you have never worked with nano:
look at the bottom, it shows the menu, press CTRL + X to Exit & Save

- restart the ssh service
Code:
service ssh restart

- now disconnect and log back in, use your new port.

- lets setup the firewall and open ports for ssh and DAS (Port 9399)
Code:
sudo ufw allow ssh
ufw limit ssh/tcp
sudo uhf allow 9399/tcp
ufw logging on

enable the firewall:
Code:
ufw enable

use ufw status and ufw disable if you need to disable the firewall.

- reboot the vps and log back in.

- check the internet on how to secure your vps, there is still much to learn.


Part 03

Install DAS


WARNING - WARNING - WARNING - WARNING - WARNING - WARNING

there are currently two ways to install DAS.
build the application from source-code or use a already build and compiled version.
the only available build is by a community member and you should know that he could have changed some code.
i am going to trust whywefight that he didnt.
but normaly you should never trust a compiled version by a 3rd Party, especially in the crypto scene.

i will also you provide with the steps to build DAS from Source yourself,
this maybe doesnt work, if you dont complie things on a daily basis you forget stuff like that.
feel free to provide us with the correct steps.


WARNING - WARNING - WARNING - WARNING - WARNING - WARNING


you only need to do one of those two steps:

Part 03.1

Install and launch DAS by downloading the Build:


 - you should be logged into your vps as root

Code:
apt install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
add-apt-repository ppa:bitcoin/bitcoin -y
apt-get update
apt-get install libdb4.8-dev bsdmainutils libdb4.8++-dev -y
adduser das
su - das
wget https://github.com/whywefight/DAS-12.2/blob/master/das-cli
wget https://github.com/whywefight/DAS-12.2/blob/master/das-tx
wget https://github.com/whywefight/DAS-12.2/blob/master/dasd
su root
chmod 777 ./dasd
chmod 777 ./das-cli
chmod 777 ./das-tx
cp -v /home/das/* /usr/local/bin/
su das
dasd -daemon

this is it. now DAS is running, started by user das.
verify that DAS is connected with:
Code:
das-cli getinfo

or

./das-cli getinfo

its not running? i changed some lines up there without testing xD
try to launch it like this ./dasd -daemon



Part 03.2

Install and launch DAS by building the source:


for more information check the wiki

Code:
apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
apt-get install -y build-essential software-properties-common autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev sudo automake git
add-apt-repository ppa:bitcoin/bitcoin -y
apt-get update
apt-get install libdb4.8-dev bsdmainutils libdb4.8++-dev -y
adduser das
su - das
su root
git clone https://github.com/Truckman83/DAS-source.git
cd DAS-source
./autogen.sh
./configure
make

this may take a while, grab some tea.

Code:
cp -v /home/das/DAS-source/src/dasd /home/das/
cp -v /home/das/DAS-source/src/das-cli /home/das/
cp -v /home/das/DAS-source/src/das-tx /home/das/
cd /home/das/
chmod 777 ./dasd
chmod 777 ./das-cli
chmod 777 ./das-tx
cp -v /home/das/* /usr/local/bin/
su - das


and launch:
Code:
dasd -daemon

or

./dasd -daemon

either way you got DAS synced and running...


Part 04

Enable masternode and point it to our wallet:


Code:
das-cli stop
su root
nano /home/das/.das/das.conf

we now edit the configuration file, copy paste the following, edit with your data and save.
Code:
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0

masternode=1
externalip=:9399
masternodeprivkey=

we are almost done, all we need to do now is start DAS again.
Code:
su das
dasd -daemon


Part 05

BTCBTCBTC Start the Masternode-Service and earn DAS! BTCBTCBTC


congratulations, you have come a long way, now its time to earn some money Smiley

The last step has to be done with the Cold Wallet,
edit the masternode config and add:
Code:
:9399

now restart the wallet to load the config file.
unlock wallet
enter debug console

Code:
masternode start-all

this is it, simple right?
your masternode is running and earning 24/7.
you can close the wallet or keep it open and synced.
Windows 10 gives you Notifications on Incomming Transactions.

here are some more tips:

Cold Wallet:
- use the debug console, try help or help masternode
- take a look at the masternode list and look up your Transactions ID with masternode list you can also see the status there.

VPS Masternode:
try masternode status once everything has been done to verify your node working.


sit back, enjoy and donate some DAS

i am goin to add some credits later