1
Installation on Suse Linux
2
-------------------------
4
SUSE 6.0/6.2/6.3 (others not tested) have a buggy gdbm binary.
5
IT WILL NOT WORK until you recompile the gdbm library. Without it, you get
6
- segment fault at the first name lookup (does not occur with -n option)
7
- segment fault on starting of ntop, if db-files exists
10
Until ntop 1.2x is not included in Suse I will maintance suse-ntop support under
11
ftp://accordata.net. There you wll find precompiled binaried for ntop and gdbm.
13
Install ready to use binaries:
14
1) Download the good.gdm*.tar.gz and copy the files in the same directories as
15
they are in the package.
16
2) Download the *.rpm and install it:
17
YAST: Install with "Install Package" and choose the downloaded package
18
MC: open the RPM and execute INSTALL
19
RPM: run "rpm -i RPMFILE"
20
If you have trouble, you may have to deinstall a previous ntop installation or
21
use "rpm -i --force RPMFILE"
22
3) use "/etc/rc.d/ntopd start" and "/etc/rc.d/ntopd stop" to start/stop ntop
23
4) To start ntop at boot-time set "START_NTOPD=yes" in /etc/rc.config
26
All what to do to compile and run ntop:
28
First you need libpcap in your system, make sure that is is installed:
30
Suse 6.2/6.3: libpcap is found in "d1 - Program developement" (take libpcapn)
31
Suse 6.0: I have compiled libpcap0.4 and included in the good.gdbm package
34
1) Install the source from the CD with Yast (1.8.0 if exists)
35
2) unpack /usr/src/packages/SOURCES/gdbm-x.x.x.tar.gz to /usr/src
36
3) copy the diff in this directory under /usr/src/gdbm-x.x.x.x
37
4) change to /usr/src/gdbm-x.x.x
38
5) run the patch: patch <*.dif
39
6) run: ./configure --prefix=/usr
40
7) run: mkdir shared (only needed for gdbm-1.7.3)
45
ntop1.2a11 will provide SSL mode if "openssl" is find at compilation time.
46
At time of writing ntop-cert.pem was password protected and this conflicts
47
with starting ntop at boot time.
48
To remove it run: "openssl rsa -in ntop-cert.pem -out ntop-cert.key"
49
This will generate a key without password. Add the content of ntop-cert.key to
50
ntop-cert.pem and remove the encrypted private key from ntop-cert.pem
51
If you use your own key you should replace the pem file in /usr/share/ntop
52
after installing the RPM
56
1) Install the source under /usr/src/ntop-1.2aX
57
2) change to /usr/src/ntop-1.2aX
58
3) run: ./configure --prefix=/usr
61
5 a) Installing with creating an rpm (prefered):
63
Install the rpm found in /usr/src/packages/RPMS/i386 with YAST or mc
64
This install scripts in /etc/rc.d and adds variables to /etc/rc.config
65
If you have trouble to install, try "rpm -i --force RPMFILE" or try to
66
deinstall ntop with YAST (package "n" - network)
67
After you have installed the rpm, enable ntop in /etc/rc.config by
68
setting "START_NTOPD=yes".
69
Reboot or start it with "/etc/rc.d/ntopd start"
70
To stop ntop use "/etc/rc.d/ntopd stop"
74
The ntop binary is copied to /usr/sbin/ntop. No other things are done!
75
Run WEB-mode with /usr/sbin/ntop -i eth0 -w 3000 -P /usr/src/NTOPPATH
78
Using NTOP with a mySQL Database:
79
If using the RPM just edit /etc/rc.config and set START_NTOP_mySQL=yes
80
and of course START_MYSQL=yes
81
The startscript /etc/rc.d/ntopdb will start at reboot and create the database
84
Without using the start-script, you first have to setup the Database:
85
run: mysqladmin create NTOP
86
run: mysql NTOP <database/mySQLdefs.txt
88
Then you can start then log-scripts:
89
run: perl database/mySQLserver.pl >/dev/null &
92
05.02.2000 Ralf Amandi <Ralf.Amandi@accordata.net>
100
Startscripts for ntop-mySQL-log. To get the right start-order I moved
101
S20ntopd/K20ntopd to S22ntopd/K08ntopd. You might have to delete
102
old links in the directories /etc/rc.d/rc2.d and /etc/rc.d/rc3.d
105
Modified "make make-suse" that it does not depend on the ntop-version.
106
Removed the links in packages/suse6/sbin/init.d/rc*.d and put this in
108
Added "-d" to ntop call in /sbin/init.d/ntopd
b'\\ No newline at end of file'