LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Digital Camera Benq DC2300 (https://www.linuxquestions.org/questions/linux-hardware-18/digital-camera-benq-dc2300-83497/)

jimdaworm 08-19-2003 09:39 AM

Digital Camera Benq DC2300
 
Digital Camera Benq DC2300
Does anyone know how to get this camera working under Red Hat Linux I have

Gtkam http://gphoto.sourceforge.net/proj/gtkam/ but it doesn't recognise this camera.

Thanks
Adam

d3xtrom3thorpha 08-19-2003 10:00 AM

WINE
 
I haven't seen any drivers for this camera in linux, maybe you could go with some sort of Windows emulation? Just a suggestion.

jimdaworm 08-19-2003 11:16 AM

Windows emmulation? How
 
Windows emmulation? How would I go about doing that... I have heard of wine but I dont know anything about it and what versions there are ect... can you get one with a GUI?

Adam

MasterC 08-19-2003 11:20 AM

Moving to the Linux - Hardware section where hardware related questions usually go ;)

I found that by using a generic USB reader as a Mass Storage device for most memory sticks, has had great success. :)

Cool

jimdaworm 08-19-2003 12:22 PM

Mass storage devices
 
Hey I know I can use my camera as a mass storage device in windows xp (and get at the photos that way) is there are way of installing it as a mass storage device in Linux Red hat?

Adam

Mathieu 08-19-2003 01:26 PM

First, make sure that the USB wire is plugged-in and that the camera is on.
Then open a terminal window and type:
Code:

mount -t vfat /dev/sda1 /mnt/camera
You will have to navigate the directory structure in order to get your pictures.

When you are finished with the camera, don't forget to un-mount it.
Code:

umount /dev/sda1

jimdaworm 08-19-2003 03:52 PM

It worked thanks!
 
Hey I managed to mount it no problems just a couple more questions. Like is there an easy way to automate this, like in MSDOS you could make bat files and then you just double click them rather than typing in the command line.


Also what happens if you dont unmount somthing, what bad does it do?

Adam

Mathieu 08-19-2003 04:41 PM

Yes,
You could always add it to the automount service (autofs) or in the /etc/fstab file.
However, scripts are a good choice.

In Linux, Bash scripts are the equivilent of .BAT files.
The first line in your script is #!/bin/bash
So the script to mount the camera would be:
Code:

#!/bin/bash
mount -t vfat /dev/sda1 /mnt/camera

Then, create an icon on your desktop and link it to the script.
Do the same for umount.

If you learn more about Bash (or any other scripting language), you will be able to merge these two scripts into one. :cool:

And what happens if you forget to umount... Your computer will catch on FIRE. :cry:

no... :p You will see a few error messages.

jimdaworm 08-20-2003 09:33 AM

A bit more detail please
 
Hey what and where do you need to save the script file as... I am afraid being a newbie... having Linux for three days now, I need all the details (3 whole days trying to learn!)

Thanks
Adam

Mathieu 08-20-2003 02:00 PM

You can save it in /usr/local/bin
For example, call it mntcam.sh
Don't forget to set the permissions to execute:
Code:

chmod 755 mntcam.sh

jimdaworm 08-22-2003 05:27 PM

How would I make a script that does both?
 
Hey thanks again I can use my camera now! I cant help wondering how do you make a script that does both? Or is that getting to complicated?

Adam

Mathieu 08-22-2003 06:54 PM

Complicated... :scratch: ... no. :D

But you will have to learn a scripting language.
There are many scripting languages, but the two most widely used languages in Linux are Bash and Perl.
In this case, we created two Bash scripts.

There are many Bash and Perl tutorials on the internet.

Bash-Scripting Guide
http://www.tldp.org/guides.html

Perl Tutorials
http://www.comp.leeds.ac.uk/Perl/start.html
http://archive.ncsa.uiuc.edu/General...ing/PerlIntro/
http://www.sthomas.net/roberts-perl-tutorial.htm

Google Linux - To find them all
http://www.google.com/linux


All times are GMT -5. The time now is 11:00 AM.