home *** CD-ROM | disk | FTP | other *** search
- Running gphoto2 as a normal user
- --------------------------------
-
- This version of libgphoto2-2 installs a hotplug script in
- /etc/hotplug/usb/libgphoto2 (and an appropriate USB usermap) which allows
- camera access to all members of group 'plugdev'. The group is automatically
- created if it doesn't exist.
-
- With this change, the only configuration is to add authorized users to the
- 'plugdev' group. Note that group changes will only apply when you relog.
-
- /etc/hotplug/usb/libgphoto2.usermap is created on package installation.
- Local customizations should not go there but in /etc/hotplug/usb.usermap
-
-
- For the records, this is the old README.Debian:
- -----------------------------------------------
-
- DON'T RUN gphoto2 as ROOT.
-
- Currently on a Debian system, the best way to allow normal users to use
- gphoto2 is to add these users to the usb group and set the correct
- permission in your /etc/fstab file with the following line:
-
- none /proc/bus/usb usbdevfs devuid=0,devgid=102,devmode=0660 0 0
-
- where 102 is the ID for example the usb group ID.
- Then add your trusted users in this group:
-
- adduser user usb
-
- With a kernel 2.4 or later (i.e. a kernel with hotplug support) and the
- hotplug package installed, the following script will be executed if it
- exists and is executable:
-
- /etc/hotplug/usb/usbcam
-
- If you want to use this facility, you have first to use the shipped uitility
- print-usb-usermap to let know hotplug which devices are managed by libgphoto2.
-
- /usr/lib/libgphoto2-2/print-usb-usermap > /etc/hotplug/usb/libgphoto2.usermap
-
- This package comes with 4 examples:
-
- /usr/share/doc/libgphoto2-2/linux-hotplug/usbcam.{console,group,user,x11-app}
-
- The first one was written to give the access to the digital camera to
- the user in front of the computer. This require a
- /var/{run,lock}/console.lock
- file which is created by pam_console. pam_console is not used by
- Debian system. To know why, read the following mail:
- http://lists.debian.org/debian-devel/2001/debian-devel-200106/msg00944.html
- and for the latest news:
- http://lists.debian.org/debian-ctte/2004/debian-ctte-200403/msg00000.html
- So this script as is is not very useful.
-
- The second script allows you to set the permission for a given group. You can
- then create a usbcam group and add a few users in it.
-
- The third one allows you to set the permission for a given user.
-
- The last one is an example that launches an X11 app when you plug your cam.
-
- NOTE: These scripts are intented to be used with a front-end application.
- libgphoto2 is not a front-end application. I will close all bug reports asking
- for an automatic installation of one of these scripts during the installation of
- the libgphoto2 packages (same thing for print-usb-usermap).
-