Getting Started with NNCP

This page describes the basic installation and configuration of NNCP.

If you aren’t already familiar with how NNCP works, I highly recommend you start with NNCP Concepts.

This is a companion to, and often a parallel of, the Workflow section of the NNCP manual.

Installation

Main documentation: NNCP Manual: Installation Section.

On that page, you can find links to packages for various operating systems.

Building from source

Alternatively, if you need to build it yourself, you can download a source tarball and build it from source.

To build from source, you’ll need Go installed.

Then, from within the NNCP source tree, run something like:

export PREFIX=$HOME/nncp
./contrib/do install

Adjusting PREFIX, of course, to where you want it to go. Another popular value may be /usr/local or /usr/local/nncp for a systemwide installation.

Configuration

First, you’ll generate a new NNCP config file:

$PREFIX/bin/nncp-cfgnew > $PREFIX/etc/nncp.hjson

(Use appropriate paths here; for instance, on Debian, nncp-cfgnew is in /usr/bin and the config goes under /etc/nncp.)

The NNCP configuration manual describes what’s in this file and how to use it.

By default, you will have a node that is configured for itself, but doesn’t know how to talk to others. Your general process now will be:

  1. Run nncp-cfgnew on each machine you want to talk to
  2. Copy the public keys from machine A to the neigh section of machine B, and vice-versa. (This is similar to the ssh known_hosts and authorized_keys files).

If you don’t have another machine to talk to, you could join the quux.org NNCP public relay instead.

Use

Now, you can use it. Again, NNCP’s workflow page will explain how things generally work.


This page describes some basic concepts of NNCP.

According to the NNCP documentation, NNCP is intended to help build up small size ad-hoc friend-to-friend (F2F) statically routed darknet delay-tolerant networks for fire-and-forget secure reliable files, file requests, Internet Email and commands transmission. All packets are integrity checked, end-to-end Encrypted, explicitly authenticated by known participants public keys. Onion encryption is applied to relayed packets. Each node acts both as a client and server, can use push and poll behaviour model. Also there is multicasting area support.

NNCP lets you securely send files, or request remote execution, between systems. It uses asynchronous communication, so the source and destination need never be online simultaneously. NNCP can route requests via intermediate devices – other NNCP nodes, USB sticks, tapes, radios, phones, cloud services, whatever – leading to a network that is highly resilient and flexible. NNCP makes it much easier to communicate with devices that lack Internet connectivity, or have poor Internet.

I sometimes see people read about NNCP and wonder “This sounds great! But… what can I do with it?” This page aims to answer those questions.