devmon

devmon is a daemon that monitors sys-fs files in order to detect plugs of usb storage devices (ie : flash cards).
Download

devmon Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Jean Philippe GUILLEMIN
  • Publisher web site:
  • http://shweps.free.fr/wiki/wakka.php?wiki=MainPage

devmon Tags


devmon Description

devmon is a daemon that monitors sys-fs files in order to detect plugs of usb storage devices (ie : flash cards). devmon is a daemon that monitors sys-fs files in order to detect plugs of usb storage devices (ie : flash cards).When a device is detected, devmon mounts it and start a dockapp that allows to launch your favorite filemanager (left click) or unmount the device (right click). For 2.6 kernel users only!Requirements:· kernel 2.6 with sysfs · sgi famHow to make this nice plug'n play applet work:1) First you have to launch famd , after launching the rpc portmaper : (a good place to put this would be /etc/rc.d/rc.local)rpc.portmapfamdTry it from console and check if famd was launched correctly (ps -A will tell you)2) Then make sure that you have at least two mountpoints and that your fstab file is set up for usbstorage devices and sysfs. Note : sysfs MUST be mounted in /sys !The end of /etc/fstab should look like this :##none /sys sysfs defaults 0 0/dev/sda1 /mnt/usb1 vfat noauto,user,exec,rw 0 0/dev/sdb1 /mnt/usb2 vfat noauto,user,exec,rw 0 0##3) Install devmon > cd to the source directory :> Modify the makefile if needed to tell devmon where libfam is and where to install :##OBJECTS = devmon.o famdetect.o dockapp.o /usr/lib/libfam.soPREFIX = /usrSRCPATH = .BINPATH = $(PREFIX)/binCONFIGPATH = $(PREFIX)/share/devmon##> make install # will build and install everything> make nautilus # will enable nautilus filemanager supportNote : make uninstall removes everything4) You can customize the devmon.conf file located in "/usr/local/devmon/conf/ ", in example, you can add other devices, or specify whatever filemanager you like :# The command to launch your favorite filemanager (left click)command = konqueror# An image for the button, it should be placed in the "$(PREFIX)/share/devmon" directory icon = usblogo.xpm# tells devmon which device is associated with a given /sys info file # example : if devmon detects creation of /sys/block/sda/sda1 : it # will mount /dev/sda1 where specified in /etc/fstab#/sys/block/sda : /dev/sda1/sys/block/sda/sda1 : /dev/sda1/sys/block/sda/sda2 : /dev/sda2/sys/block/sda/sda3 : /dev/sda3 /sys/block/sda/sda4 : /dev/sda4 (...)5) Add two lines in "$HOME/GNUstep/Library/Windowmaker/autostart" in order to start devmon in background with Windowmaker :(and also to kill it if you restart Windowmaker, this avoid having multiple devmon instances working at the same time)##killall devmondevmon&##


devmon Related Software