LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2005, 03:56 PM   #1
woopud
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
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
 
Old 09-29-2005, 04:52 PM   #2
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
you must install libgphoto and gtkam

they are both available on www.linuxpackages.net
 
Old 09-29-2005, 05:48 PM   #3
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
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
 
Old 09-30-2005, 03:48 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
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.
 
Old 09-30-2005, 08:54 AM   #5
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
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.
 
Old 09-30-2005, 08:56 AM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
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.
 
Old 10-01-2005, 12:41 AM   #7
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Canon PowerShot A400 - does anyone use it? ditch* Linux - General 7 03-31-2006 09:41 PM
Canon Powershot 195 FriedLice MEPIS 2 05-29-2005 09:28 PM
Canon Powershot G5 - corruption? beebop Linux - Hardware 1 10-23-2004 02:15 PM
Canon PowerShot S50 oskar_27de Linux - Hardware 0 11-03-2003 04:12 AM
Canon Powershot Cameras psx-dude Slackware 14 08-28-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration