Alpagupk / Massa-Mainnet-Node-Setup

Mainnet Node Setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Massa jpeg

Massa-Mainnet-Node-Setup

Massalabs Mainnet Installing a node 1-Öncelikle sunucumuzu güncelliyoruz ( We are updating our server )

  • sudo apt-get update
  • sudo apt-get upgrade

2-Screen açabilmek için screen yüklüyoruz. ( We are loading screen)

  • sudo apt install screen

Screen açıyoruz. ( We open the screen)

  • screen -S Massa

3-Portları açalım. ( Let’s open the Ports )

  • sudo apt install ufw -y
  • sudo ufw allow 22
  • sudo ufw allow ssh
  • sudo ufw allow 31244/tcp
  • sudo ufw allow 31245/tcp
  • sudo ufw enable

4-Kütüphaneden verileri yükleyelim ( Let’s load data from the library )

  • sudo apt install pkg-config curl git build-essential libssl-dev libclang-dev cmake

5-Rustup yükleyelim ( İnstall Rustup )

  • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • 1 seçiyoruz
  • source $HOME/.cargo/env

Versiyon Kontrol edelim ( Version Control )( Optional)

  • rustc --version
  • rustup toolchain install 1.74.1
  • rustup default 1.74.1
  • rustc --version (Çıktı 1.74.1 olmalı) (Optional)

6-Repoyu Kopyalayalım ( Clone this repo )

7-Sunucu İp Adresimizi Kaydedelim ( Let’s save our Server Ip Address )

  • nano massa/massa-node/config/config.toml

Açılan sayfada ( On the opened page );

  • [protocol] routable_ip = "AAA.BBB.CCC.DDD"

*** ( AAA.BBB.CCC.DDD Sunucu ip adresinizle değiştirilmelidir ) *** ( Should be replaced with your public IP address ) **** Sunucunuz destekliyorsa IPV6 kullanabilirsiniz. ( IPV6 is also supported. )

  • Ctrl X daha sonra Y ile kaydedip Enter ile çıkıyoruz. ( Ctrl X then save with Y and exit with Enter )
  • Massa Client içerisinde < get_status > (Kontrol Ediyoruz) (We Check)
  • Node's IP: AAA.BBB.CCC.DDD (Çıktı bu şekkilde olmalı) ( The output should be like this )

*** “ No routable IP ” çıktısı alıyorsanız 7.adımı tekrar yapalım. ( If the output is like this, let’s repeat step 7. )

8-Düğüm başlatma ( Start the node );

  • cd massa/massa-node/
  • RUST_BACKTRACE=full cargo run --release -- -p < PASSWORD > |& tee logs.txt

*** < PASSWORD > kısmına unutmayacağınız bir şifre belirleyin.) (Replace with a password that you will need to keep to restart your node. You should leave the window open. )

Düğümümüzü başlattık.

9-İkinci bir Screen açalım ( Let’s open a second screen ); Client Başlatma. (Start the Client)

  • cd massa/massa-client/
  • cargo run --release -- -p "PASSWORD"

*** PASSWORD 8. Adımda belirlediğimiz şifreyi kullanabiliriz. (Replace with a password that you will need to keep to restart your client)

***** Screen’ler arası geçişi Ctrl A+P ile yapabilirsiniz.

11- Cüzdan Ekleme (Add Wallet); Client’in olduğu screen giriyoruz. (We enter the window there the client is)

  • cd massa/massa-client/
  • cargo run
  • wallet_add_secret_keys <your_secret_key>

Cüzdanımızı ekledik. (Wallet Add)

12- Cüzdan bakiye ve bilgilerini kontrol etmek için ( Wallet info )

  • wallet_info *Adres keyleri için ( Public key’s addresse)
  • wallet_get_public_key
  • wallet_get_secret_key

13- Roll Satın almak ve Stake işlemi( Buying Rolls and Staking)

  • wallet_info
  • buy_rolls Örnek (Example): buy_rolls A12dr48yZaL2NpQkwsrpsNLGDpndFUCVSdYdSiQh4UfkYRMo17km 1 0

Saking:

  • node_start_staking <your_address>

Tebrikler Düğümünüz artık çalışıyor. ( Congratulations. Your node is now running)

About

Mainnet Node Setup