How to install a Full node on the SUI network of Mysten Labs for beginners — DEVNET
August 15th, 2022

Introduction to Sui of Mysten Labs

Sui is the first permissionless Layer 1 blockchain designed from the ground up to enable creators and developers to build experiences that cater to the next billion users in web3.

Go to root of your server after that follow the steps

Update

sudo apt update && sudo apt upgrade -y


Donwload other tools with this command

apt-get update \
    && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends \
    tzdata \
    git \
    ca-certificates \
    curl \
    build-essential \
    libssl-dev \
    pkg-config \
    libclang-dev \
    cmake

Installs RUST :

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

And

source $HOME/.cargo/env

apt-get install screen

Press Y and Enter

Configure your Node

Open your github account and go to Sui Repository

Set up your fork of the Sui repository: Go to the Sui repository on GitHub and click the Fork button in the top right-hand corner of the screen.

git clone https://github.com/<YOUR-GITHUB-USERNAME>/sui.git
This a real example with my github account:

git clone https://github.com/jackal786/sui.git

Go to sui repository:

cd sui

Set up the Sui repository as a git remote:

git remote add upstream https://github.com/MystenLabs/sui

Sync your fork:

git fetch upstream

Check out the devnet branch:

git checkout --track upstream/devnet

Make a copy of the fullnode configuration template:

cp crates/sui-config/data/fullnode-template.yaml fullnode.yaml


Download the latest genesis state for devnet by clicking that link or by running the following in your terminal:

curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob


Start your Sui fullnode
Follow the part below even if it does not appear in my video

replace address 127.0.0.1:port by 0.0.0.0:port in your fullnode.yaml:

sudo nano fullnode.yaml

After modification

Press CTRL+X

Press Y

And Press Enter

screen -S sui

And finally

cargo run --release --bin sui-node -- --config-path fullnode.yaml


Now you can Press Ctrl+A+D and quit Putty

If you do not have the above result:

Press Ctrl+C and relaunch the last command:

cargo run --release --bin sui-node -- --config-path fullnode.yaml

Check your Fullnode
Click Here

UPDATE 22/07/2022 (Download the latest genesis.blob)


cd sui

rm -r suidb genesis.blob

curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob

git fetch upstream

git checkout -B devnet

git pull

screen -S sui

cargo run --release --bin sui-node -- --config-path fullnode.yaml

Now you can Press Ctrl+A+D

UPDATE 09/08/2022 DELETE SUIDB
Restart your vps via your contabo account

Delete SuiDB

rm -rf ~/sui/suidb
Go to Sui

cd sui

And

screen -S sui
And finally

cargo run --release --bin sui-node -- --config-path fullnode.yaml

Update 14/08/2022 Launch your full node with last commit
Restart your vps 

Go to Sui

cd sui
Download commit patch

curl -O https://github.com/lrinQVQ/sui/commit/f7ff151340917aac6231396742babc686141bd05.patch

And set it

git am f7ff151340917aac6231396742babc686141bd05.patch
And

screen -S sui
And finally

cargo run --release --bin sui-node -- --config-path fullnode.yaml

Subscribe to Crypto Lover
Receive the latest updates directly to your inbox.
Nft graphic
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from Crypto Lover

Skeleton

Skeleton

Skeleton