0% found this document useful (0 votes)
54 views1 page

OmniFlixNetwork FlixNet2 FullNode Cheatsheet v2

This document provides instructions to set up a full node on the FLIXNET-2 blockchain network in 5 steps: 1. Perform initial setup including installing GoLang and removing any existing installations. 2. Install OmniFlixHub from GitHub and check the installed Go version. 3. Set up the node and account keys by initializing the node, creating account keys, and downloading the genesis file. 4. Update the seeds and persistent peers in the config file. 5. Start the node as a systemctl service by creating the service file, loading it, enabling and starting the service.

Uploaded by

Jim S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views1 page

OmniFlixNetwork FlixNet2 FullNode Cheatsheet v2

This document provides instructions to set up a full node on the FLIXNET-2 blockchain network in 5 steps: 1. Perform initial setup including installing GoLang and removing any existing installations. 2. Install OmniFlixHub from GitHub and check the installed Go version. 3. Set up the node and account keys by initializing the node, creating account keys, and downloading the genesis file. 4. Update the seeds and persistent peers in the config file. 5. Start the node as a systemctl service by creating the service file, loading it, enabling and starting the service.

Uploaded by

Jim S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

OMNIFLIX NETWORK

Setting up A FULL node

on FLIXNET-2
STEP 1 : Initial Setup STEP 3: Setup Node and Acount Keys Minimum
Recommended

Requirements
Hardware

Initialize Node CPU: 1 core


CPU: 2 core

Install GoLang 20.04 RAM: 2GB


RAM: 4GB

omniflixhubd init <your-node-moniker> --chain-id flixnet-2

Storage: 25GB SSD


Storage: 50GB SSD

Remove existing old Go installation


Create Account keys
sudo rm -rf /usr/local/go
omniflixhubd keys add <key-name>
FOR FULL INSTRUCTIONS VISIT:

Install latest/required Go version (installing go1.16.5) WARNING: Save mnemonic and account details . We will need this For Genesis Validators: /genesis-validators.md

mnemonic/private key to recover accounts.


curl https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz | sudo tar - To run a Full Node: /run-full-node.md

C /usr/local -zxvf -
For RunTime Validators: /run-validator.md

STEP 4 : Download Genesis


Update Environment variables to include go
Download the genesis file STEP 5

cat <<'EOF' >>$HOME/.profile

export GOROOT=/usr/local/go
curl https://raw.githubusercontent.com/OmniFlix/testnets/main/ START NODE AS SYSTEMCTL SERVICE
export GOPATH=$HOME/go
flixnet-2/genesis.json > ~/.omniflixhub/config/genesis.json

export GO111MODULE=on
Create Service File
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Verify sha256 hash of genesis file which should be: Create the service file Note: this step is not required if you did setup before

EOF
3287e021470ece9ac6d79bcc0f322fb496dcd27c3cd41e9064e8fbb7c318b68b

sudo tee /etc/systemd/system/omniflixhubd.service > /dev/null <<EOF

Source profile jq -S -c -M '' ~/.omniflixhub/config/genesis.json | shasum -a 256

[Unit]

source $HOME/.profile Update Seeds and Persistent Peers Description=OmniFlixHub Daemon

After=network-online.target

Update seeds/peers in ~/.omniflixhub/config/config.toml

Check installed go version


[Service]

User=$USER

go version seeds="[email protected] ExecStart=$(which omniflixhubd) start

21:26656,[email protected] Restart=always

.122:26656"
RestartSec=3

Install required software packages peers="[email protected] LimitNOFILE=65535

8:26656,[email protected]
19:26656,[email protected]. [Install]

sudo apt-get install git curl build-essential make jq -y 123:26656,[email protected] WantedBy=multi-user.target

0.124:26656"
EOF

sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/; s/^persistent_peers


*=.*/persistent_peers = \"$peers\"/" ~/.omniflixhub/config/ Load Service and Start
config.toml

sudo systemctl daemon-reload

STEP 2 : Install OmniFlixHub sudo systemctl enable omniflixhubd

sudo systemctl start omniflixhubd

Install OmniFlixHub STEP 5 - START NODE WITH SCREEN SESSION


Update the limit of number of open files Check status of the service

git clone https://github.com/Omniflix/omniflixhub.git


ulimit -Sn 65535

OR sudo systemctl status omniflixhubd


cd omniflixhub
ulimit -Hn 65535

git fetch --all


Checking full logs of Service using “journalctl”
git checkout v0.2.1
# Verify the values above are updated accurately

make install ulimit -n Check logs

Start Screen journalctl -u omniflixhubd


Verify your installation Install screen if not installed
For most recent logs,
omniflixhubd version --long
sudo apt-get install screen -y
journalctl -xeu omniflixhubd
Output must look like the text in the below box.
Start new screen with a name
Make sure the version and commit hash are accurate as follows:
For logs from previous day,
screen -Rd <screen-name>
journalctl --since "1 day ago" -u omniflixhubd
name: OmniFlixHub
Start Node NOTE: you can use CTRL+A+D to detach from screen
server_name: omniflixhubd

version: 0.2.1
start omniflixhub
Check logs with follow flag
commit: 013609d6c7af71a85e94b8e21514debc5afb8e0c
omniflixhubd unsafe-reset-all

omniflixhubd start journalctl -f -u omniflixhubd

/ OmniFlixNetwork

You might also like