Qubetics Docs
  • Getting Started
    • Quickstart
    • Network Architechture
    • Qubetics: TICS Token
    • Add Qubetics Network
    • Get TICS tokens
    • Testnet Node Setup
      • How To Become a Validator
    • Validator Application: User Guide
      • Validator Login
      • Validator Dashboard
      • Setup as a Validator
      • Blocks Page
      • Validators
        • Active Validators Tab
        • Inactive Validator Tab
        • Deactivated Validator Tab
      • Validator Details
      • Manage Account
        • Profile Details
          • Bond More Funds
          • Unbond Funds
          • Stop Validator
    • How To Become a Delegator
    • Delegator Application: User Guide
      • Login
      • Dashboard
        • Bond More Funds
        • Unbond Funds
        • Redelegate Funds
      • Wallet Activities
      • Setup Delegator Bond
      • All Validators
      • Validator Details Page
    • TICS Scan User Guide
      • Dashboard
      • Block Summary
      • Block Details
      • Transactions Summary
      • Transaction Details
      • Address Detail
      • Tokens
      • Validators
      • Nodes
        • Node Sync
      • Contract List
      • Contract Detail
        • Transaction Tab
        • Transfers Tab
        • Holders Tab
        • Event Tab
        • Contract Tab
          • Read Contract Tab
          • Write Contract Tab
        • Analytics Tab
      • Contract Verification
      • Token Icon
      • Faucet
    • Qubetics IDE User Guide
    • QubeQode Basic User Guide
      • Workspace
      • Compile
      • Deploy
  • QubeQode Pro User Guide
    • Choose your plan
    • Start Chat
      • Generated Code Preview
      • Deploy Step-1
      • Generated Code
    • Settings
  • Basics
    • Editor
    • Markdown
    • Images & media
    • Interactive blocks
    • OpenAPI
    • Integrations
Powered by GitBook
On this page
  • Prerequisites
  • Step 1: Prepare Your Environment
  • Step 2: Execute the Script
  • Step 3: Verify Installation
  • Step 4: Start the Node
  • Additional Configurations
  • Troubleshooting
  • Maintenance
Export as PDF
  1. Getting Started

Testnet Node Setup

This guide provides a step-by-step process for using the qubetics_ubuntu_node.sh script to set up and run a Qubetics node. Please follow the instructions carefully to ensure a successful setup.

We will be sunsetting the alpha testnet shortly. To prevent the confusion and conflict between both the chains, the script will automatically remove the alpha-testnet's configurations from user's system and setup a new testnet node for them.

Prerequisites

System Requirements

  • Operating System: Ubuntu 22.04

  • Memory: At least 4GB RAM

  • Storage: Minimum 20GB available disk space

  • Network: Stable internet connection

Tools and Dependencies

Ensure the following tools are installed:

  • Go ( by running the install_go.sh script )

  • Jq

  • Bash

  • wget

  • unzip

  • build-essential

All of these installations are already covered in the qubetics-testnet-script.sh script.

Step 1: Prepare Your Environment

  1. Run as Root or with Sudo Privileges: Ensure the script is executed with root privileges. If not, you may encounter permission issues.

sudo su

2. Clone the Repo: Clone the repository and change into the directory.

git clone https://github.com/Qubetics/qubetics-testnet-script
cd qubetics-testnet-script

Step 2: Execute the Script

Run the Script

Execute the script to install the required components and set up the node.

./qubetics_ubuntu_node.sh
  • The script prompts for the node name; please provide it.

  • The script prompts the user to set up a password for the keyring so that the keys are stored securely.

  • Set a secure numeric/alphanumeric password and provide it whenever prompted.

Key Configuration Prompts

  • If a previous node configuration exists, you will be prompted to overwrite it. Choose y to overwrite or n to retain the existing setup.

  • Save the generated keys and mnemonics securely when prompted. These are essential for accessing your node.

Step 3: Verify Installation

  1. Validate Genesis: Ensure the genesis file is properly configured.

qubeticsd validate-genesis --home /data/.tmp-qubeticsd
  1. Display Node Information: After setup, the script displays important node details:

  • Tendermint Public Key

  • Bech32 Address

  • Node ID

Record these details for future reference.

Step 4: Start the Node

The script automatically sets up and starts the node as a system service.

Manage the Node Service

  • Start the Service:

sudo systemctl start qubeticschain.service
  • Check the Service Status:

sudo systemctl status qubeticschain.service
  • Enable the Service to Start on Boot:

sudo systemctl enable qubeticschain.service

Additional Configurations

Update Configurations

The script automatically modifies configuration files located in /data/.tmp-qubeticsd/config/

  • Timeout Settings: Adjusted for optimal performance.

  • Gas Prices: Set to 0.25tics.

  • Networking: Configured to listen on all interfaces (0.0.0.0).

Persistent Peers

The script includes default persistent peers to facilitate P2P communication. To add or modify peers, edit the config.toml file.

nano /data/.tmp-qubeticsd/config/config.toml

Troubleshooting

Common Issues

  1. Dependency Errors: Ensure all dependencies (e.g., jq, go) are installed before running the script.

sudo apt-get install -y jq build-essential wget unzip
  1. Service Not Starting: Check logs for detailed error messages:

sudo journalctl -u qubeticschain.service -f
  1. Genesis File Validation Failed: Verify the Genesis file contents and ensure they match the required network configuration.

  2. Permission Denied: Please verify that you have completed all the required steps and granted the necessary permissions to the script using the chmod command.

Maintenance

Restart the Node

sudo systemctl restart qubeticschain.service

Stop the Node

sudo systemctl stop qubeticschain.service

Qubetics nodes work best on Linux and macOS. While you can technically run a node on Windows, it’s not recommended for production use. Most validators and node operators prefer Ubuntu or other Linux systems because they are stable, secure, and fully compatible with the Cosmos SDK. MacOS is fine for local development but isn’t used for production nodes. Running a node on Windows comes with several challenges:

  • Limited Compatibility: Qubetics node uses Cosmos SDK tools and scripts.These are designed only for Linux/macOS.

  • Performance Issues: Windows handles processes and networking differently, which can lead to instability.

  • Dependency Problems: Setting up qubetics node on Windows requires extra steps, like using WSL2 (Windows Subsystem for Linux 2).

  • No Systemd Support: Systemd, a tool commonly used to manage qubetics nodes on Linux, isn’t natively supported on Windows.

For the best experience:

  • Use Linux (Ubuntu 22.04 LTS is recommended) for development, testnets, and production.

  • macOS is okay for local testing.

  • If you’re on Windows, use WSL2 (Windows Subsystem for Linux 2) instead of running the node natively.

PreviousGet TICS tokensNextHow To Become a Validator

Last updated 2 months ago

For a video tutorial on setting up a node, visit our YouTube channel:

https://www.youtube.com/watch?v=QTQ47zWR5mo&pp=ygUIcXViZXRpY3M%3D