Sitemap

Install Full node SUI network -Testnet.

5 min readApr 9, 2023

--

Press enter or click to view image in full size

The new Testnet differs from the previous waves 1 and 2 in that it will continue to operate even after the Mainnet launch. This network offers the community a number of significant updates and features.

Before installing the node, you will need to rent a VPS server or, if you are a true cryptoanarchist, you can set up a server at home. In this case, a VPS has a number of advantages, such as high availability and ease of setup.

I can share with you ways to rent a VPS server at a lower cost and set it up in less than 2 minutes. I select Contabo. Choose Cloud VPS M — it’s the optimal choice.

Press enter or click to view image in full size

Do not change anything for the geolocation of your VPS server.

Choose a 400 GB solid-state drive as the storage type.

Press enter or click to view image in full size

Choose Ubuntu 20.04.

Press enter or click to view image in full size

Next, create your passport on the platform in the settings and copy it. Save it, as it is important!

Press enter or click to view image in full size

Complete filling in the last fields with your personal information to proceed to payment. Approximately in 15 minutes, you will receive a second email with all the information to connect to your VPS in your mailbox.

If we are talking about Windows, I invite you to download Putty (you can directly download the installation file from this link) at https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe

Press enter or click to view image in full size

Launch Putty and a new window will open in which you enter the IP address of your VPS.

Press enter or click to view image in full size

Then the interface of your server will open and ask you to enter your login data.

Tip 1: To paste any command you have already copied, simply right-click where you want to insert the command.

Tip 2: Only paste or write a command when your VPS server allows it. Wait until you see the prompt “root@vmxxxxxxx: “ before typing, otherwise you will have to wait.

Now that you’re ready to get serious work done, be patient and follow the instructions one by one. Make sure you complete each command from start to finish. For your convenience, the instructions include screenshots of the expected result after each command.

sudo apt update && sudo apt upgrade -y

Load other tools using 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
Press enter or click to view image in full size
source $HOME/.cargo/env
rustup update
apt-get install screen

Press Y and Enter.

Next: open ports.

cd $home

Use this command.

apt install ufw -y 
ufw allow ssh
ufw allow https
ufw allow http
ufw allow 9000
ufw allow 9184
ufw enable

Press Y and Enter.

Install the Sui binaries.

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui sui-node

Development environment.

cargo install --git https://github.com/move-language/move move-analyzer --features "address20"

Now we need to get SUI tokens.

Create wallet.

sui client active-address

Press Y and Enter.

https://fullnode.testnet.sui.io:443
Press enter or click to view image in full size
testnet
Press 0 and Enter

Save all the information in a notebook, for example.

Press enter or click to view image in full size

We still need tokens! Go to the testnet-faucet channel on discord and ask for a token with this command:
!faucet xxxxxxxxxxxxxxxxxxxxxx — your wallet

Press enter or click to view image in full size

Configuring the node.

cd sui

Set up the Sui repository as git remote.

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

Sync your fork.

git fetch upstream
Press enter or click to view image in full size

Create a copy of the fullnode configuration template.

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

Download the latest version of genesis state for devnet by running in the terminal.

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

Now we are ready to run our fullnode!

Go to the sui vault in the thermal.

cd sui
screen -S sui

And finally…

cargo run --release --bin sui-node -- --config-path fullnode.yaml
Press enter or click to view image in full size

Congratulations, your node is up and running!

Get CryptoCode’s stories in your inbox

Join Medium for free to get updates from this writer.

NOW Press CTRL+A+D to detache screen. Now you can close putty.

To see how our Check your Fullnode node works - https://node.sui.zvalid.com/

Press enter or click to view image in full size

_________________________________________________________________

This might be useful! UPDATE YOUR NODE (when needed)

cd sui
rm -r suidb genesis.blob
curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/testnet/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

That’s all for the guide. If you found it helpful, do hit the clap button and support work!

--

--

CryptoCode
CryptoCode

Written by CryptoCode

Crypto enthusiast! Complex things in simple terms!