Documentation for Knetmon



1. Intro
2. Requirements
3. Installing
4. Compiling
5. Configuration
6. Command line options
7. Running multiple knetmon's



Intro

Knetmon is free software according to the GNU General Public License.

Knetmon is a program similar to netmon for windows, it displays the active users ("network neighbourhood") in a network (unix and windows) and provides an interface to many networking related command line tools (samba, nfs, ping, talk and so on).

Latest versions you can get from
http://www.rz.tu-ilmenau.de/~lekus/software.htm

Please tell me if you manage to compile knetmon on another system than linux/pc.
Bug reports, comments, patches, suggestions ... to
alexander.neundorf@rz.tu-ilmenau.de


Alexander Neundorf


Requirements:

For complete functionality you need:


Either a working samba must be installed, then nfs isn't required, or nfs must work, then samba doesn't matter.

If you have only nfs, then showmount, nslookup, domainname -d and ping are absolutely required.

You can decide what will be used via the configuration dialog of knetmon.
It will also work without talk, telnet, rlogin and finger.
It is compiled with:



Installing:

Unpack knetmon-0.95beta.tgz (tar -zxvf knetm...), enter the new directory and enter 'make install'.
This should copy the binary into your KDE binary directory, create a KDE applink and create a documentation directory.
Maybe you have to restart KPanel if you are using it.
Then you should find Knetmon in the start menu under "Internet".
If you want to install Knetmon manually:
-copy the binary knetmon/bin/knetmon in your KDE binary directory ($KDEDIR/bin)
-copy knetmon/knetmon.kdelnk in the location where your other *.kdelnk files are and restart kpanel
-create a directory $KDEDIR/share/doc/html/eng/knetmon and copy the file index.html in this directory

If Knetmon runs, configure it, you will find the configuration dialog under ->More ->Configure .

Make sure that you have the right to execute smbmount, this means, that smbmount and smbumount must be installed suid (the root of your system must set the "set user id on execution"-flag in both files).



Compiling:


Change to the directory knetmon-#.## and execute configure. After this execute make, then it should compile.
Make sure that the shell variables QTDIR is set to the directory where your Qt-stuff is installed (/usr/lib/qt, /usr/local/qt or something like that) and that the shell variable KDEDIR is set to your KDE root directory (e.g. /opt/kde).

If it fails you can edit the file config.h.in, changes in config.h will be lost after every configure run.

If you uncomment #define DEBUG_ON in defines.h, you will get a lot of ugly debugging output from knetmon.

If you are not able to compile it, please mail me: alexander.neundorf@rz.tu-ilmenau.de



Configuration:

If Knetmon runs, configure it, you will find the configuration dialog under ->More ->Configure .
Knetmon reads its configuration usually from the file ($KDEDIR)/share/config/knetmonrc and if this one doesn't exist from ($HOME)/.kde/share/config/knetmonrc.

Under Network-Settings:

Your user name:

Use NSLookup:

Use samba for getting browselist

Get browselist from:

Use IP for samba

Use password allways for samba


Under GUI-Settings:

Use special talk program:

Max number of button rows:

Adjust fontsize:

Use following xterm:

Start xterm with options:

Explore with:

Under More Settings:

Mount shares under:


Update period:

Unmount on exit





Command line options

There are only a few command line options for knetmon at the moment:

-c /anydir/ownconfigfile   starts knetmon reading and writing its configuration to the file "/anydir/ownconfigfile"
-h   prints a short helptext
-r   resets (i.e. deletes) the configuration file
-v   prints the version number



Running multiple knetmon's

If you want to see the users of more than one workgroup or from different servers, you can start knetmon with different configfiles. Let's say, you want to see the workgroups "wg1" with server "wg1server" and "wg2" with server "wg2server" then you have to do the following:

Start one knetmon and configure it this way, that it works with workgroup "wg1", maybe like this:

Then start another knetmon with the option -c to load another configuration file:
knetmon -c ~/.knetmonwg2rc
Now configure this knetmon like this:

I hope it should work now. So you always would have to start the first knetmon without any options, and the second always with -c ~/.knetmonwg2rc