Method 2: building & configuring from scratch

This guide required an advanced knowledge (experts only)

Building from scratch Ubuntu 16.04

logo-ubuntu.jpg

Requirements

There are many reputable providers that these can be purchased from: Vultr, Hetzner, and Time4VPS etc. Don't use lowest cost VPS to host your masternode as we will be going through a processes which requires a bit of memory. 1 GB of RAM is a good beginning with most providers.

A Virtual Private Server (VPS) running Ubuntu 16.04 LTS

  • 20 GB of disk space
  • At least 100 Mbps bandwidth speed
  • External IPv4 or IPv6 addr
  • 1 GB of RAM or more
  • 1 fast CPU of more

Graphical Wallet: A copy of the most up-to-date Adeptio Core wallet for your personal computer, you will use to store your masternode funds and control it. Download:

Adeptio coins in your Adeptio Core wallet. You can buy it on Crex24 eXchange or BiteBTC eXchange. 1 masternode requires:

  • 10 000 ADE & 1 ADE coin for transaction costs
  • A program to login to your VPS:
  • For Linux, use Terminal: ssh user@yourip
  • For Windows, most use puttyhttps://www.putty.org/
  • For Mac OS use Terminal as well: ssh user@yourip

Please keep in mind that you’re gonna need a single IP for each masternode you’re planning to run.

You can use regular user with sudo rights (safer) or root

 

Preparing VPS for masternode installation

Login with ssh or putty to your VPS server. And update the packages for up-to-date state:

sudo apt-get update -y
sudo apt-get upgrade -y

Add a SWAP file:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
sudo echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Reboot the server to load a new kernel (if) there are new one.

sudo reboot

Login with ssh or putty to your VPS server once again. We need a bunch of building tools, dependencies & libs:

sudo apt-get install git curl ufw wget software-properties-common dnsutils automake  -y
sudo apt-get install libtool autoconf pkg-config libssl-dev libboost-all-dev  -y
sudo apt-get install build-essential autotools-dev nano vim libminiupnpc-dev libevent-dev -y
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

Copy line-by-line to the terminal. Not all commands at once.

If we want to build GUI wallet we need extra packages (Optional):

sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qt5-default -y
sudo apt-get install qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev -y

 

Getting the adeptio source code

Official adeptio github repository - https://github.com/adeptio-project/adeptio/ 

Let's copy latest master branch:

cd ~/
git clone https://github.com/adeptio-project/adeptio.git
cd adeptio

 

Building the wallet

./autogen.sh
./configure
make

You can use make -j {CPU Core count} in order to make building faster. For example with 2 CPU Cores: make -j 2

It's OK to ignore "warning" signs during building process

 

Strip the binary to reduce the size (Optional)

After successful build in order to minimize the adeptiod / adeptio-cli / adeptio-tx / adeptio-qt binary size we can use stripping method:

strip ./src/adeptiod ; strip ./src/adeptio-cli ; strip ./src/adeptio-tx

If we building with GUI wallet:

strip ./src/qt/adeptio-qt

 

Copy adeptio content to Ubuntu system paths

Our working content are:

  • adeptiod
  • adeptio-cli
  • adeptio-tx
  • adeptio-qt (optional if you building with GUI wallet)

Copy to Ubuntu system path - /usr/bin/

sudo cp -fr ~/adeptio/src/adeptiod /usr/bin/
sudo cp -fr ~/adeptio/src/adeptio-cli /usr/bin/
sudo cp -fr ~/adeptio/src/adeptio-tx /usr/bin/

If we building with GUI wallet:

sudo cp -fr ~/adeptio/src/qt/adeptio-qt /usr/bin/

 

Preparing Adeptio Core blockchain

In order to make adeptio core as Ubuntu system process let's make systemD service:

echo "Create adeptiocore.service for systemd"
echo \
"[Unit]
Description=Adeptio Core Wallet daemon & service
After=network.target
[Service]
User=$(echo $USER)
Type=forking
ExecStart=/usr/bin/adeptiod -daemon -pid=$(echo $HOME)/.adeptio/adeptiod.pid
PIDFile=$(echo $HOME)/.adeptio/adeptiod.pid
ExecStop=/usr/bin/adeptio-cli stop
Restart=always
RestartSec=3600
TimeoutStopSec=60s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=default.target" | sudo tee /etc/systemd/system/adeptiocore.service

Change the permissions:

