a2o / snoopy

Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system.
GNU General Public License v2.0
1.22k stars 155 forks source link

Nice idea - didn't work #257

Closed Dan-Essin closed 1 year ago

Dan-Essin commented 1 year ago

Checklist before starting to submit this support request

I confirm that:

Issue description

On Fedora 37, Installed with dnf version 2.4.14 used default ini file. rebooted /etc/dev empty added export LD_PRELOAD rebooted /etc/dev empty edited ini file, remove ; from devlog rebooted /etc/dev empty

Issue reproduction steps

Expected result

I thought I would get some output

Actual result

Got no output

It won't be much use if it doesn't generate output. I've obviously missed something, although the tutorials suggest that it should just install and work.

btw - the github MD file forgot to mention snoopy-enable and snoopy-disable. What other critical piece of information was also missing?

bostjan commented 1 year ago

Hey @Dan-Essin, for anything packaged by distribution maintainers, talk to them first. In this case, this is (apparently) someone that goes by the username ngompa (mentioned here). There are various things the packager may have done/tweaked when building a package (like disabling the config file altogether), so please seek Fedora-specific support there.

Since v2.5.0, this project has started providing upstream-packaged binaries for a select set of distributions. Therefore, and if you can, you may want to try that option, i.e. the AlmaLinux (a RHEL clone) package. You can find more info here.

As a last resort, you can try building Snoopy from the source code (via our provided install-snoopy.sh file, here).

PS: In the latest Snoopy versions (since 2.5.0), snoopy-enable and snoopy-disable commands were superseded by a unified tool called snoopycfg, and all the references to the old tool names were removed.

flakshack commented 1 year ago

Thanks for this post, I was missing that I needed to run snoopy-enable.