TITAN

HOW TO INSTALL TITAN:

First, make sure that the programs and libraries TITAN requires are installed.
These are:
	- MySQL
	- pthreads library
	- g++ 
	- IPTables
	- ulogd

To set up the MySQL tables, first create a database for TITAN to use.  Then edit the header file Db_Query/Db_Query.h.  Make sure the host, username, password and database constants reflect how your database is set up.  Create the correct tables as follows:
	> mysql -u USER -p DATABASE < setup/titan_tables.sql
with the name of your database (default 'ulogd') and user and type the password at the prompt.

To configure ulogd, first edit the file ulogd.conf in the setup directory.  Change the lines mysqltable, mysqlpass, mysqluser, mysqldb and mysqlhost to the correct values for your database.  Copy the file into /usr/local/etc/.

Now you can compile TITAN.  From the bottom of the TITAN directory (where this README appears), run this command:
	> make all



HOW TO RUN TITAN:

If TITAN is correctly compiled and configured, you can simple run this command as root from the bottom of the TITAN directory:
	> ./startTitan
You can also use the Makefile:
	> make test

