[ Bloke.com || Linux || JavaScript || Java || Volleyball || Link Me ]
Free: [ Guestbook || MessageBot || Plugins || Counter || AusPrices || Advertise ]

Home - Linux - Camera

I have a Olympus C-2020Z 2.1 MegaPixel digital camera, which I connect to my laptop.

I lost the drivers for winbloze, and probably one of the better mistakes I made. Since know I use gphoto2. If you are buying a new camera for winbloze, I'd recommend that you get one with USB support. For Linux, I'm not sure how the USB support for the cameras is going. However, one thing is for sure: Serial is sucky and slow.

More detail to come here: Look for gphoto2 on google, and install that.

To get the camera working, I needed to figure out what port the camera was on, and what options to set. Useful options:

gphoto2 --help
Then need to find out what camera and port you are on. Probably you will need to run all these commands as root, else you might get wierd replies.
gphoto2 --list-cameras
gphoto2 --list-ports
So for me I tried a bunch of things, but my port is --port serial:/dev/ttyS0 and the camera model is --camera "Olympus C-2020Z".

Now once you have these, you need to find the directory with the photos in it, so make sure you have taken a few pictures. Now to find the directory that the pictures in, look in the root directory (-L means list files):

gphoto2 -L --folder "/" --port serial:/dev/ttyS0  --camera "Olympus C-2020Z"
From the listing I see that there is one directory "DCIM", so
gphoto2 -L --folder "/DCIM" --port serial:/dev/ttyS0  --camera "Olympus C-2020Z"
Now I see 100OLYMP, so I run:
gphoto2 -L --folder "/DCIM/100OLYMP" --port serial:/dev/ttyS0  --camera "Olympus C-2020Z"
And I see my photos in there. :-)

Here are the scripts (use at own risk) that I used to access my camera. I think you need to be root to access them (to get acess to the serial port). This scripts are for camera connected to the first serial port (/dev/ttyS0).

listphotos - get a directory listing of all photos

gphoto2 -L --port serial:/dev/ttyS0  --camera "Olympus C-2020Z" --folder "/DCIM/100OLYMP"
getphotos - get all photos top the current directory
gphoto2 -P --port serial:/dev/ttyS0  --camera "Olympus C-2020Z" --folder "/DCIM/100OLYMP"
getphoto - get a particular photo
gphoto2 --get-image $* --port serial:/dev/ttyS0  --camera "Olympus C-2020Z" --folder "/DCIM/100OLYMP"
getthumnbnails - get all the thumbnail images
gphoto2 --get-all-thumbnails --port serial:/dev/ttyS0  --camera "Olympus C-2020Z" --folder "/DCIM/100OLYMP"
deleteallphotos - deletes photos from the camera
gphoto2 -D --port serial:/dev/ttyS0  --camera "Olympus C-2020Z" --folder "/DCIM/100OLYMP"

So what's a camera page would be without a few photos?

Last Change: Monday, 10-Jan-2005 07:40:24 EST


The information provided within these pages is provided AS IS, and without any warranty. Following these directions may (but not limited to) crash your computer, delete all the information on your hard disk, open up security holes or cause your house to burn down. I made these pages to provide some information about the setup that I have done, but I did not proofread it for correctness, and in most cases did not test it. There are commands in these pages that would definately delete or corrupt all the data on your computer (especially the dualboot section). In fact it happened to me.... So you are on your own!

Cameron Gregory