Netgraph server is a server part of the whole Netgraph client-server application. Netgraph server waits on a port for a request from a client (applet or application). After a connection with a client is established, the server processes all requests from the client, selects trees from a tree database and sends them to the client. More clients can access the server simultaneously.
This manual tells you how to install, setup and start the Netgraph server.
Netgraph is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
For any questions and for installation of the applet version of the client at the server side, please, contact the author of Netgraph, Jiří Mírovský (mirovsky@ufal.mff.cuni.cz).Netgraph server was tested on Linux (Fedore Core 7, Fedora 8), and MS Windows XP.
For running on Linux, Netgraph server needs standard runtime libraries of Linux distributions (e.g. on Fedora, standard C library package libstdc++
is needed).
Pcre runtime library (Perl Compatible Regular Expressions) may be needed to install first (on Fedora: package pcre
),
although it is also usually a part of the standard installation of the Linux distribution.
For running on MS Windows XP, all necessary libraries (parts of cygwin) are included in the installation program.
For compilation, Netgraph server needs:
- GNU Make
- GNU C-compiler gcc (e.g. on Fedora, standard C development library package libstdc++-devel
is needed)
- pcre development library (Perl Compatible Regular Expressions) (on Fedora: package pcre-devel
)
On MS Windows XP, Netgraph server can only be compiled in cygwin, a Linux-like environment for Windows. During the installation of cygwin, the tools and libraries mentioned above (make, gcc, pcre) must be checked to be included in the installation.
Although not tested properly, Netgraph server should also work on Apple MacOS, other UNIX-like systems and MS Windows Vista. Pcre library should exist for most of these systems, too.
For the installation of the Netgraph server, please follow the installation instructions on the Netgraph home page.
Skip this step, if you have used one of the installation programs.
The following applies for compiling Netgraph server from the source code on Linux, Apple MacOS, other Unix-like systems, and MS Windows XP in cygwin.
Change to the directory you have unzipped Netgraph server to.
On MS Windows, edit the file mutual.h
, comment the line #define _LINUX_VERSION
,
and uncomment the line #define _WINDOWS_VERSION
.
On other systems, edit the file mutual.h
, uncomment the line #define _LINUX_VERSION
,
and comment the line #define _WINDOWS_VERSION
.
Then, to compile the Netgraph server, type:
make
in the shell. All compilation steps should be performed automatically. Executable programs netser
and dotser
should be created (with
.exe
suffix on MS Windows).
config.txt
and change the value of the parameter dir.
The Netgraph server version 1.93 L (8.4.2008) The server is trying to bind to the port: 2000 ... OK The server has started and is waiting for connections.Otherwise, change to the directory you have installed or unzipped Netgraph server to. You can start the Netgraph server as a common user or as the user nobody. The user has to have permissions to write to the directory /tmp (on MS Windows, the directory is usually in C:\cygwin\tmp).
If you have used one of the installation programs, an uninstallation script should also have been installed along with the server.
If you have installed the server manually, it is sufficient to delete the directory you have installed it to. For the server on MS Windows, directory C:\cygwin should be removed too, but only in case that you did not have cygwin installed before separately.