Unpack the release archive and change to source directory:
tar -xzf minicoredumper-x.y.z.tar.gz cd minicoredumper-x.y.z
The minicoredumper project uses the GNU Build System to configure, compile, and install its software and documentation. For a default installation, the commands are:
./configure make sudo make install
The minicoredumper program requires a configuration file and optionally recept files. Examples of these files are available in the etc directory within the source directory. Although they will certainly need modification, they can be copied to be used as a starting point for the software.
sudo mkdir /etc/minicoredumper sudo cp etc/minicoredumper/minicoredumper.cfg.json /etc/minicoredumper/ sudo cp etc/minicoredumper/*.recept.json /etc/minicoredumper/
After modifying the configuration and recept files as needed, the minicoredumper dump utility is ready for use. Now Linux must be directed to use minicoredumper to handle the creation of core files:
echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' | sudo tee /proc/sys/kernel/core_pattern
Note: This is not a persistent setting and must be performed on each system boot.
Done! Now whenever a program crashes, minicoredumper has the responsibility to create the core dump file as specified in the configuration and recept files.