Skip to content

Malix7777-cpu/0G-Storage-Node

 
 

Repository files navigation

🚀 0G Lab Storage Node: Super Easy One-Command Guide


🖥️ Minimum System Requirements

  • 🧠 Memory: 32 GB RAM
  • 🖥️ CPU: 8 cores
  • 💾 Disk: 500 GB / 1 TB NVMe SSD (adjust if needed)
  • 🌐 Bandwidth: 100 Mbps (Download/Upload)

⚡ Pre-Setup Steps

  1. 🔗 Add 0G-Galileo-Testnet Chain:
    👉 Testnet Info

  2. 💧 Get Testnet Tokens:
    👉 0G Faucet


🛠️ Installation (Just 1 Command!)

Copy & run this in your terminal:

bash <(curl -s https://raw.githubusercontent.com/HustleAirdrops/0G-Storage-Node/main/installation.sh)
  • 🔑 When asked, paste your private key and hit Enter.

▶️ Start Your Node

sudo systemctl start zgs

📋 Check Node Status & Logs

  • 🔍 Check if Node is Running:
    sudo systemctl status zgs
  • 📜 See Live Logs:
    tail -f ~/0g-storage-node/run/log/zgs.log.$(TZ=UTC date +%Y-%m-%d)

Logs


⛓️ Check Block & Sync Progress

bash <(curl -s https://raw.githubusercontent.com/HustleAirdrops/0G-Storage-Node/main/logs.sh)

Blocks


🛑 Stop & Remove Node

sudo systemctl stop zgs
sudo systemctl disable zgs
sudo rm /etc/systemd/system/zgs.service
rm -rf $HOME/0g-storage-node

🔄 Change RPC Endpoint

  1. 🌐 Get new RPC: astrostake.xyz/0g-status
  2. 📝 Run:
    bash <(curl -s https://raw.githubusercontent.com/HustleAirdrops/0G-Storage-Node/main/rpc_change.sh)
  3. ✍️ Paste new RPC when asked.
  4. Restart Node:
    sudo systemctl restart zgs

🔑 Change Private Key

bash <(curl -s https://raw.githubusercontent.com/HustleAirdrops/0G-Storage-Node/main/key_change.sh)
  • Paste your new private key when asked.

🌍 Useful Links


⏳ Node Sync Information

Note: ⏳ Node sync can take 6-12 hours (depending on your internet speed and hardware). ⚡ Once syncing is complete, the node will run automatically — no manual intervention needed!


🙋 Need Help?


Stay ahead — join the channel now!

About

One-command installer for setting up the 0G Storage Node.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%