Skip to content

ntop/cockpit-ntop

Repository files navigation

Cockpit-based nBox UI

Alt text

Prerequisites

  • cockpit
apt install cockpit
  • cockpit-navigator file manager (optional)
apt install cockpit-navigator
  • npm (development only)
apt install npm

Installation

Go to https://packages.ntop.org/ and configure the ntop packaging system for your platform according to the intstruction you will find on the site. Then follow the instructions below.

  • Debian/Ubuntu:

    • apt install nboxui
  • RedHat/Rocky Linux:

    • yum install nboxui
    • systemctl enable --now cockpit.socket

Development

This section is relevant only if you plan to contribute to nBox UI development.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev -- --host

Compile and Minify

npm run build

Compile and Install in Cockpit

sudo make build-install

Install (pre-compiled dist) in Cockpit

sudo make install