Polylogic - DAS - Masternode Guide - Windows/Linux Cold Wallet + Ubuntu 16.x VPS Masternode LINKPart 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 ":
dumpprivkey "walletaddress"
- Save the
Private Key to a txt file and type:
- This is your
Masternode Key, save it aswell.
- 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 <YOUR_PRIVATE_KEY>
- this part of the tutorial is still incomlete, to be continued but all the important steps are here xDPart 02
Prepare the Linux VPS (Ubuntu 16.x)
WARNING - WARNING - WARNING - WARNING - WARNING - WARNINGif 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 - WARNINGif 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)
- now we change the ssh port to some number you like
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
- now disconnect and log back in, use your new port.
- lets setup the firewall and open ports for ssh and DAS (Port 9399)
sudo ufw allow ssh
ufw limit ssh/tcp
sudo uhf allow 9399/tcp
ufw logging on
enable the firewall:
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 - WARNINGthere 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 - WARNINGyou 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
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:
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 -daemonPart 03.2
Install and launch DAS by building the source:
for more information check the
wiki 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.
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:
dasd -daemon
or
./dasd -daemon
either way you got DAS synced and running...
Part 04
Enable masternode and point it to our wallet:
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.
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
masternode=1
externalip=<YOUR_PUBLIC_VPS_IP_ADDRESS>:9399
masternodeprivkey=<YOUR_MASTERNODEKEY>
we are almost done, all we need to do now is start DAS again.
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
The last step has to be done with the Cold Wallet,
edit the masternode config and add:
<MASTERNODENAME-ALIAS> <YOUR_PUBLIC_VPS_IP_ADDRESS>:9399 <YOUR_MASTERNODEKEY> <YOUR_TRANSACTION_ID> <IDX>
now restart the wallet to load the config file.
unlock wallet
enter debug console
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