Installation Guide

Prerequisites

  • A server or virtual machine running a Debian-based Linux distribution (e.g., Ubuntu).
  • Sudo privileges on the server.
  • Internet connection for downloading dependencies.

Script Description

The provided script automates the following tasks:

  1. Installs necessary dependencies.
  2. Creates a dedicated user (navio).
  3. Clones the Navio repository.
  4. Builds the Navio project from source.
  5. Creates a default configuration file.
  6. Creates a wallet.
  7. Sets up systemd service files for both the Navio daemon and the staker.
  8. Enables and starts the services.

Installation Steps

Step 1: Download the Script

First, download the installation script to your server.

curl -O https://example.com/path-to-your-script/install_navio.sh

Replace https://example.com/path-to-your-script/install_navio.sh with the actual URL where your script is hosted.

Step 2: Make the Script Executable

Make sure the script has executable permissions.

chmod +x install_navio.sh

Step 3: Run the Script

Execute the script with sudo to ensure it has the necessary permissions.

sudo ./install_navio.sh

Post-Installation

Check Service Status

After the installation, check the status of the Navio daemon and staker services to ensure they are running correctly.

sudo systemctl status naviod
sudo systemctl status navio-staker

Logs

The script logs its output to /var/log/navio_install.log. Check this log file if you encounter any issues during the installation.

cat /var/log/navio_install.log

Working with Navio

Check the Logs

  • The logs for the daemon are located in /home/navio/.navio/testnet4/debug.log
  • The logs for the staker are located in /home/navio/.navio/testnet4/staker.log

To view the logs, you can use the cat, less, or tail commands. For example:

cat /home/navio/.navio/testnet3/debug.log

How to Get Testnet Coins

Join our Discord at https://discord.com/invite/eBQ2QUkVXy and use the command /faucet in the #testnet channel.

How to Interact with the Daemon

You need to run navio-cli -testnet command as the navio user. You can switch to the navio user or use sudo:

To switch to the navio user:

sudo su - navio

Then run the command:

navio-cli -testnet command

Alternatively, run the command directly with sudo:

sudo -u navio navio-cli -testnet command

Available Commands

  • getnewaddress: Shows an address to receive coins
  • getbalance: Shows the wallet balance
  • sendtoblsctaddress address amount: Send coins to an address
  • stakelock amount: Stake an amount of coins (minimum is 10000)
  • stakeunlock amount: Remove from staking (the remaining staking should be 10000 at a minimum)

Troubleshooting

If you encounter any issues, consider the following steps:

  • Check the Log File: Review the log files for detailed error messages
  • Verify Service Status: Ensure the services are running using systemctl status naviod and systemctl status navio-staker
  • Check Dependencies: Make sure all dependencies are installed properly. Re-run the script to ensure no steps were missed

If you continue to face issues, you can seek support from the Navio community or refer to the project's documentation and forums.