First Validator Setup

This page describes the installation of the TON Validator client for the first time. Follow it ONLY if you do not have running TON validator.

First install MyTonCtrl

For installation, you need to install the necessary packages and dependencies, start the SSH agent in the background, add your SSH private key to the SSH agent, test the SSH connection to GitHub, download the installation script for MyTonCtrl, and run the installation script with specified options.

For more detail, visit: https://github.com/sova-network/mytonctrl

Install necessary packages and dependencies

sudo apt-get install --no-install-recommends -y wget curl git libatomic1 openssl libsecp256k1-dev libsodium-dev libmicrohttpd-dev liblz4-dev libjemalloc-dev iptraf-ng pv plzip libgrpc++-dev \
    protobuf-compiler protobuf-compiler-grpc libgrpc-dev libgrpc++-dev libprotobuf-dev libabsl-dev openssh-client ca-certificates build-essential cmake clang libssl-dev zlib1g-dev gperf  ninja-build pkg-config autoconf automake libtool lsb-release software-properties-common gnupg

Start the SSH agent in the background. Add your SSH private key to the SSH agent. Test the SSH connection to GitHub

$ eval "$(ssh-agent -s)" && ssh-keyscan github.com >> ~/.ssh/known_hosts
$ ssh-add ~/.ssh/ton_secure_key
$ ssh -T git@github.com
Hi YOUR_USERNAME! You've successfully authenticated, but GitHub does not provide shell access.

Download the installation script for MyTonCtrl

wget https://raw.githubusercontent.com/sova-network/mytonctrl/refs/heads/master/scripts/install.sh

Run the installation script with specified options to install the TON node

sudo -E bash install.sh -n testnet -m validator -a sova-network  -r mytonctrl -b master -v [SOURCE_BRANCH] 

-c PATH Provide custom config for toninstaller.sh. You can specify one of the configurations:

-t Disable telemetry

-i Ignore minimum requirements

-d Use pre-packaged dump. Reduces duration of initial synchronization.

-a Set MyTonCtrl git repo author: sova-network

-r Set MyTonCtrl git repo: mytonctrl

-b Set MyTonCtrl git repo branch: master

-m MODE Install MyTonCtrl with specified mode (validator or liteserver)

-n NETWORK Specify the network (mainnet or testnet)

-v [SOURCE_BRANCH] Specify the ton node version (commit, branch, or tag)

  • for accelerator use mev-accelerator

  • for testnet use mev-testnet

  • for master use mev-master

-u USER Specify the user to be used for MyTonCtrl installation

-h Show this help

Configuring global config file

After successfully setup MyTonCtrl, update the global configuration file. By default, it is located at:

nano /usr/bin/ton/global.config.json

Next step Configuration Validator client or LiteServer

Last updated