https://wiki.archlinux.org/api.php?action=feedcontributions&user=Tinker&feedformat=atomArchWiki - User contributions [en]2024-03-29T08:58:33ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=GPhoto&diff=302341GPhoto2014-02-27T16:56:13Z<p>Tinker: /* Groups */ no need for camera group</p>
<hr />
<div>[[Category:Imaging]]<br />
[[es:Digital Cameras]]<br />
[[it:Digital Cameras]]<br />
[[ja:Digital Cameras]]<br />
[[ru:Цифровые камеры]]<br />
{{Related articles start}}<br />
{{Related|Jalbum}}<br />
{{Related|HCL/Digital Cameras}}<br />
{{Related articles end}}<br />
This article documents the configuration of {{ic|libgphoto2}} to access digital cameras. Some digital cameras will mount as normal [[USB Storage Devices|USB storage devices]] and may not require the use of libgphoto2.<br />
<br />
{{Note|As of libgphoto2 version 2.14.13, users do not need to be part of the {{ic|camera}} group.}}<br />
<br />
== libgphoto2 ==<br />
<br />
[http://www.gphoto.org/proj/libgphoto2/ Libgphoto2] is the core library designed to allow access to digital cameras by external (front end) programs, such as Digikam and gphoto2. The current 'officially' supported cameras are [http://www.gphoto.org/proj/libgphoto2/support.php here] (though more may work).<br />
<br />
=== Installation ===<br />
<br />
[[pacman|Install]] {{Pkg|libgphoto2}} from the [[official repositories]], and optionally {{Pkg|gvfs-gphoto2}} for Nautilus integration and {{Pkg|gphoto2}} to have a command line interface.<br />
<br />
=== Permission issues ===<br />
<br />
Users with a local session have permissions granted for cameras using [[Wikipedia:Access control list|ACLs]]. See [[General Troubleshooting#Session permissions]] if it does not work.<br />
<br />
If you want these permissions to work for remote ([[SSH]]) sessions too, you can use the old 'camera' group, by adding the requisite users to the deprecated camera group and create a new udev rules file as follows:<br />
<br />
# /usr/lib/libgphoto2/print-camera-list udev-rules version 175 group camera > /etc/udev/rules.d/40-gphoto.rules<br />
<br />
These rules will use the group for newly added camera devices.<br />
<br />
If the camera is not present in any [[udev]] rule, can check vendor and product id and add it. To check it just run:<br />
<br />
{{hc|# lsusb|<br />
...<br />
Bus 001 Device 005: ID 04a9:318e Canon, Inc.<br />
...<br />
}}<br />
<br />
=== GPhoto2 usage ===<br />
<br />
GPhoto2 is a command line client for libgphoto2. GPhoto2 allows access to the libgphoto2 library from a terminal or from a script shell to perform any camera operation that can be done. This is the main user interface. <br />
<br />
GPhoto2 also provides convenient debugging features for camera driver developers.<br />
<br />
'''Quick Commands'''<br />
* {{ic|gphoto2 --list-ports}}<br />
* {{ic|gphoto2 --auto-detect}}<br />
* {{ic|gphoto2 --summary}}<br />
* {{ic|gphoto2 --list-files}}<br />
* {{ic|gphoto2 --get-all-files}}<br />
<br />
For advanced file manipulation, use<br />
* {{ic|gphoto2 --shell}}<br />
<br />
==== Other frontend applications for libgphoto2 ====<br />
<br />
* [http://www.gphoto.org/proj/gphotofs/ gphotofs] - allow using cameras with any tool able to read from a mounted filesystem.<br />
* [http://darktable.org/ darktable]<br />
* [[Digikam]]<br />
* [http://f-spot.org/ F-Spot]<br />
* [http://live.gnome.org/gthumb Gthumb]<br />
* [http://www.gphoto.org/proj/gtkam/ GTKam]<br />
<br />
== Troubleshooting ==<br />
<br />
=== Groups ===<br />
<br />
Make sure that the user to which access should be granted is part of the [[Users and groups#Groups|storage group]]. They do not need to be in the camera group.</div>Tinker