Create a N1PC node

This guide provides a straightforward approach to setting up and running an N1PC node on your system. Follow these steps to get started:

Prerequisites

  • A server or local machine with a recent version of Linux (Ubuntu 20.04 LTS recommended).

  • A user with sudo privileges.

  • Basic knowledge of terminal and command line.

Install git

First, ensure Git is installed on your system to clone the N1PC repository:

sudo apt-get update
sudo apt-get install git

Setup firewall

Configure your firewall to secure the node:

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 26656/tcp
sudo ufw allow 26660/tcp
sudo ufw allow 26657/tcp
sudo ufw allow 9090/tcp
sudo ufw allow 1317/tcp
sudo ufw enable

Clone n1pc repository

Clone the repository to obtain the necessary files:

Initialize the Node

Navigate to the N1PC directory and initialize your node with a unique name and the network's chain ID:

Running the init command will create a ~/.n1pc folder with config files. In the next steps, we will configure our node so it can connect to other nodes.

Make n1pcd Executable System-wide

To ensure n1pcd can be run from anywhere:

Add the following line at the end of the file:

Save and exit, then apply the changes:

Configure node

Adjust the node's configuration to connect to the network:

Copy the Genesis file

Ensure the node is configured with the correct genesis file:

Run the Node

Start your node to begin syncing with the network:

Once you start the node, it will begin syncing with other nodes. It takes some time to sync all blocks.

Last updated