STAKE WARS — Node Guide challenge 001–004 ENG & IND Version

Royan
4 min readAug 11, 2022

This is quite a long tutorial, please be careful to follow the tutorial

ini merupakan tutorial yang cukup panjang, harap teliti untuk mengikuti tutorialnya

Recommended Hardware Requirements

  • 4x CPUs; the faster clock speed the better
  • 8GB RAM
  • 500GB of storage (SSD or NVME)
  • Permanent Internet connection (traffic will be minimal during devnet; 10Mbps will be plenty — for production at least 100Mbps is expected)

Persyaratan Perangkat Keras yang Direkomendasikan

  • 4x CPU; semakin cepat kecepatan jam semakin baik
  • RAM 8 GB
  • Penyimpanan 500GB (SSD atau NVME)
  • Koneksi Internet permanen (lalu lintas akan minimal selama devnet; 10Mbps akan banyak — untuk produksi diharapkan setidaknya 100Mbps)

Useful links :

Wallet: https://wallet.shardnet.near.org/

Explorer: https://explorer.shardnet.near.org/

Create a wallet

The first step we will do is create a vps here I use Azure

Langkah pertama yang akan kita lakukan adalah membuat vps disini saya mengguanakn Azure

AZURE SETUP

  1. Create VM (membuat VM)

2. Name the VM, select regional IP and specification

(Beri nama VM, pilih IP dan spesifikasi regional)

  • for recommendations can be seen in the photo
  • untuk rekomendasi bisa dilihat di foto

3. Choose the authentication type as “password” then set your username and password, it will be used to access CLI. And dont forget to checklist all port(Pilih jenis otentikasi sebagai “kata sandi” lalu atur nama pengguna dan kata sandi Anda, itu akan digunakan untuk mengakses CLI. Dan jangan lupa untuk mencentang semua port)

4. Waiting for deployment(tunggu deployment)

5. Now upgrade your storage to 500GB, Make sure your VM has stopped, then go to Disk and choose your Disk ( Sekarang tingkatkan penyimpanan Anda menjadi 500GB, Pastikan VM Anda telah berhenti, lalu buka Disk dan pilih Disk Anda)

6. Back to your VM Overview and Start your VM, Your VM is ready dude (Kembali ke Ikhtisar VM Anda dan Mulai VM Anda, VM Anda sudah siap kawan)

Stake Wars: Episode III. Challenge 001

SETUP NEAR-CLI

  1. Update && Upgrade software
sudo su
cd
sudo apt update && sudo apt upgrade -y

*/ sudo su & cd is needed because in azure vps it doesn’t lead directly to root (sudo su & cd di perlukan karena di vps azure tidak langsung mengarah ke root)

2. Set port and enable the function(atur port dan nyalakan fungsinya)

ufw allow ssh/tcp && ufw allow http/tcp && ufw allow https/tcp && ufw enable

and then cheek with (lalu cek dengan perintah)

ufw status

3. Install nodeJS & NPM( pasang nodejs dan NPM)

curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -sudo apt install build-essentialsudo apt install nodejsPATH=”$PATH”

4. Check version NodeJs and NPM (cek versi ngab)

Make sure the version that has been installed is the latest version ( Pastikan versi yang diinstall adalah versi terbaru )

node -v

v18.6.0

npm -v

8.13.2

5. Install NEAR-CLI to use your wallet in the validator section later

--

--