KNetmon Documentation
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/netmon.html
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:
-the KDE-libraries (http://www.kde.org), at least libkdecore.so and libkdeui.so,
both version 2.0 or newer
-the Qt-library 1.4 or newer (http://www.troll.no)
-a working samba installation, this means the following should work:
-smbclient
-smbstatus
-smbmount
-smbumount
-a working nfs-system, this means:
-NFS-support in the kernel ("mount ... -t nfs" must work)
-"showmount -e" must work
-nslookup
-ping
-"domainname -d" should work
-talk or another talk program
-telnet
-rlogin
-finger
A working samba installation is absolutely required.
It will also work without NFS, talk, telnet, rlogin and finger.
I compile it with the following stuff:
libqt 1.42
libkdecore 2.0
libkdeui 2.0
libc 5.4.33
libg++ 27.2.8
libstdc++ 27.2.8
g++ 2.7.2.1
Installing:
Unpack knetmon-0.99pre1.tgz (tar -zxvf knetm...), enter the new directory,
then run configure, make and make install (in this order).
This should compile Knetmon and then
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/knetmon and knetmon/netmonwrapper 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/en/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 root
(the root of your system must set the "set user id on execution"-flag
of both files).
Compiling:
Change to the directory knetmon-#.## and execute configure.
After this execute make, then it should compile.
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:
Active workgroup:
Here you see an identifier for the current displayed workgroup in the
configuration dialog. Here you can switch between the workgroups you have configured.
To add a workgroup, you have to press "Add workgroup" and then enter an identifier
for the new workgroup.
To change the identifier of the current workgroup you have to press
"Change Name". There is also a button "Delete workgroup", I think you know what it does.
possible values: any_name
default value: default
knetmonrc: wg_name
Your user name:
This is the name knetmon suggests to use for actions, where usernames
are required, but you have always the chance to enter another one.
possible values: any_name
default value: tux
knetmonrc: std_user
Get browselist from:
Knetmon will try to get a browsing list using "smbclient -L ..."
from the host you enter here.
Maybe you can keep it "localhost", but it should work better with the nameserver
or something like that of your network, just try it.
If you didn't select "Use samba for getting browselist" this option should be without effect.
possible values: name of a samba or windows machine
default value: localhost
knetmonrc: browselist_server
Use NSLookup:
Here you decide, wether Knetmon will use nslookup for some actions.
If you check this option, then you must enter the IP address of your
nameserver in the edit line, if your LAN is working well you should
also be able to enter the name of your nameserver.
If you select this option, you are able to retrieve the IP addresses of other
hosts from your nameserver, you can force knetmon to use the IP addresses for
samba (it equals "smbclient -I 123.456.789.012 ..."), and you can get the
list of running hosts in another way than using smbclient.
If you are not sure, don't check this option.
possible values: don't select (no) or the IP address or name of your nameserver
default value: no
knetmonrc: use_nslookup
Use nmblookup:
Instead of nslookup you can also use nmblookup, in most configurations both works.
You've got to use nmblookup, if the hosts of your LAN have different DNS- and WINS-names.
possible values: yes, no
Voreinstellung: no
knetmonrc: use_nmblookup
Use IP for samba
If yes, knetmon will call smbclient like: smbclient -L hostname -I 192.11.200.10
else, if no, it will work like: smbclient -L hostname
so decide, if you need it.
If you select it, then you must select "Use NSLookup" too.
If you are not sure, don't select this option.
possible values: yes, no
default value: no
knetmonrc: use_ip_for_samba
Use workgroupname for samba
You should enable this option, if you need the parameter -W if you run smbclient
manually, usually this should only be the case if you have more than one workgroups.
As name for the workgroup the name of the Active workgroup will be used. If you're unsure,
don't enable this option.
possible values: yes, no
default value: no
knetmonrc: use_wgname_for_samba
Use guest login for samba
In some network configurations it is required, to use the option -U guest for smbclient
to have access to this host.
possible values: yes, no
default value: no
knetmonrc: use_guest_for_samba
Ask always for password and username
If you say yes, then everytime you take a look at the shares
of a host, you will be asked for your logon name and password.
This will call smbclient like: smbclient //hostname/IPC$ yourpassword -L hostname -U mylogonname
Only set it to yes, if you know what you are doing.
possible values: yes, no
default value: no
knetmonrc: use_pw_allways
Installed Samba is version 2.0 or newer
Due to the changes in the syntax of smbmount in Samba 2.0 it is necessary to adjust
the version here.
possible values: yes, no
default value: no
knetmonrc: use_samba2
Under GUI-Settings:
Use special talk program:
If you want to use the standard unix-talk in a xterm, then
don't check this, else if you want to use a Xwindows talk program
(which doesn't run in a xterm) enter the name in the edit line.
It is important that this talk is started with
"yourXtalk username@hostname" to talk to user "username" on host "hostname".
Since this is Knetmon, you may want to enter "ktalk".
possible values: any working X talk program
default value: not selected (standard)
knetmonrc: xtalk
Use following xterm:
This xterm will be used to execute ping, rlogin and so on in.
Kvt doesn't work, I think, you should keep it "xterm".
possible values: any xterms with options equal to the standard xterm
default value: xterm
knetmonrc: xterm
Start xterm with options:
Every xterm selected above will be started with this options, set them as you like,
for instance "-fn 7x14" to have the 7x14 font in a standard xterm.
possible values: valid options for the selected xterm
default:
knetmonrc: xterm_options
Explore with:
This is the filemanager which will be started if you choose "explore host".
If you want to start your filemanager "xyz-fm" showing the directory "dontknow"
for instance with "xyz-fm -d dontknow", then you would have to set
"xyz-fm -d %dir", then it should work.
If it is a console-filemanager, for instance "mc" in color with the 7x14 font, then you would have to enter:
"color_xterm -fn 7x14 -e mc -c %dir".
possible values: any working filemanager
default value: kfmclient openURL %dir
knetmonrc: filemanager
Under More Settings:
Mount shares under:
Enter here the directory where you want to mount the shares and exports of other host.
To access the shares of other hosts, they must be mounted first.
E.g. if you enter "~/network", and a with the name "anyhost" has a public share "anyname",
this share will be mounted under ~/network/ANYHOST/anyname, where ~ stands for your home
directory.
It is very important that you have write permission in this directory, so
I think you should keep it as is. Another possibility would be /tmp/network,
there also everybody has write-permission.
possible values: any directory, where you have permission to write
default value: ~/network/
knetmonrc: mount_point
Update period:
Here you enter the number of seconds, after which Knetmon updates its
list of hosts.
If you enter "manual", Knetmon will only update after selecting "Refresh"
from the menu under "More".
possible values: 5 to 3600, or "manual"
default value: 180
knetmonrc: refresh
Patience time:
Here you enter the number of seconds, for which Knetmon will wait for
answers from hosts in the network, e.g. the time it will wait for smbclient or nslookup.
Depending on your network a time of 5 seconds should be enough.
possible values: 1 to 600
default value: 15
knetmonrc: killing_time
Unmount on exit
This decides, wether all the shares which were mounted by knetmon and
all the created directories will be unmounted or removed if you exit
or kill knetmon.
You should check this option, otherwise you may have problems on multi user systems.
possible values: yes, no
default value: yes
knetmonrc: 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", but since version 0.96 I don't know why anybody should need this
-h
prints a short helptext
-v
prints the version number
If Knetmon crashes...
In the case that Knetmon crashes and doesn't exit normally, e.g. using kill -9,
all directories that were mounted by knetmon are still mounted. If you want to
unmount them all, run the script knetmon_cleanup. It is created automatically
by knetmon in your home directory.
If knetmon exits normally, this script will be removed or at least be empty.