Coin Hunters Services
  • Introduction
  • Mainnet
    • Avail
      • Installation
      • Upgrade
    • Babylon
      • Installation
      • Service
      • Useful commands
      • Snapshot
    • CrossFi
      • Service
      • Installation
      • Useful commands
    • Dymension
      • Service
      • Installation
      • Snapshots
      • Useful commands
      • Upgrade
    • Lava Network
      • Service
      • Installion
      • Snapshots
      • Useful commands
    • Nibiru
      • Service
      • Installation
      • Useful commands
      • Snapshot
    • Zeta Chain
      • Service
      • Installation
      • Useful commands
      • Upgrade
    • Mantra Chain
      • Installation
      • Service
      • Useful commands
      • Snapshot
    • Rivalz
      • zNode
    • Kopi Money
      • Installation
      • Service
      • Useful commands
      • Snapshot
      • Upgrade
    • Story Protocol
      • Story Mainnet
        • Installation
        • Snapshots
        • Service
        • Upgrade
    • Side Protocol
      • Installation
      • Snapshots
      • Useful commands
    • Fuel Network
      • Installation
      • Snapshots
      • Useful commands
  • Testnet
    • 0G Labs
      • Service
      • Installation
      • Useful commands
      • 0G-Newton
        • Service
        • Installation
        • Useful commands
        • Snapshots
    • Airchains
      • Varanasi
        • Service
        • Installation
        • Snapshots
        • Useful commands
      • Junction
        • Service
        • Installation
        • Snapshots
        • Useful commands
      • Rollup Evm Airchains
      • Auto TX Script
    • AligendLayer
      • Installation
    • Allora Network
      • Service
      • Installation
      • Snapshots
      • Useful commands
      • Worker Node
    • Artela Network
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Avail
      • Installation
      • Update v2.2.1
    • Babylon
      • Installation
      • Useful commands
    • CrossFi
      • Service
      • Installation
      • Useful commands
      • Snapshots
    • Dill
      • Andes
      • Alps
    • Dymension
      • Service
      • Installation
      • Useful commands
    • Elys Network
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Empeiria
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Ethernity Chain
      • Deploy a Smart Contract and Verify
      • Create an ERC-20 token and Verify
      • Create an NFT Collection and Verify
    • Farcaster Node Hubble
      • Upgrade
    • Fiamma Chain
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Initia
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Lava Network
      • Service
      • Installation
      • Useful commands
    • Mantra Chain
      • Hongbai Testnet
        • Service
        • Installation
        • Snapshots
        • Useful commands
      • Dukong Testnet
        • Service
        • Installation
        • Snapshot
        • Useful commands
    • Nillion Network
      • Service
      • Installation
      • Snapshots
      • Useful commands
      • Verifier Program
    • Nubit
      • Light Node
      • Installation Validator
    • PINGPONG
      • Installation
      • 0G Storage Kurulumu
      • Grass Kurulumu
    • Rivalz
      • Linux Client
    • Side Protocol
      • S3 Tesnet
        • Service
        • Installation
        • Useful commands
      • S2 Incentivized Testnet
        • Installation
        • Useful commands
      • S4 Incentivized Tesnet
        • Service
        • Installation
        • Useful commands
        • Snapshots
    • Sunrise Layer
      • Service
      • Installation
      • Snapshots
      • Useful commands
      • Manual upgrade
    • Union
      • Service
      • Testnet-9
        • Installation
        • Snapshots
        • Useful commands
      • Testnet-8
        • Installation
        • Snapshots
        • Useful commands
    • Warden Protocol
      • Service
      • Installation
      • Snapshots
      • Useful commands
      • Chiado Testnet
        • Installation
        • Useful commands
    • Zero Network
      • Deploy a Smart Contract
    • Story Protocol
      • illiad Testnet
        • Installation
        • Snapshots
        • Upgrade
      • Odyssey testnet
        • Service
        • Installation
        • Snapshots
        • Useful Tool
      • Story Aeneid
        • Installation
        • Snapshots
        • Service
    • Hemi Network
    • Axone Chain
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Glacier Network
      • Installation
    • Pipe Network
      • Installation
    • Pell
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • Native Network
      • Service
      • Installation
      • Snapshots
      • Useful commands
    • XRPL EVM
      • Installation
      • Useful commands
      • Snapshot
      • Service
    • Lumera Protocol
      • Installation
      • Useful commands
      • Snapshot
      • Service
