This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* exec-notify, so you can watch your acrobat reader or vim executing "bash -c" | |
* commands ;-) | |
* Requires some 2.6.x Linux kernel with proc connector enabled. | |
* | |
* $ cc -Wall -ansi -pedantic -std=c99 exec-notify.c | |
* | |
* (C) 2007-2010 Sebastian Krahmer <krahmer@suse.de> original netlink handling | |
* stolen from an proc-connector example, copyright folows: | |
*/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/socket.h> | |
#include <linux/netlink.h> | |
#include <linux/connector.h> | |
#include <linux/cn_proc.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
struct __attribute__ ((aligned(NLMSG_ALIGNTO))) nlcn_msg { | |
struct nlmsghdr nl_hdr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup for Fedora 17 | |
sudo yum install python m4 make wget curl ftp hg tar bzip2 gzip unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl sed docbook-style-xsl docbook-dtds docbook-utils sed bc glibc-devel ccache pcre pcre-devel quilt groff linuxdoc-tools patch linuxdoc-tools cmake help2man perl-ExtUtils-MakeMaker tcl-devel gettext chrpath ncurses apr SDL-devel mesa-libGL-devel mesa-libGLU-devel gnome-doc-utils autoconf automake | |
sudo yum install tftp-server | |
sudo yum install nfs-utils | |
sudo yum install minicom | |
sudo systemctl enable nfs-server.service | |
sudo systemctl disable firewalld.service # This may/maynot be on your system but causes grief if it is! | |
# ------------------------------------------------------------------------------- |