Raspberry – Installation Ntopng

1. Mise à jour de notre Raspberry
sudo apt-get update && sudo apt-get upgrade -uV
2. Installation de composant dont nous auront besoin
sudo apt-get install build-essential libtool automake autoconf libpcap-dev libgdbm-dev zlib1g-dev rrdtool librrd-dev libssl-dev python-dev libgeoip-dev graphviz libgraphviz-dev autoconf automake autogen libsqlite3-dev libhiredis-dev libtool rrdtool libpcap-dev libglib2.0 libglib2.0-dev libgeoip-dev redis-server wget libxml2-dev build-essential check install nano libtool automake autoconf make build-essential python-dev subversion libpcap-dev libgdbm-dev zlib1g-dev libgeoip-dev libgraphviz-dev graphviz rrdtool librrd-dev
3. Création d’un dossier pour y mettre nos source
sudo mkdir -p install
cd install
sudo wget --trust-server-names http://sourceforge.net/projects/ntop/files/ntopng/ntopng-2.0.tar.gz/download

4. Extraction du fichier
sudo tar -xf ntopng-2.0.0.tgz
5. Installation et compilation de notre application
cd ntopng-2.0.0
sudo ./autogen.sh
sudo ./configure
sudo make geoip
sudo make

sudo check install
sudo checkinstall

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
...
Answer: y
...
Should I create a default set of package docs? [y]: y
...
Preparing package documentation...OK
...
Please write a description for the package eg: ntopng and confirm it using 2x ENTER.
Please write a description for the package.
End your description with an empty line or EOF.
>> ntopng
>>
...

0 - Maintainer: [ user@debian.com ]
1 - Summary: [ ntopng ]
2 - Name: [ ntopng ]
3 - Version: [ 1.2.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ntopng-1.2.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ntopng ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Continue by pressing ENTER.
....

Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Deleting temp dir...OK

**********************************************************************

Done. The new package has been installed and saved to

../install/ntopng-1.2.1/ntopng_1.2.1-1_amd64.deb

You can remove it from your system anytime using:

dpkg -r ntopng

**********************************************************************
The new package should be located in install folder e.g:
../install/ntopng-1.2.1/ntopng_1.2.1-1_amd64.deb

To remove ntopng use command below:
sudo dpkg -r ntopng

6. Configure init script ntopng.

Create ntopng configfile in /etc/default folder and create new folder for logs:
sudo mkdir /var/log/ntopng
sudo touch /var/log/ntopng/startup.log
sudo wget http://terminal28.com/wp-content/uploads/2014/08/ntopng-init-script-deb.tar.gz
sudo tar xvzf ntopng-init-script-deb.tar.gz -C /
sudo chmod +x /etc/default/ntopng
sudo chmod +x /etc/init.d/ntopng

7. Configuration du fichier par défaut
sudo nano /etc/default/ntopng
ENABLED=1
Configure network interfaces e.g:.
INTERFACES="eth0 eth1 wlan0"
Port on which ntopng will listen for the web-UI – default port 3000.
HTTP_PORT=3000
Additional command-line arguments for ntopng, more: ntopng –help.
ADD_ARGS=""
8. Redémarrer les services
sudo /etc/init.d/redis-server restart
sudo /etc/init.d/ntopng start

9. Pour accéder à l'interface de Ntopng saisir url
http://127.0.0.1:3000
http://adress_IP:3000
http://domain.com:3000

Vous pouvez vous identifier avec
login : admin
password: admin

10. Pour aller plus loin nous pouvons mettre le service en démarrage automatique

Taggé , , , , .Mettre en favori le Permaliens.

Les commentaires sont fermés.