Powered by GitBook
On this page
  • Manual Installation
  • Automatic Installation
  1. Testnet
  2. 0G Labs
  3. 0G-Newton

Installation

Manual Installation

Gerekli Sistem

Ubuntu 22.04

CPU
RAM
SSD

4 vCPU

8 GB

160 SSD

Install dependencies

UPDATE SYSTEM AND INSTALL BUILD TOOLS

cd $HOME && source <(curl -s https://raw.githubusercontent.com/CoinHuntersTR/Logo/main/update-cosmos.sh)

Download and build binaries

git clone -b v0.1.0 https://github.com/0glabs/0g-chain.git
./0g-chain/networks/testnet/install.sh
source .profile
mkdir -p $HOME/.0gchain/cosmovisor/genesis/bin
cp $HOME/go/bin/0gchaind $HOME/.0gchain/cosmovisor/genesis/bin/
sudo ln -s $HOME/.0gchain/cosmovisor/genesis $HOME/.0gchain/cosmovisor/current -f
sudo ln -s $HOME/.0gchain/cosmovisor/current/bin/0gchaind /usr/local/bin/0gchaind -f

Create service file

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0
sudo tee /etc/systemd/system/0gchain.service > /dev/null << EOF
[Unit]
Description=og node service
After=network-online.target
 
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.0gchain"
Environment="DAEMON_NAME=0gchaind"
Environment="UNSAFE_SKIP_BACKUP=true"
 
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable 0gchain

Set Vars

wallet yerine istediğiniz bir ismi, $MONIKER yerine bir validator adı yazmayı unutmayın.

echo 'export CHAIN_ID="zgtendermint_16600-1"' >> ~/.bash_profile
echo 'export WALLET_NAME="wallet"' >> ~/.bash_profile
source $HOME/.bash_profile
0gchaind init $MONIKER --chain-id $CHAIN_ID
0gchaind config chain-id $CHAIN_ID
0gchaind config keyring-backend test 

Download Genesis and Addrbook

rm $HOME/.0gchain/config/genesis.json
wget https://github.com/0glabs/0g-chain/releases/download/v0.1.0/genesis.json -O $HOME/.0gchain/config/genesis.json

Configure

seeds=$(curl -s https://raw.githubusercontent.com/CoinHuntersTR/props/main/0g-Newton/seeds.txt)
sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/" $HOME/.0gchain/config/config.toml
peers=$(curl -s https://raw.githubusercontent.com/CoinHuntersTR/props/main/0g-Newton/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.0gchain/config/config.toml
sed -i.bak -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.0gchain/config/app.toml
sed -i.bak -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.0gchain/config/app.toml
sed -i.bak -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.0gchain/config/app.toml
sed -i "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.00252ua0gi\"/" $HOME/.0gchain/config/app.toml
sed -i "s/^indexer *=.*/indexer = \"kv\"/" $HOME/.0gchain/config/config.toml

Snapshot

sudo systemctl stop 0gchain
cp $HOME/.0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup
rm -rf $HOME/.0gchain/data && mkdir -p $HOME/.0gchain/data
curl -L https://snapshots.coinhunterstr.com/zgtendermint_16600-1_snapshot_latest.tar.lz4 | tar -I lz4 -xf - -C $HOME/.0gchain/data
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json

Start service

sudo systemctl restart 0gchain && sudo journalctl -u 0gchain -f

Automatic Installation

wallet yerine cüzdan isminizi girmeyi unutmayın. $MONIKER yerine kullanmak istediğiniz validator adını giriniz.

wget -q -O 0g-Newton.sh https://raw.githubusercontent.com/CoinHuntersTR/props/main/AutoInstall/0g-Newton.sh && chmod +x 0g-Newton.sh && ./0g-Newton.sh
PreviousServiceNextUseful commands

Last updated 1 year ago