Hey Reno,

Glad to hear your making progress with your digicam and linux.

I just set this up the other day with my A75. The trick to getting the PTP driver and gphoto2 to work as non root is to enable r/w to usbfs for non root users. The debian way is to create a group called USB and add all the non-root users who should be able to access the USB devices to that and then mount usbfs owned by that group. It's easier than it sounds. Assuming you are good with creating groups and adding users to groups all you need to do is find the group ID for the USB group:

 $ cat /etc/group | grep usb
 usb:*:1002:jsc

So here we have the group usb which contains the user jsc and the group ID is 1002. Need to become root now. Then we modify fstab to mount usbfs owned by that group. Basicall comment out the line in /etc/fstab that has /proc/bus/usb in it (by adding a # sign to it) and add this line:

 none        /proc/bus/usb       usbfs devuid=0,devgid=1002,devmode=0660  0   0

And now unmount and remount /proc/bus/usb with:

 $ umount /proc/bus/usb
 $ mount /proc/bus/usb

And now you can run gphoto2 as non-root users.

Also related. The Canon digicams set an exif flag with image orientation that causes *some* programs to automatically rotate portrait pics. The keyword is *some*. I find it rather annoying that not all of the programs honour this so, for example, it is portrait in kuikshow but landscape in gimp. There is a neat program called jhead (google it if you don't have it) that will rotate all the images according to that exif flag and remove the flag. It'll also rename your files to something more useful like the date and time the photo was taken.

I do the following when I want to pull the photos under Linux:

 $ gphoto -P
 $ jhead -n"%Y%m%d-%H%M%S" -autorot -ft *.JPG

Hope that helps a bit.

Jeff

Reno L wrote:

Hi, all,

Since I get much from CLUG, I would share what I try
today. Also, I want to get all the corrections and
suggestions from CLUG on this topic.

I am using Cannon Powershot A70, usb interface. There
is no A70 model from the gtKam by default within RH9.


The reason I try to get the photos from A70 with liunx
is I was tired of Windows(coz it is so easy to get
photos...;).

The following is my path:
1. Failed to locate linux driver from Cannon website
coz Cannon just ignores Linux. 2. Seaching google, find that gPhoto2 might be working
for A70.
3. Download one gz file: gphoto2-2.1.4.tar.gz, and one
doc: gphoto2-manual-2.1.1dev4.pdf. I suggest these two
are must to download.
4. type su -, log in as root, decompress .gz file and
tar xvf gphoto2-2.1.4.tar.gz. System working......
after a little while, you will find a folder called
gphoto2-2.1.4 generated.
5. Go into this new folder and look around, gee, there
are so many files and folder within it. What hell can
I go next step? 6. Don't issue any command, just go to read the
download pdf file: gphoto2-manual-2.1.1dev4.pdf. Gee,
do I need to compile them? do I need to reconfigure my
system? do I need to ...? 7. NO, don't do anything. Just type in gphoto2. Good,
I see gphoto2 options list jump out. Oh, yeah, I don't
need to anyting with recompile, reconfiguration,... 8. Don't forget, I am still ROOT now.
9. After reading the pdf DOC, try some command options
under root, like:
gphoto2 --list-ports // I can see the usb interface
now
gphoto2 --auto-detect //my camera is USB PTP Class
Camera
gphoto2 --summary // no, erro information.
gphoto2 --list-folders //great, I can see my camera
folders
gphoto2 --list-files //great, I can see all my pic
name listing there
gphoto2 --get-all-files //finally, I can download all
pics from my digital camera to my linux box, even it
is a challange then windows.
gphoto2 --capture-preview //no, erro information.


10. Since I can not read pic from camera directly, I
use kuikshow to read the download pics on the
harddisk. Still good to go. ;)

11. I must do something extra, coz I can not issue any
gphoto2 command when I am a universal user( NOT ROOT
user). Go to read DOC pdf file, it tells me how to do
it.

12. It looks like, gphoto2 can help me download pic
from digital camera, but not all of command options
good to use. My Cannon PowerShot A70 doesn't support
couples of options.(see the errors arose as above)

I am thinking, is there any easier way then my
solution to read the pics from a universal model of
digital camera on Linux??? Beyand gPhoto2 is ok too.

reno






__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca




_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to