Dispatcher:
Last time I compiled, I needed the following under ubuntu:
sudo apt-get install libmysqlclient-dev
sudo apt-get install uuid-dev
sudo apt-get install libmagic-dev

Edit the rzb.conf file:
---------------------
DISPATCHSRV:
  PORT xxxx <--port number

DATABASE:
  (You need to edit everything here)

OUTPUT:
  For nuggets that register as output servers, you need to edit the
entry here.  You can also have OUT2_xxxxxxx.  (But not OUT3...we're
going to rework the output nuggets so they register and are tracked
separately, didn't happen for 0.1)
---------------------

Database:
You'll need a mysql database server.  Schema for it is
./doc/razorback.sql

mysqlclient into the database:

mysql> create database razorback;
mysql> use razorback;
mysql> source razorback.sql;

You'll also need to make the following changes to my.cnf: (probably in
/etc/mysql/my.cnf)

max_connections = 500;  // Larger if you are multi-using this db

Read more about the database in ./doc/README.database

At this point you should be able to start the dispatcher:
./dispatcher

Nuggets:
Get the nugget tarball and compile the api directory.
cd into the samples directory

Edit the rzb.conf file:
---------------------
NUGGETSRV:
   HANDLEDIR /* Location of .so files, by default ./nuggets *
    NUGPORT xxxx <-- port number
    NUGNAME xxxx <-- unique name for your nugget

DISPATCHSRV:
   IP /*IP of your dispatch server */
   PORT xxxx <-- port number of your dispatch server
---------------------

In the samples directory, do a make.  This will compile some functional
sample nuggets into your ./nuggets directory and build an rzbNugget and
collector executable.  If you have NOT purchased a license for
pdf_dissector, remove the pdf_dissector.so.1 file from the nuggets
directory.  Theyn, you can start the nuggets:

 ./rzbNugget

To test the system, run the following command:
./collector PDF_FILE simple.c  // Don't get hung up that it isn't a pdf....this should
                               // then print out the contents of the file in your rzbNugget
                               // window.  Note the following output from this command:
                               // Event opened, ID#2 
                               // This event id is used by detection nuggets to bind
                               // all alerts together.  A table on the dispatcher
                               // then maps them to a real event_id from the database
                               // if necessary (saving db hit by using lookup table)
./alertNugget 1                // the "1" here means alert with this event_id.  If you 
                               // pass an alert to a non-existent id, the alerting function
                               // will reset the connection

At this point, the alert should be in the database:

ql> select Alert_ID, Event_ID, Timestamp, Message, INET_NTOA(Src_IP), INET_NTOA(Dst_IP), Short_Data, Long_Data, Data_ID, Norm_ID from alerts where Alert_ID = 1683;
+----------+----------+---------------------+---------------+-------------------+-------------------+------------+-----------+---------+---------+
| Alert_ID | Event_ID | Timestamp           | Message       | INET_NTOA(Src_IP) | INET_NTOA(Dst_IP) | Short_Data | Long_Data | Data_ID | Norm_ID |
+----------+----------+---------------------+---------------+-------------------+-------------------+------------+-----------+---------+---------+
|     1683 |      852 | 2010-07-27 13:21:23 | Alert Testing | 10.4.12.226       | 216.168.224.2     | Short      | LONG      |     308 |     309 |
+----------+----------+---------------------+---------------+-------------------+-------------------+------------+-----------+---------+---------+

Looking at the above, the Data_ID and Norm_ID are the component_ids for
the data blocks that are passed (Data_ID the original block, Norm_ID
after any normalization:

mysql> select Component_ID, Norm_ID, Data, Checksum, Size, Datatype from components where Component_ID > 307;
+--------------+---------+------+----------------------------------+------+--------------------------------------+
| Component_ID | Norm_ID | Data | Checksum                         | Size | Datatype                             |
+--------------+---------+------+----------------------------------+------+--------------------------------------+
|          308 |     309 | A    | 8214D1003F68A7D9B0356C0CBD7EEE1A |    2 | 005d5464-7a44-4907-af57-4db08a61e13c |
|          309 |       0 | NORM | 122E0CDAF7DFE93F3784FBF45980DADC |    4 | 005d5464-7a44-4907-af57-4db08a61e13c |
+--------------+---------+------+----------------------------------+------+--------------------------------------+

Note that the original Component_ID (308) has a pointer to Norm_ID to
maintain the link between the two pieces of data.

OK, that's the quicky intro, we'll get more precise as we go forward.
Any questions, drop them to the mailing lists.

--molney
