mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-24 20:01:00 +02:00
Compile snoopy.
This commit is contained in:
parent
a56af3ba08
commit
6b0ac52357
36
linux/snoopy.txt
Normal file
36
linux/snoopy.txt
Normal 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
|
Loading…
Reference in New Issue
Block a user