Table of Contents
Abstract
This chapter aims to help you set up your system such that
you can use
libgphoto2
with any frontend. However, we will have some examples using
the gphoto2(1) command line frontend, as
this is the frontend which is always provided.
gPhoto2 consists of two libraries
libgphoto2
(
see libgphoto2(3)), and
libgphoto2_port
(see libgphoto2_port(3)), which is used by the
former,
and a command line frontend (gphoto2,
see gphoto2(1)).
Other (GUI) frontends (like e.g. gtkam) are available as
separate packages.
In order to get access to the camera, your frontend process requires
write permissions to the respective device special file, e.g. to
/dev/ttyS3
or
/proc/bus/usb/1/012
.
For security reasons, we strongly recommend not to run any libgphoto2(3) frontend as root. So you have to set up the permissions of your camera device accordingly. This is described in the following two sections, Section 4.2, “Setting up permissions for serial (RS232) ports” and Section 4.3, “Setting up permissions for USB ports”.
Then you can run your frontend. For the command line libgphoto2(3) frontend gphoto2(1), this is described in the gphoto2(1) man page.