Difference between revisions of "Mining NKN with Linux"

From NKN Community Wiki
(Add warning for the 25GB configuration)
(One intermediate revision by the same user not shown)
Line 14: Line 14:
|-
|-
|Hard Drive Disk
|Hard Drive Disk
|25GB (SSD is recommended)
|30GB (SSD is recommended)
A 25GB configuration is possible but it is recomanded to restart every noon the node in order to keep the chain size as light as possible
|-
|-
|CPU
|CPU
Line 52: Line 53:


==== Find and reach your node install directory ====
==== Find and reach your node install directory ====
<code>cd "$(find / -type d -name "nkn-node" 2>/dev/null)"</code>
<code>cd "$(find / -type d -name "nkn-node" 2>/dev/null)"</code>


==== Verify your node service status ====
==== Verify your node service status ====
<code>systemctl status nkn-commercial.service</code>
<code>systemctl status nkn-commercial.service</code>


==== Check on your node last logs ====
==== Check on your node last logs ====
<code>journalctl -u nkn-commercial.service</code>
<code>journalctl -u nkn-commercial.service</code>




Line 64: Line 65:


==== Display your node status information ====
==== Display your node status information ====
<code>./nknc info -s</code>  
<code>./nknc info -s</code>  


==== Display your node log in real time ====
==== Display your node log in real time ====
<code>tail -f nkn-node.log</code>
<code>tail -f nkn-node.log</code>




Line 73: Line 74:
=== Uninstall ===
=== Uninstall ===
Switch to root user if not root yet
Switch to root user if not root yet
<code>sudo su -</code>  
 
<code>sudo su -</code>  
 
Run the following command
Run the following command
<code>/home/nkn/nkn-commercial/nkn-commercial uninstall</code>
 
<code>/home/nkn/nkn-commercial/nkn-commercial uninstall</code>

Revision as of 06:53, 23 September 2021

📌 This guide will help you to install a NKN node using Linux.

Requirements

NKN Node tech requirement
Spec Requirement
Operating system Ubuntu is recommended (works perfectly with Debian)
Memory 1GB
Hard Drive Disk 30GB (SSD is recommended)

A 25GB configuration is possible but it is recomanded to restart every noon the node in order to keep the chain size as light as possible

CPU Most of them works (AMD, ARM, MIPS,...)
Internet connection speed 10Mbps up and down is a minimum
Internet usage The amount of data used per month can be as high as multiple TB per month
IP address 1 IP version 4 (IPv4) is require per node. There is no way (and it would make no sense) to run multiple node on a single IP. IPv6 is not available.
Port forwarding You need to be able to reach the TCP/UDP ports 30001-30021. Optionally the TCP ports 30022-65535 for NKN Commercial services like nConnect. See our page about port forwarding

Before you start

Please be sure to check all the following points

  • [ ]  I have 10.1NKN mainnet tokens (or I'm ready to buy them)
  • [ ]  My server is connected to internet
  • [ ]  I have setup my port forwarding


It's now time to ask yourself an important question: are you confident with the concepts of console, SSH, bash ?


Debug

Here is a cheatsheet of commands helping you to debug and understand better your node.

Find and reach your node install directory

cd "$(find / -type d -name "nkn-node" 2>/dev/null)"

Verify your node service status

systemctl status nkn-commercial.service

Check on your node last logs

journalctl -u nkn-commercial.service


The following commands needs to be entered inside your node install directory

Display your node status information

./nknc info -s

Display your node log in real time

tail -f nkn-node.log


Uninstall

Switch to root user if not root yet

sudo su -

Run the following command

/home/nkn/nkn-commercial/nkn-commercial uninstall