home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / libgphoto2-2 / README.Debian < prev    next >
Encoding:
Text File  |  2006-08-30  |  2.7 KB  |  68 lines

  1. Running gphoto2 as a normal user
  2. --------------------------------
  3.  
  4. This version of libgphoto2-2 installs a hotplug script in
  5. /etc/hotplug/usb/libgphoto2 (and an appropriate USB usermap) which allows
  6. camera access to all members of group 'plugdev'.  The group is automatically
  7. created if it doesn't exist.
  8.  
  9. With this change, the only configuration is to add authorized users to the
  10. 'plugdev' group.  Note that group changes will only apply when you relog.
  11.  
  12. /etc/hotplug/usb/libgphoto2.usermap is created on package installation.
  13. Local customizations should not go there but in /etc/hotplug/usb.usermap
  14.  
  15.  
  16. For the records, this is the old README.Debian:
  17. -----------------------------------------------
  18.  
  19. DON'T RUN gphoto2 as ROOT.
  20.  
  21. Currently on a Debian system, the best way to allow normal users to use
  22. gphoto2 is to add these users to the usb group and set the correct
  23. permission in your /etc/fstab file with the following line:
  24.  
  25. none  /proc/bus/usb  usbdevfs devuid=0,devgid=102,devmode=0660 0 0
  26.  
  27. where 102 is the ID for example the usb group ID.
  28. Then add your trusted users in this group:
  29.  
  30.     adduser user usb
  31.  
  32. With a kernel 2.4 or later (i.e. a kernel with hotplug support) and the
  33. hotplug package installed, the following script will be executed if it
  34. exists and is executable:
  35.     
  36.     /etc/hotplug/usb/usbcam
  37.  
  38. If you want to use this facility, you have first to use the shipped uitility 
  39. print-usb-usermap to let know hotplug which devices are managed by libgphoto2.
  40.  
  41.     /usr/lib/libgphoto2-2/print-usb-usermap > /etc/hotplug/usb/libgphoto2.usermap
  42.  
  43. This package comes with 4 examples:
  44.  
  45.     /usr/share/doc/libgphoto2-2/linux-hotplug/usbcam.{console,group,user,x11-app}
  46.  
  47. The first one was written to give the access to the digital camera to
  48. the user in front of the computer. This require a 
  49.     /var/{run,lock}/console.lock
  50. file which is created by pam_console. pam_console is not used by
  51. Debian system. To know why, read the following mail:
  52.     http://lists.debian.org/debian-devel/2001/debian-devel-200106/msg00944.html
  53. and for the latest news:
  54.     http://lists.debian.org/debian-ctte/2004/debian-ctte-200403/msg00000.html
  55. So this script as is is not very useful.
  56.  
  57. The second script allows you to set the permission for a given group. You can
  58. then create a usbcam group and add a few users in it.
  59.  
  60. The third one allows you to set the permission for a given user.
  61.  
  62. The last one is an example that launches an X11 app when you plug your cam.
  63.  
  64. NOTE: These scripts are intented to be used with a front-end application.
  65. libgphoto2 is not a front-end application. I will close all bug reports asking
  66. for an automatic installation of one of these scripts during the installation of
  67. the libgphoto2 packages (same thing for print-usb-usermap).
  68.