2e9c9a
1) Customize /etc/aide.conf to your liking. In particular, add
2e9c9a
   important directories and files which you would like to be
2e9c9a
   covered by integrity checks. Avoid files which are expected
2e9c9a
   to change frequently or which don't affect the safety of your
2e9c9a
   system.
2e9c9a
2e9c9a
2) Run "/usr/sbin/aide --init" to build the initial database.
2e9c9a
   With the default setup, that creates /var/lib/aide/aide.db.new.gz
2e9c9a
2e9c9a
3) Store /etc/aide.conf, /usr/sbin/aide and /var/lib/aide/aide.db.new.gz
2e9c9a
   in a secure location, e.g. on separate read-only media (such as
2e9c9a
   CD-ROM). Alternatively, keep MD5 fingerprints or GPG signatures
2e9c9a
   of those files in a secure location, so you have means to verify
2e9c9a
   that nobody modified those files.
2e9c9a
2e9c9a
4) Copy /var/lib/aide/aide.db.new.gz to /var/lib/aide/aide.db.gz
2e9c9a
   which is the location of the input database.
2e9c9a
2e9c9a
5) Run "/usr/sbin/aide --check" to check your system for inconsistencies
2e9c9a
   compared with the AIDE database. Prior to running a check manually,
2e9c9a
   ensure that the AIDE binary and database have not been modified
2e9c9a
   without your knowledge.
2e9c9a
   
2e9c9a
   Caution! 
2e9c9a
   
2e9c9a
   With the default setup, an AIDE check is not run periodically as a
2e9c9a
   cron job. It cannot be guaranteed that the AIDE binaries, config
2e9c9a
   file and database are intact. It is not recommended that you run
2e9c9a
   automated AIDE checks without verifying AIDE yourself frequently.
2e9c9a
   In addition to that, AIDE does not implement any password or
2e9c9a
   encryption protection for its own files.
2e9c9a
   
2e9c9a
   It is up to you how to put a file integrity checker to good effect
2e9c9a
   and how to set up automated checks if you think it adds a level of
2e9c9a
   safety (e.g. detecting failed/incomplete compromises or unauthorized
2e9c9a
   modification of special files). On a compromised system, the
2e9c9a
   intruder could disable the automated check. Or he could replace the
2e9c9a
   AIDE binary, config file and database easily when they are not
2e9c9a
   located on read-only media. 
2e9c9a