TELOS: step-by-step guide to BUILD, INSTALL, CONFIGURE, and DEPLOY nodes

in #telos6 years ago (edited)

TELOS: step-by-step guide to BUILD, INSTALL, CONFIGURE, and DEPLOY nodes

This is detailed video guide (step-by-step guide) to BUILD, INSTALL, CONFIGURE, and DEPLOY Telos Nodes for Testnet and Mainnet.

http://testnet.telosfoundation.io/
https://github.com/Telos-Foundation/t...


TELOS: step-by-step guide to BUILD, INSTALL, CONFIGURE, and DEPLOY nodes


High level commands are here (detailed explanation is in video)

Install TELOS


mkdir /home/telos-sources
cd /home/telos-sources

git clone https://github.com/Telos-Foundation/t...
cd telos
git checkout stage2.1
git submodule update --init --recursive


./telos_build.sh
sudo ./telos_install.sh

Update TELOS


mkdir /home/telos-sources
cd /home/telos-sources

cd telos
git checkout stage2.1
git submodule update --init --recursive

./telos_build.sh
sudo ./telos_install.sh

Configuring Node

Create configuration (+ data-dir) folder for your node:

mkdir /opt/TELOSmainNet
cd /opt/TELOSmainNet

Note: The Wallet directory (though it is not recommended to have wallet on server node) can be created in this folder:

If you have scripts in this folder, usually people have scripts in this directory. then these should be execution rights:


"chmod -R 777 ./[asterick].sh"
"chmod -R 777 ./Wallet/[asterick].sh"

Set up config.ini file

If you do not have existing config file, then, please run nodeos to generate a config file. This will generate a config.ini file in the current directory if none exists.

nodeos --config-dir ./

Follow the video and configure/update config.ini . Some of the important parameters:


producer-name = [prodname1234]

Your Producer Signature Provider: You can execute teclos create key and import your keys [Producer Key, Owner Key, and Public Key] into your wallet.


signature-provider = TLOS[public key]=KEY:[private key]

Determine and configure your p2p and http endpoints. Choose your own p2p and http ports (preferably DO NOT USE DEFAULTS).

http-server-address = 0.0.0.0:[http port]
p2p-listen-endpoint = 0.0.0.0:[p2p port]
p2p-server-address = [external IP address]:[p2p port]
p2p-peer-address = testnet.telosfoundation.io:6789

Activate desired Plugins:

plugin = eosio::http_plugin
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::history_plugin
plugin = eosio::history_api_plugin
plugin = eosio::net_plugin
plugin = eosio::net_api_plugin
plugin = eosio::producer_plugin

Run Telos

Download the genesis.json file to the /opt/TELOSmainNet/ directory. This is stage specific file (currently Stage 2.0)

wget http://testnet.telosfoundation.io/resources/genesis.json

Then execute following depending on if you have script or not (see video)

./start.sh --delete-all-blocks --genesis-json genesis.json
or
nodeos -delete-all-blocks --genesis-json genesis.json

Helping Commands


pgrep keosd | xargs printf " -p %d" | xargs lsof -Pani
pgrep nodeos | xargs printf " -p %d" | xargs lsof -Pani

pgrep nodeos | xargs printf " -p %d" | xargs lsof -Pani | grep ESTABLISHED
sudo pgrep nodeos | root@sudo xargs printf " -p %d" | sudo xargs lsof -Pani

ps -ef | grep -v grep | grep keosd
ps -ef | grep -v grep | grep nodeos

ps -ef | grep keosd
ps -ef | grep nodeos

pkill keosd
pkill nodeos

./teclos.sh get info


BP: swedencornet (TELOS/EOS Sweden)

swedencornet (TELOS/EOS Sweden) has a vision to become a well recognized productive player in the field. We aim to become a hub for Companies, Entrepreneurs, Governments, Public Safety & National Security Organizations, Developers, and Global Communities. EOS Sweden would like to build sound infrastructure and beneficial decentralized applications on top of EOS.IO.

We believe that everyone can contribute and benefit from EOSIO. Let's we all work together for the greater good and well-being of all global and local societies.


♨️ DISCLAIMERS ♨️

👉 Don't invest more than you can afford to lose!
👉 Perform Self Due Diligence!
👉 We are not Investment Advisers, nor giving any Financial & Legal Advice!
👉 You are 100% responsible for all investment decisions that you make.


Welcome

https://steemit.com/@eos.sweden!
swedencornet-telos-logo.jpg
BP: swedencornet (TELOS/EOS Sweden)

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62827.81
ETH 2583.62
USDT 1.00
SBD 2.73