Run AVA Labs Node Cascade (Ubuntu 19.10)

in #ava4 years ago (edited)

ava_node.png

First you need to create a VPS server. I will tell an example of Google Cloud Platform.

Technical requirements:

  • Hardware: 2 CPU, RAM > 4 GB, Storage > 20 GB free space.
  • OS: Ubuntu 18.04, 19.10 or 20.04 version
  • Mac OS X >= Catalina.
  • Software: Go = 1.13.08

tech_req.jpg

Initial setup

The following tools and libraries must be installed on the server:

libssl-dev
libuv1-dev
cmake
make
curl
g++/clang++ that supports c++14 (to build salticidae C++ library)

To install them, run the following command:

sudo apt-get install curl build-essential libssl-dev libuv1-dev cmake make g++

In order for the console to pull up the archive by the url and deploy it, install the CURL:

sudo apt install curl

Now install GIT so that you can install the github repositories:

sudo apt install git

Now update the system:

sudo apt update

GO installation:

Download the 1.13.8 version of the archive with Go tools and unpack it according to the given path:

cd ~
curl -O https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.13.8.linux-amd64.tar.gz

Set the variables for the Go environment by opening the profile file:

nano .profile

This is how it looks:

nano.jpg

Now add at the bottom of this file variables (should look like in the screenshot below):

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin

nano2.jpg

Now you need to save and exit the file. Use keyboard shortcuts ctrl+s and ctrl+x.
To apply configuration changes, you need to update the system settings with the command:

source .profile

We do the same with the .bash_profile file. Open it for editing:

nano .bash_profile

Now add at the bottom of this file variables (should look like in the screenshot below):

export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

bash.jpg

Now you need to save and exit the file. Use keyboard shortcuts ctrl+s and ctrl+x.
To apply configuration changes, you need to update the system settings with the command:

source .bash_profile

The last file to which we add the variables is .bashrc. Let's open it:

nano ~/.bashrc

Now add at the bottom of this file variables (should look like in the screenshot below):

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

bashrc.jpg

Save and exit the file. Use keyboard shortcuts ctrl+s and ctrl+x.
To apply configuration changes, you need to update the system settings with the command:

source .bashrc

To check if the GO is installed correctly, use the command:

go

If you get the result as in the screenshot below, then you set everything correctly:

go.jpg

Install Gecko

Download the Gecko repository:

go get -v -d github.com/ava-labs/gecko/…

Duration of installation is from 3 to 10 minutes.

Now we’ll go to the Gecko directory and run the script that will configure everything:

cd $GOPATH/src/github.com/ava-labs/gecko
./scripts/build.sh

In order to make sure that everything went well, you need to run the following script:

./scripts/build_test.sh

If the test passed as in the screenshot below, then you are ready to launch the AVA test network.

test.jpg

RUN A NODE

To start launching a node, use the following script:

./build/ava

node-start.jpg

If you have everything as in the screenshot above, then everything is fine and the node is running.
Now it should be synchronized (do not disconnect the terminal). If lines with an error appear in orange text periodically, but new lines appear at the same time, this is normal.

If you close the terminal, the node will stop! To restart, enter the following commands:

cd $GOPATH/src/github.com/ava-labs/gecko
./build/ava

You can use Ctrl + C to kill the node.

erro.jpg

If you do not want to keep the terminal open so that the node is running, you can use the ‘Screen’. After installing and configuring it, you can close the terminal and the node will not stop.
How to configure Screen: https://help.ubuntu.com/community/Screen

If your node has already been installed and updates have been released, they can be installed with the following commands:

source .bashrc
cd go/src/github.com/ava-labs/gecko
git pull && bash
./scripts/build.sh

If during the start node you encounter any problems or errors, you can contact the AVA developers in the official Discord server.

About us:

Some AVA links:

AVA Social:

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63342.09
ETH 2658.68
USDT 1.00
SBD 2.81