[an error occurred while processing this directive]

Chapter 2. Compiling and installing

Table of Contents

1. Overview
2. Requirements
3. Download and extract
4. Configuring the source
4.1. Some more configuration options
5. Build
6. Install
6.1. Important make targets
7. Customize
8. Initialize the baseline database
9. Run samhain
10. Files and directory layout
10.1. Trusted users and trusted paths
10.2. Directory layout
10.3. Runtime files
10.4. Installed files
11. The testsuite
[Note]Samhain 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 Section 4 ).

Please refer to the chapter Chapter 6 for an explanation of the client/server setup.

1. Overview


        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 -c samhain-N.N.N.tar.gz | tar xvf -
        sh$ cd samhain-N.N.N


        sh$ ./configure


        sh$ make


        sh$ make install


        sh$ vi /etc/samhainrc

Initialize the baseline database:

        sh$ samhain -t init

Start the samhain daemon:

        sh$ samhain -t check -D
[an error occurred while processing this directive]