sudo chmod 664 /etc/systemd/system/adeptiocore.service

Enable adeptio core to run after system reboot:

sudo systemctl enable adeptiocore

If we are running VPS with regular user and sudo rights we need to make permission to manage adeptiocore.service we just created. If we not sure you root or regular user:

echo $EUID

If the output is not 0 follow the next (otherwise skip this step):

sudo su
nano /etc/sudoers.d/storADEserver

Edit this line to corresponding yourUSERnameHERE and paste it:

%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl start storADEserver
%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl stop storADEserver
%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl restart storADEserver

Save the file. Then exit from root user:

exit

 

Starting Adeptio Core blockchain

Now we can call systemD service to start adeptiocore.service:

sudo systemctl start adeptiocore

Wait 20 sec. and the check status:

sudo systemctl status adeptiocore

We should get something similar:

adeptiocore.service - Adeptio Core Wallet daemon & service
Loaded: loaded (/etc/systemd/system/adeptiocore.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2018-12-30 22:44:18 UTC; 1s ago
Process: 6085 ExecStart=/usr/bin/adeptiod -daemon -pid=/root/.adeptio/adeptiod.pid (code=exited, status=0/SUCCESS)
Main PID: 6086 (adeptiod)
CGroup: /system.slice/adeptiocore.service
└─6086 /usr/bin/adeptiod -daemon -pid=/root/.adeptio/adeptiod.pid

Great. We just started adeptio blockchain and it's probably syncing blocks right now.

 

Generating masternodeprivkey from Cold Wallet

Leave a VPS for now. Open Adeptio Core wallet (GUI). In order to get the masternode to run, we need to send 10,000 ADE to an address we are just going to create. In your GUI-Wallet go to: Tools -> Debug Console and type in:

masternode genkey

This will generate a private key - We need to add that key to the “masternodeprivkey”-field in the same field which auto-installer asking for. Please input and wait for auto-installer finishes the setup on VPS side.

Next generate a wallet-address. Each masternode needs it’s own address. We are going to send 10,000 ADE to this address later.

getaccountaddress adeptio_masternode01

You can change adeptio_masternode01 to whatever you want to name your masternode.

Save the address & masternodeprivkey you’ve just generated for the next step.

 

Sending 10,000 ADE to the address

Send exactly 10,000 ADE coins to that address you just saved couple minutes ago. Yes - make sure this is only 10,000 ADE. No less, no more

Wait for the transaction to have at least 15 confirmations before continuing.

 

Getting the transaction output

Open up the wallet debug console once again Tools -> Debug Console and type in:

masternode outputs

It will display a list of valid masternode transactions. If this is your first masternode there will be only one.

The list contains a longer number (transaction ID) and a following number 0 or 1

Save both of these somewhere for the next step.

 

Putting all information together in Cold Wallet

We need a config file of our GUI wallet with name - masternode.conf. (Find it or use the “Edit config file” in the Adeptio Core wallet client under “Tools”) and fill it out like this:

{YOURMASTERNODENAME} {YOURVPSIP:9077} {The masternodeprivkey} {The output from when we entered masternode outputs} {The check digit that follows 0 or 1}

The result for example:

adeptio_masternode01 1.2.3.4:9077 qqqxxxbbbbqqqq1111222 qqqqxxxxxxbbbbbbbbqqqqqqq1112222xxxxx 0

Save and close the masternode.conf, then restart the Adeptio Core wallet. 

 

Let's back to VPS where we left to sync blocks

By now all blockchain blocks should be synced. To ensure, check the latest block:

adeptio-cli getinfo | grep blocks

Let's compare with Official adeptio eXplorer data:

https://explorer.adeptio.cc/api/getblockcount

If the number match +- by 5 blocks continue:

sudo systemctl stop adeptiocore

Before we go to next step we need to set some parameters:

  • masternodeaddr
  • externalip
  • bind
  • masternodeprivkey (This key was generated with Adeptio Core wallet.)
  • RPCpassword (Random Strong Password)

To make no mistake for masternodeaddr / externalip / bind check your external IP:

curl 4.ipquail.com/ip

Open adeptio.conf delete all the text (if exists) and add new one. Of course replace the lines with { }:

nano ~/.adeptio/adeptio.conf

rpcuser=adeptiouser
rpcpassword={YourStrongRPCpasswordHere}
rpcallow=127.0.0.1
server=1
listen=1
daemon=1
staking=1
maxconnections=125
masternode=1
masternodeaddr={MyExternalipHere}:9077
externalip={MyExternalipHere}
bind={MyExternalipHere}
masternodeprivkey={masternodeprivkey}
enablezeromint=0
addnode=seed0.adeptio.cc
addnode=seed1.adeptio.cc
addnode=seed2.adeptio.cc
addnode=seed3.adeptio.cc
addnode=seed4.adeptio.cc
addnode=seed5.adeptio.cc
addnode=seed6.adeptio.cc
addnode=seed7.adeptio.cc
addnode=seed8.adeptio.cc
addnode=seed9.adeptio.cc
addnode=seed10.adeptio.cc
addnode=seed11.adeptio.cc

Delete the brackets { }

Save the file & start adeptiocore.service:

sudo systemctl start adeptiocore

Check the adeptiocore status:

sudo systemctl status adeptiocore

If the service started. Let's move on storADEserver installation.

 

Installing storADEserver

Adeptio Core & adeptio storADEserver works as on platform. In order to get positive answer from masternode setup we have to be installed adeptioStorade python code as well. The setup slightly changing by the time. Please check installation page here then come back to start a masternode on last step.

 

Start the masternode from Adeptio Core wallet.

We almost finished. We are now at the final step of our process. To start our masternode and finalize our process all we have to do is press the "start missing" button (or highlight the node and press "start alias").

After this, it should say enabled and still have a 00:00 under time. This shouldn't alarm you, as it can take a few hours for this to reflect. If we want to confirm we were successful, the best way is back on our VPS. There, enter the following command:

adeptio-cli masternode status

Successful output:

{
"txhash": "a8769244e7826273b182d4d7d5937f55dfc2b87fe45a257afad407f806ed0160",
"outputidx": 0,
"netaddr": "x.x.x.x:9077",
"addr": "APxwmaL9gK1yj467FntsxFATjaJ4GvQz18",
"status": 4,
"message": "Masternode successfully started"
}

Congratulations! You’ve successfully setup a masternode!

Please take a note that to get first reward it could take 2-8 days. Depending on masternode count

Need additional help? Go to Discord and ask for help.

Building from scratch Ubuntu 18.04

logo-ubuntu.jpg

Requirements

There are many reputable providers that these can be purchased from: Vultr, Hetzner, and Time4VPS etc. Don't use lowest cost VPS to host your masternode as we will be going through a processes which requires a bit of memory. 1 GB of RAM is a good beginning with most providers.

A Virtual Private Server (VPS) running Ubuntu 18.04 LTS

  • 20 GB of disk space
  • At least 100 Mbps bandwidth speed
  • External IPv4 or IPv6 addr
  • 1 GB of RAM or more
  • 1 fast CPU of more

Graphical Wallet: A copy of the most up-to-date Adeptio Core wallet for your personal computer, you will use to store your masternode funds and control it. Download:

Adeptio coins in your Adeptio Core wallet. You can buy it on Crex24 eXchange or BiteBTC eXchange. 1 masternode requires:

  • 10 000 ADE & 1 ADE coin for transaction costs
  • A program to login to your VPS:
  • For Linux, use Terminal: ssh user@yourip
  • For Windows, most use puttyhttps://www.putty.org/
  • For Mac OS use Terminal as well: ssh user@yourip

Please keep in mind that you’re gonna need a single IP for each masternode you’re planning to run.

You can use regular user with sudo rights (safer) or root

 

Preparing VPS for masternode installation

Login with ssh or putty to your VPS server. And update the packages for up-to-date state:

sudo apt-get update -y
sudo apt-get upgrade -y

Add a SWAP file:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
sudo echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Reboot the server to load a new kernel (if) there are new one.

sudo reboot

Login with ssh or putty to your VPS server once again. We need a bunch of building tools, dependencies & libs:

sudo apt-get install git curl ufw wget software-properties-common dnsutils automake  -y
sudo apt-get install libtool autoconf pkg-config libssl-dev libboost-all-dev  -y
sudo apt-get install build-essential autotools-dev nano vim libminiupnpc-dev -y
sudo apt-get install libevent-dev libzmq5-dev -y
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

Copy line-by-line to the terminal. Not all commands at once.

If we want to build GUI wallet we need extra packages (Optional):

sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qt5-default -y
sudo apt-get install qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev -y

 

Getting the adeptio source code

Official adeptio github repository - https://github.com/adeptio-project/adeptio/ 

Let's copy latest master branch:

cd ~/
git clone https://github.com/adeptio-project/adeptio.git
cd adeptio

 

Building the wallet

./autogen.sh
./configure
make

You can use make -j {CPU Core count} in order to make building faster. For example with 2 CPU Cores: make -j 2

It's OK to ignore "warning" signs during building process

 

Strip the binary to reduce the size (Optional)

After successful build in order to minimize the adeptiod / adeptio-cli / adeptio-tx / adeptio-qt binary size we can use stripping method:

strip ./src/adeptiod ; strip ./src/adeptio-cli ; strip ./src/adeptio-tx

If we building with GUI wallet:

strip ./src/qt/adeptio-qt

 

Copy adeptio content to Ubuntu system paths

Our working content are:

  • adeptiod
  • adeptio-cli
  • adeptio-tx
  • adeptio-qt (optional if you building with GUI wallet)

Copy to Ubuntu system path - /usr/bin/

sudo cp -fr ~/adeptio/src/adeptiod /usr/bin/
sudo cp -fr ~/adeptio/src/adeptio-cli /usr/bin/
sudo cp -fr ~/adeptio/src/adeptio-tx /usr/bin/

If we building with GUI wallet:

sudo cp -fr ~/adeptio/src/qt/adeptio-qt /usr/bin/

 

Preparing Adeptio Core blockchain

In order to make adeptio core as Ubuntu system process let's make systemD service:

echo "Create adeptiocore.service for systemd"
echo \
"[Unit]
Description=Adeptio Core Wallet daemon & service
After=network.target
[Service]
User=$(echo $USER)
Type=forking
ExecStart=/usr/bin/adeptiod -daemon -pid=$(echo $HOME)/.adeptio/adeptiod.pid
PIDFile=$(echo $HOME)/.adeptio/adeptiod.pid
ExecStop=/usr/bin/adeptio-cli stop
Restart=always
RestartSec=3600
TimeoutStopSec=60s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=default.target" | sudo tee /etc/systemd/system/adeptiocore.service

Change the permissions:

sudo chmod 664 /etc/systemd/system/adeptiocore.service

Enable adeptio core to run after system reboot:

sudo systemctl enable adeptiocore

If we are running VPS with regular user and sudo rights we need to make permission to manage adeptiocore.service we just created. If we not sure you root or regular user:

echo $EUID

If the output is not 0 follow the next (otherwise skip this step):

sudo su
nano /etc/sudoers.d/storADEserver

Edit this line to corresponding yourUSERnameHERE and paste it:

%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl start storADEserver
%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl stop storADEserver
%yourUSERnameHERE ALL= NOPASSWD: /bin/systemctl restart storADEserver

Save the file. Then exit from root user:

exit

 

Starting Adeptio Core blockchain

Now we can call systemD service to start adeptiocore.service:

sudo systemctl start adeptiocore

Wait 20 sec. and the check status:

sudo systemctl status adeptiocore

We should get something similar:

adeptiocore.service - Adeptio Core Wallet daemon & service
Loaded: loaded (/etc/systemd/system/adeptiocore.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2018-12-30 22:44:18 UTC; 1s ago
Process: 6085 ExecStart=/usr/bin/adeptiod -daemon -pid=/root/.adeptio/adeptiod.pid (code=exited, status=0/SUCCESS)
Main PID: 6086 (adeptiod)
CGroup: /system.slice/adeptiocore.service
└─6086 /usr/bin/adeptiod -daemon -pid=/root/.adeptio/adeptiod.pid

Great. We just started adeptio blockchain and it's probably syncing blocks right now.

 

Generating masternodeprivkey from Cold Wallet

Leave a VPS for now. Open Adeptio Core wallet (GUI). In order to get the masternode to run, we need to send 10,000 ADE to an address we are just going to create. In your GUI-Wallet go to: Tools -> Debug Console and type in:

masternode genkey

This will generate a private key - We need to add that key to the “masternodeprivkey”-field in the same field which auto-installer asking for. Please input and wait for auto-installer finishes the setup on VPS side.

Next generate a wallet-address. Each masternode needs it’s own address. We are going to send 10,000 ADE to this address later.

getaccountaddress adeptio_masternode01

You can change adeptio_masternode01 to whatever you want to name your masternode.

Save the address & masternodeprivkey you’ve just generated for the next step.

 

Sending 10,000 ADE to the address

Send exactly 10,000 ADE coins to that address you just saved couple minutes ago. Yes - make sure this is only 10,000 ADE. No less, no more

Wait for the transaction to have at least 15 confirmations before continuing.

 

Getting the transaction output

Open up the wallet debug console once again Tools -> Debug Console and type in:

masternode outputs

It will display a list of valid masternode transactions. If this is your first masternode there will be only one.

The list contains a longer number (transaction ID) and a following number 0 or 1

Save both of these somewhere for the next step.

 

Putting all information together in Cold Wallet

We need a config file of our GUI wallet with name - masternode.conf. (Find it or use the “Edit config file” in the Adeptio Core wallet client under “Tools”) and fill it out like this:

{YOURMASTERNODENAME} {YOURVPSIP:9077} {The masternodeprivkey} {The output from when we entered masternode outputs} {The check digit that follows 0 or 1}

The result for example:

adeptio_masternode01 1.2.3.4:9077 qqqxxxbbbbqqqq1111222 qqqqxxxxxxbbbbbbbbqqqqqqq1112222xxxxx 0

Save and close the masternode.conf, then restart the Adeptio Core wallet. 

 

Let's back to VPS where we left to sync blocks

By now all blockchain blocks should be synced. To ensure, check the latest block:

adeptio-cli getinfo | grep blocks

Let's compare with Official adeptio eXplorer data:

https://explorer.adeptio.cc/api/getblockcount

If the number match +- by 5 blocks continue:

sudo systemctl stop adeptiocore

Before we go to next step we need to set some parameters:

  • masternodeaddr
  • externalip
  • bind
  • masternodeprivkey (This key was generated with Adeptio Core wallet.)
  • RPCpassword (Random Strong Password)

To make no mistake for masternodeaddr / externalip / bind check your external IP:

curl 4.ipquail.com/ip

Open adeptio.conf delete all the text (if exists) and add new one. Of course replace the lines with { }:

nano ~/.adeptio/adeptio.conf

rpcuser=adeptiouser
rpcpassword={YourStrongRPCpasswordHere}
rpcallow=127.0.0.1
server=1
listen=1
daemon=1
staking=1
maxconnections=125
masternode=1
masternodeaddr={MyExternalipHere}:9077
externalip={MyExternalipHere}
bind={MyExternalipHere}
masternodeprivkey={masternodeprivkey}
enablezeromint=0
addnode=seed0.adeptio.cc
addnode=seed1.adeptio.cc
addnode=seed2.adeptio.cc
addnode=seed3.adeptio.cc
addnode=seed4.adeptio.cc
addnode=seed5.adeptio.cc
addnode=seed6.adeptio.cc
addnode=seed7.adeptio.cc
addnode=seed8.adeptio.cc
addnode=seed9.adeptio.cc
addnode=seed10.adeptio.cc
addnode=seed11.adeptio.cc

Delete the brackets { }

Save the file & start adeptiocore.service:

sudo systemctl start adeptiocore

Check the adeptiocore status:

sudo systemctl status adeptiocore

If the service started. Let's move on storADEserver installation.

 

Installing storADEserver

Adeptio Core & adeptio storADEserver works as on platform. In order to get positive answer from masternode setup we have to be installed adeptioStorade python code as well. The setup slightly changing by the time. Please check installation page here then come back to start a masternode on last step.

 

Start the masternode from Adeptio Core wallet.

We almost finished. We are now at the final step of our process. To start our masternode and finalize our process all we have to do is press the "start missing" button (or highlight the node and press "start alias").

After this, it should say enabled and still have a 00:00 under time. This shouldn't alarm you, as it can take a few hours for this to reflect. If we want to confirm we were successful, the best way is back on our VPS. There, enter the following command:

adeptio-cli masternode status

Successful output:

{
"txhash": "a8769244e7826273b182d4d7d5937f55dfc2b87fe45a257afad407f806ed0160",
"outputidx": 0,
"netaddr": "x.x.x.x:9077",
"addr": "APxwmaL9gK1yj467FntsxFATjaJ4GvQz18",
"status": 4,
"message": "Masternode successfully started"
}

Congratulations! You’ve successfully setup a masternode!

Please take a note that to get first reward it could take 2-8 days. Depending on masternode count

Need additional help? Go to Discord and ask for help.