LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to get my Canon powershot working (https://www.linuxquestions.org/questions/slackware-14/how-to-get-my-canon-powershot-working-368234/)

woopud 09-29-2005 03:56 PM

How to get my Canon powershot working
 
I downloaded and burned both install cd's of Slackware 10.2 and installed it with no problems. My question is, how do I get it to regonize my Canon PowerShot A310 camera so I can download the pictures from my camera ?

Bert

$in 09-29-2005 04:52 PM

you must install libgphoto and gtkam :)

they are both available on www.linuxpackages.net

dennisk 09-29-2005 05:48 PM

Actually you may find it as simple as connecting the camera cable to the USB port and running
Code:

dmesg
You'll probably see your camera listed as a storage device with an assigned device of sda1 or similar. From there it is the same as setting up a USB Flash Memory device and you can mount your camera just like a floppy to get to the images.

As root:

Code:

mkdir /mnt/camera
Code:

mount -t auto /dev/sda1 /mnt/camera
Add a line to your /etc/fstab to allow users to access the camera and to allow mounting by typing

Code:

mount /dev/camera
Search the forum here you should find exactly how to do it.

Card reader should work the same way as well.

DennisK

piete 09-30-2005 03:48 AM

I have a PowerShot A510, and unfortunatly it uses the PTP (correct me if I'm wrong) protocol to move pictures from device to device. Unlike USB Mass Storage devices, this protocol isn't in the kernel. I know certainly that my camera has no dual-protocol for moving pictures around, and I would expect yours to be similar.

In a lot of cases DennisK would be correct, but I didn't want you to waste time looking for a /dev/ link that I am fairly certain will never appear.

From http://www.gphoto.org/proj/libgphoto2/support.php:

Quote:

Number of supported cameras: 616
Supported cameras:

<snip>

"Canon PowerShot A310"
"Canon PowerShot A310 (PTP mode)"

<snip>

As a side note, I've never been able to run gtkam (a GTK2 front end to libgphoto2) as a user. It's a lovely program, though =D

- Piete.

shepper 09-30-2005 08:54 AM

Setting permissions for gtkam

Slackware does not use PAM authentication. I make a camera group and add myself to it.
The use the usbcam.group hotplug script as describe in the above link.

piete 09-30-2005 08:56 AM

Ah, that'd explain it. Thank you Shepper. I think there is another on cameras floating around recently that details same/similar things with regards to sorting out the mount as user thang.

Thanks!
- Piete.

justwantin 10-01-2005 12:41 AM

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


All times are GMT -5. The time now is 06:45 AM.