Tutorial Fullnode SUI on VPS by lukman (source code manual) (●'◡'●)
sudo apt update && sudo apt upgrade -y
sudo apt install wget jq git libclang-dev cmake -y
echo source $HOME/.cargo/env || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
then update rust
apt-get install screen -y
then create new screen
wait till open new window
then
apt install ufw -y
ufw allow ssh
ufw allow https
ufw allow http
ufw allow 9000
ufw allow 9184
ufw enable
Press y then Enter
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui sui-node
This instalation may take long time, estimated 1-2 hours
Install Integrated Development Environment
cargo install --git https://github.com/move-language/move move-analyzer --features "address20"
sui client active-address
press y
then ENTER ,
after then choose 0 ,enter
To view your address use sui client active-address
Dowload source code
git clone https://github.com/MystenLabs/sui.git --branch testnet
Set up the Sui repository as a git remote:
git remote add upstream https://github.com/MystenLabs/sui
copy fullnode template + genesis
cp crates/sui-config/data/fullnode-template.yaml fullnode.yaml && curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/testnet/genesis.blob
open screen again with screen -S sui
then put this code
cargo run --release --bin sui-node -- --config-path fullnode.yaml
Close screen by CTRL A+D
Check your NODE here : https://node.sui.zvalid.com/
paste your IP