LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware- I cannot download pictures from my camera (https://www.linuxquestions.org/questions/slackware-14/slackware-i-cannot-download-pictures-from-my-camera-4175459898/)

PeterUK 04-28-2013 01:32 PM

Slackware- I cannot download pictures from my camera
 
Hi I am trying to get some pictures from my Canon and I dont know what its not appearing in the file manager.

I did look:

And its connecting I did it by : lsusb

Then create the rules file.

Then try to mount by creating a folder in the mnt folder

but it said is mount: /dev/bus/usb/002/008 is not a block device

read some post on suggesting libgphoto

I looked and I have installed libgphoto2-2.4.14-i486-2

Know how do I use it?

I want to just download the pictures from my camera :-(, sometimes I feel that all in slack is a long task! :-(

hakan56 04-28-2013 01:51 PM

Connect your camera, open a terminal and use the command dmesg to see how it's detected...if you see something about /dev/sdb /dev/sdb1 or something like that...then it's /dev/sdb1 you should mount.
# mount /dev/sdb1 /mnt/hd

..or you can do it the way I did it...got tired of the usb-cable and bought myself a cardreader ;)

/Håkan

PeterUK 04-28-2013 01:59 PM

Quote:

Originally Posted by hakan56 (Post 4940648)
Connect your camera, open a terminal and use the command dmesg to see how it's detected...if you see something about /dev/sdb /dev/sdb1 or something like that...then it's /dev/sdb1 you should mount.
# mount /dev/sdb1 /mnt/hd

..or you can do it the way I did it...got tired of the usb-cable and bought myself a cardreader ;)

/Håkan

My machine has already a card reader :-), but I cannot be bother keep taking the card out.

I already create the rules so every time I connect it create the device name so you know how its called.

This is not working I tried also:
mount /dev/Camera /mnt/camera
mount: /dev/bus/usb/002/009 is not a block device

this is not the solution!

hitest 04-28-2013 02:13 PM

Another command you can try is:

# blkid

I used that before when I was having trouble connecting to my camera.

hakan56 04-28-2013 02:18 PM

Is your camera supported..
http://www.gphoto.org/proj/libgphoto2/
..at the bottom of the page "list of supported cameras"

Can you show us the rule you made.

/Håkan

Bazzaah 04-28-2013 03:22 PM

What happens if you run the following commands with your camera connected and switched on?

Code:

gphoto2 --auto-detect
gphoto2 --get-all-files


PeterUK 04-28-2013 03:44 PM

Quote:

Originally Posted by Bazzaah (Post 4940685)
What happens if you run the following commands with your camera connected and switched on?

Code:

gphoto2 --auto-detect
gphoto2 --get-all-files


:-) this do it nicely.

auto detect

Quote:

bash-4.2# gphoto2 --auto-detect
Model Port
----------------------------------------------------------
USB PTP Class Camera usb:002,014
get all

Quote:

Downloading 'IMG_0008.JPG' from folder '/store_00010001/DCIM/101___08'...
Saving file as IMG_0008.JPG
Nice, but it dump like 100 image into my desktop :-/

PeterUK 04-28-2013 03:46 PM

Quote:

Originally Posted by hakan56 (Post 4940661)
Is your camera supported..
http://www.gphoto.org/proj/libgphoto2/
..at the bottom of the page "list of supported cameras"

Can you show us the rule you made.

/Håkan

sure

SUBSYSTEMS=="usb", ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="31ef", \
MODE:="0666", \
SYMLINK+="Camera_%n"

---------- Post added 04-28-13 at 09:46 PM ----------

Quote:

Originally Posted by hitest (Post 4940659)
Another command you can try is:

# blkid

I used that before when I was having trouble connecting to my camera.

What does this do? Thanks

PeterUK 04-28-2013 03:50 PM

Quote:

Originally Posted by hakan56 (Post 4940661)
Is your camera supported..
http://www.gphoto.org/proj/libgphoto2/
..at the bottom of the page "list of supported cameras"

Can you show us the rule you made.

/Håkan

I looked here
http://www.gphoto.org/proj/libgphoto2/support.php

My camera is not in there, but it works.

and also I installed entangle

but that is not working.

Bazzaah 04-28-2013 03:54 PM

Quote:

Originally Posted by PeterUK (Post 4940694)
:-) this do it nicely.

auto detect



get all



Nice, but it dump like 100 image into my desktop :-/

So just create a folder called Pictures and run the commands from in that folder, then your pictures will be downloaded to that folder.

PeterUK 04-28-2013 03:58 PM

Quote:

Originally Posted by Bazzaah (Post 4940699)
So just create a folder called Pictures and run the commands from in that folder, then your pictures will be downloaded to that folder.

Thanks this does it nicely!! :-) maybe you can set a path!

Bazzaah 04-28-2013 04:18 PM

Quote:

Originally Posted by PeterUK (Post 4940702)
Thanks this does it nicely!! :-) maybe you can set a path!

Yes - what I do is create a folder called scripts in ~ and add that (home/$user/scripts) to paths in /etc/profile.

e.g. I saved this to ~/scripts as photos (make it executable)

Code:

#!/bin/bash
cd /home/slack/Pictures
gphoto2 --get-all-files

All I do now is type
Code:

photos
and my folders are downloaded to where I want them to be.

PeterUK 04-28-2013 04:59 PM

Quote:

Originally Posted by Bazzaah (Post 4940709)
Yes - what I do is create a folder called scripts in ~ and add that (home/$user/scripts) to paths in /etc/profile.

e.g. I saved this to ~/scripts as photos (make it executable)

Code:

#!/bin/bash
cd /home/slack/Pictures
gphoto2 --get-all-files

All I do now is type
Code:

photos
and my folders are downloaded to where I want them to be.

Every is straight forward except that profile file where exactly do I add that path?

frankbell 04-28-2013 09:30 PM

What file system is your camera using?

Mine does not show up in a file manager because it's a PTP class camera, but it works fine with gtkam. There's a Slackbuild, if you want to give it a shot.

Bazzaah 04-29-2013 03:46 AM

Quote:

Originally Posted by PeterUK (Post 4940726)
Every is straight forward except that profile file where exactly do I add that path?

If you make a folder in your home direcotry called Pictures, then the path to that folder will be

/home/yourusername/Pictures

So just substitute your user name for mine and you'll be good to go.


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