Skip to content

Installation of n6 Components

Shell user

First, change the shell user to dataman:

$ su - dataman

Obtaining the source code

Being logged in as dataman, with this user’s home directory as the current working directory, clone the n6 Git repository (to /home/dataman/n6):

$ git clone n6

Virtualenv initialization

Create and activate a new Python virtualenv, let us call it env; do not forget to activate it:

$ virtualenv env
$ source env/bin/activate

Running setup scripts of n6 packages

For the typical installation of n6 Python packages, run the script in the cloned n6 directory, with names of packages (names of parent directories of packages) as its arguments:

(env)$ cd n6
(env)$ ./ N6Core N6RestApi N6Portal N6AdminPanel


You can add the -a develop argument to run the script in the develop mode. In this mode a link file to each package is created in your site-packages directory. Then, every change in code is reflected immediately, without having to install the affected package again.

After successful installation, try the autocomplete option to reveal a list of n6 components:

(env)$ n6  # <- try the TAB key directly after typing "n6" to see the results of autocompletion
Back to top