LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2006, 09:15 AM   #1
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Rep: Reputation: 32
unable to download pictures from my Canon PowerShot A520 as a normal user


Hi,
1) I am unable to download pictures from my Canon Powershot A520 digital camera using digikam as a normal user.
2) Secondly, when I use digikam as root by doing sudo digikam, digikam crashes when I click "download selected" after "select new". (I hope I am making my self clear) Here is the output I get on konsole -
Quote:
aditya@Hostname:~$ sudo digikam
Error: "/var/tmp/kdecache-aditya" is owned by uid 1000 instead of uid 0.
Link points to "/var/tmp/kdecache-root"
digikam: Album libray path set to /home/aditya/Pictures/digikam.db
digikam: ImagePlugin_Core plugin loaded
digikam: ImagePluginLoader: Loaded plugin ImagePlugin_Core
Error: "/tmp/ksocket-aditya" is owned by uid 1000 instead of uid 0.
Link points to "/tmp/ksocket-root"
kio_digikamthumbnail: *** Starting kio_digikamthumbnail
Error: "/var/tmp/kdecache-aditya" is owned by uid 1000 instead of uid 0.
Link points to "/var/tmp/kdecache-root"
kio_digikamthumbnail: *** Starting kio_digikamthumbnail
Error: "/var/tmp/kdecache-aditya" is owned by uid 1000 instead of uid 0.
Link points to "/var/tmp/kdecache-root"
digikam: listing file:///home/aditya/Pictures/2006, May, 19
Killed
aditya@Hostname:~$ kio_digikamthumbnail: *** kio_digikamthumbnail Done
kio_digikamthumbnail: *** kio_digikamthumbnail Done
1000 is my user uid and 0 ofcourse is root uid.
Here is the listing of /etc/hotplug/usb/usbcam

Quote:
#!/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
My user (aditya) is added to the group "camera".
The camera is detected correctly and I can save the pictures by clicking on them in the picture list that comes up when I select my camera from the camera menu in digikam. When the required is displayed I can save it from File -> Save.
Eagerly awaiting replies.
 
Old 05-19-2006, 09:48 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
no probs here.
did you follow these guidelines (http://www.gphoto.org/doc/manual/permissions-usb.html)
to produce the file /etc/hotplug/usb/usbcam.usermap ?

if so, the only diff. is that i set the group in the above file to "users".
( didn't make a "camera" group ).

egag
 
Old 05-19-2006, 10:53 PM   #3
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
Thank you for the prompt reply.

Hereis the listing of my /etc/hotplug/usb/usbcam -
Quote:
#!/bin/bash
# $Id: usbcam.user,v 1.3 2003/09/16 16:42:44 hun Exp $
#
# /etc/hotplug/usb/usbcam
#
# Sets up newly plugged in USB camera so that just one certain user

USER=aditya

# can access it from user space. (Replace root with the user 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) run your camera software as the user given above
# 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 a-rwx "${DEVICE}"
chown "${USER}" "${DEVICE}"
chmod u+rw "${DEVICE}"
fi
where "aditya" is the user to which I want to give digikam permission.

Now when I do -

$ digikam &

and select my camera, the images stored in it are listed. But when I select the ones to dowload and select the appropriate folder for downloading the images into, and press OK, digikam crashes with the following output in the konsole -
Quote:
digikam: Album libray path set to /home/aditya/Pictures/digikam.db
digikam: ImagePlugin_Core plugin loaded
digikam: ImagePluginLoader: Loaded plugin ImagePlugin_Core
digikam: listing file:///home/aditya/Pictures/2006, May, 19
Killed
Any idea what is happening?
 
Old 05-19-2006, 10:59 PM   #4
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
and one more thing. My camera is Canon Powershot A520 but digikam autodetects it as Canon IXUS 50.
 
Old 05-20-2006, 09:47 AM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
to be sure: when the program crashes, your cam. is selected as canon-psa520 ?
( ...or as the wrong ixus50...)
ixus 50 can be used in two modes (ptp and normal; psa520 is ptp-only).

did you compile digikam on your pc or did you get a package ?

i can't say anything on the output when it crashes.
run it as "digikam --nocrashandler" to get more info on the crashing.

egag
 
  


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 A520 digital camera problem loxindox Linux - Hardware 0 12-16-2005 09:54 PM
How to get my Canon powershot working woopud Slackware 6 10-01-2005 01:41 AM
Canon Powershot 195 FriedLice MEPIS 2 05-29-2005 10:28 PM
Canon Powershot G5 - corruption? beebop Linux - Hardware 1 10-23-2004 03:15 PM
Canon PowerShot S50 oskar_27de Linux - Hardware 0 11-03-2003 05:12 AM

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

All times are GMT -5. The time now is 10:05 PM.

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