Compiling and installing

NoteSamhain as a client/server system
 

This chapter focuses on building a standalone samhain executable. For a client/server system, client and server executable are built from the same source, but with different options for the 'configure' script (see the Section called Configuring the source>).

Please refer to the chapter the chapter called yule, the log server for an explanation of the client/server setup.

Overview

Download:
   sh$ wget http://la-samhna.de/samhain/samhain-current.tar.gz
   

Extract (and verify PGP signature):
   sh$ gunzip -c samhain-current.tar.gz | tar xvf -
   sh$ gpg --verify samhain-N.N.N.tar.gz.asc samhain-N.N.N.tar
   sh$ gunzip samhain-N.N.N.tar.gz | tar xvf -
   sh$ cd samhain-N.N.N
   

Configure:
   sh$ ./configure
   

Compile:
   sh$ make
   

Install:
   sh$ make install
   

Customize:
   sh$ vi /etc/samhainrc
   

Initialize the baseline database:
   sh$ samhain -t init
   

Start the samhain daemon:
   sh$ samhain -t check -D