This time ariound I promised myself that I would document everything I did when settingf up slack-10.2. Here's what I have for setting up my cannon powershot a400
#################################################
18. SETTING UP DIGIKAM WITH ACCESS MY DIGITAL CAMERA VIA USB
Actually I don't need to access my camera via digikam because I can just pop my card into my hp-psc-2355 and either print direct or upload one or all pictures to my hard drive. However Leila will need to use a usb connection to access the camera and she likes digikam so I'll set it up on my box and sort it all it in preparation for doing it on her PC.
First I will need to download digikam and everything else required off
www.linuxpackages.net. I'll put them all in there own directory, /usr/local/src/digikam, which is how I usually store things like this. Here's the complete list of packages:
root@rick:/usr/local/src/digikam# ls
digikam-0.8.0_beta1-i486-1mht.tgz
digikamimageplugins-0.8.0_beta1-i486-1mht.tgz
gphoto2-2.1.6-i486-1mht.tgz
imlib2-1.2.1-i486-1arf.tgz
libgphoto2-2.1.6-i486-1mht.tgz
libkexif-0.2.1-i486-1mht.tgz
libkipi-0.1.1-i486-1mht.tgz
sqlite3-3.2.5-i486-1mht.tgz
I can install them all with [installpkg ./*tgz]
Digikam will install with a menu item in KDE's "Graphics" sub-menue and everything seems to be OK including my Canon Powershot A400 being recognised. However, I will not be able to access the camera with a usb cable until I set up hotplug and I create a group named "camera" and make whomever will be accessing the camera members.
The easiest thing to do is to follow the instructions on
http://gphoto.sourceforge.net/doc/ma...sions-usb.html which will explain how to set up hotplug to to recognise my camera. I couldn't quickly locate the usbcam script for my camera (as mentioned on the manual page) without digging, so I ssh'd into Leila's PC and copied her's over to my box. Here's what it looks like:
#!/bin/bash
# $Id: usbcam.group,v 1.3 2003/09/16 16:42:44 hun Exp $
#
# /etc/hotplug/usb/usbcam
#
# Sets up newly plugged in USB camera so that only members of the
# group
GROUP=camera
# can access it from user space. (Replace camera with the name of the
# group you want to have access to the cameras.)
#
# Note that for this script to work, you'll need all of the following:
# a) a line in the file /etc/hotplug/usermap that corresponds to the
# camera you are using. You can get the correct lines for all cameras
# supported by libgphoto2 by running "print-usb-usermap".
# b) a group "camera" where all users allowed access to the
# camera are listed
# c) a Linux kernel supporting hotplug and usbdevfs
# d) the hotplug package (
http://linux-hotplug.sourceforge.net/)
#
# In the usermap file, the first field "usb module" should be named
# "usbcam" like this script.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chmod o-rwx "${DEVICE}"
chgrp "${GROUP}" "${DEVICE}"
chmod g+rw "${DEVICE}"
fi