Compile snoopy.

This commit is contained in:
Miguel Scapolla 2017-08-24 16:15:18 -03:00
parent a56af3ba08
commit 6b0ac52357

36
linux/snoopy.txt Normal file
View File

@ -0,0 +1,36 @@
### Compile snoopy in Debian.
* Install
apt-get install dh-autoreconf socat git
* Clone
git clone https://github.com/a2o/snoopy.git
* Edit lib/inih/src/ini.h
INI_MAX_LINE --> 512
* Compile
./bootstrap.sh
./configure
make
* As root, install
make install
* Files installed
/usr/local/etc/snoopy.ini
/usr/local/lib/libsnoopy.la
/usr/local/lib/libsnoopy.so.0.0.0
/usr/local/sbin/snoopy-disable
/usr/local/sbin/snoopy-enable
* Edit /usr/local/etc/snoopy.ini
message_format = "SNOOPY HST=%{hostname} DAT=%{datetime} TIM=%{timestamp}.%{timestamp_ms} USR=%{tty_username} USR=%{username} UID=%{tty_uid} UID=%{uid} LOG=%{login} EUSR=%{eusername} EUID=%{euid} GRP=%{group} GID=%{gid} EGID=%{egid} EGRP=%{egroup} TTY=%{tty} SSH=%{env:SSH_CONNECTION} CWD=%{cwd} FIL=%{filename} CMD=%{cmdline}"
filter_chain = "exclude_spawns_of:cron"
output = devlog
error_logging = no
* Enable
snoopy-enable
* Reboot