Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Installing nepi-ng

INSTALL
SSH AGENT

What is nepi-ng ?

The commands that we have seen in the previous tutorial are useful for making quick changes on the testbed.

However once you are set up, it is much more convenient to control experiments right from your own laptop, and to this end we provide a set of tools that we collectively refer to as nepi-ng.

nepi-ng = asynciojobs + apssh

nepi-ng is simply made of 2 python libraries. This page gives you detailed instructions for installing them. You will also find a more complete documentation on these 2 tools below :

Terminal-based

All the tools that we will write will run in a terminal, we assume you are familiar with dealing with such interfaces.

Requires asyncio and python-3.9

nepi-ng is a set of python libraries; these are based on the asyncio library; these libraries require at least python-3.9.

$ python --version
Python 3.9.13

Installing asynciojobs and apssh

You need to install these libraries, the recommended way is through pip3 like this - if you’re not using virtualenv or anaconda, you might need to run these commands under sudo:

[sudo] pip3 install apssh

This should be sufficient as asynciojobs is required by apssh. You can check the installed versions like this

$ python3 -c 'from asynciojobs import __version__; print(__version__)'
0.13.1
$ python3 -c 'from apssh import __version__; print(__version__)'
0.14.1

Note that if you need to upgrade in the future, you will need to run

[sudo] pip3 install --upgrade apssh

and that will bring you the latest release published on pypi.org.

Optional - installing the r2lab python library

It is recommended to also install the r2lab python library, that we will briefly touch on in this tutorial in the D series. The library is also required for running some of the demos:

[sudo] pip3 install r2lab

and then likewise

$ python3 -c 'from r2lab import __version__; print(__version__)'
0.1.1