LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   kodak dx6490 in slack 10.2 (https://www.linuxquestions.org/questions/slackware-14/kodak-dx6490-in-slack-10-2-a-460702/)

specialized 07-03-2006 06:40 PM

kodak dx6490 in slack 10.2
 
hi!!
i got this camera and every time that i want conect it to my pc, i do this, with the camera on, if not, doesnt works

chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb

as root of course

this can be done in a automatic way??

my kernel is the 2.4.13, and the usb is handle by the hotplug



thanx a lot

jstephens84 07-04-2006 03:33 PM

Code:

fdisk -l
That should show you when you plug in the deivce where it is located. The you will have to edit you /etc/fstab.

When I used the fdisk -l to show where my flash drive was it prompted it as sda1.

vonst 07-04-2006 04:07 PM

Another fast and easy option is to check messages right after you hotplug your camera:

tail /var/log/messages

messages is sometimes long-winded, but it should say something to this effect:

Code:

Jul  4 17:03:15 pluto kernel: usbcore: registered new driver ub
Jul  4 17:03:19 pluto kernel:  Vendor:          Model: USB Flash Memory  Rev: 1.04
Jul  4 17:03:19 pluto kernel:  Type:  Direct-Access                      ANSI SCSI revision: 00
Jul  4 17:03:20 pluto kernel: SCSI device sdc: 2004992 512-byte hdwr sectors (1027 MB)
Jul  4 17:03:20 pluto kernel: sdc: Write Protect is off
Jul  4 17:03:20 pluto kernel: SCSI device sdc: 2004992 512-byte hdwr sectors (1027 MB)
Jul  4 17:03:20 pluto kernel: sdc: Write Protect is off
Jul  4 17:03:20 pluto kernel:  sdc: sdc1
Jul  4 17:03:20 pluto kernel: sd 1:0:0:0: Attached scsi removable disk sdc
Jul  4 17:03:20 pluto kernel: sd 1:0:0:0: Attached scsi generic sg3 type 0

Either way, you have to sort through data. In my case, I can mount my thumbdrive off of /dev/sdc1.

Remember, you have to have a mount point. Off of /, I made /riviera. In my fstab, I put the line:

Code:

/dev/sdc1      /riviera      vfat        noauto,user,rw,exec  1  0
I don't have to be root to mount riviera. I just type: mount /riviera. It works great and to keep from hosing up my hardware, I remember to umount /riviera before I unhook my thumbdrive.

--vonSt

specialized 07-04-2006 04:49 PM

my camera works fine, and a dont put anything in the fstab

just on the camera, this...
chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb

and the digikam

but i dont want do that chmod blabla thing

its clear??


thanx a lot guys

vonst 07-04-2006 05:24 PM

I gave you a way to download pictures from your camera to your computer. Is that what you are doing or are you using a webcam and you want to activate it so that you can use a videophone?

--vonSt

specialized 07-04-2006 05:29 PM

to download pictures to my hard

vonst 07-04-2006 08:44 PM

From eSlack.org:

en /etc/rc.d/rc.local coloca eso para que se ejecute en cada inicio de sistema

However...

Camera and computer should not care about root and users. Usually, cameras are treated as hard drives by the computer. Hotplug should link camera and computer. Hotplug should give the camera a device name, such as "/dev/sda1" or "/dev/uba1". Root should mount the camera as if it were a CDROM or floppy drive.

When I had my Fuji digital camera, I could copy pictures from the camera to the computer. For fun, I would copy documents from the computer to the camera, but the camera did not know what to do with them.

--vonSt

en espanol... quizá (altavista.babelfish.com):
Al menos...

La cámara fotográfica y la computadora no deben preocuparse de root y users. Generalmente, las cámaras fotográficas se piensan en como HDDs duras por la computadora. Hotplug debe ligar la cámara fotográfica y la computadora. Hotplug debe dar a la cámara fotográfica un nombre de dispositivo, tal como "/dev/sda1" o "/dev/uba1". Root debe montar la cámara fotográfica como si fuera un CDROM o una FDD.

Cuando poseí mi cámara fotográfica digital de "Fuji", podría copiar cuadros de la cámara fotográfica a la computadora. Para la diversión, copié documentos de la computadora a la cámara fotográfica, pero la cámara fotográfica no sabía qué hacer con él.

specialized 07-04-2006 10:06 PM

From eSlack.org:

en /etc/rc.d/rc.local coloca eso para que se ejecute en cada inicio de sistema

i need to do that thing (chown blabla) with the camera on,

vonst 07-05-2006 01:15 PM

The method you are using is not normal for Linux. That is why we are having a problem understanding the thing you want to do.

If you still want an answer to your original question, I can offer you this solution:

1. Read and learn about "sudo", "sudoers", and "visudo". These commands help you run programs that only root can run.



4. Use sudo to allow your user account permissions to chmod/chown.

sudo is complex and causes security problems with your computer. It should work to allow the user to run those commands (in one file) instead of root.

If you want to run the two commands automatically as root:

1. Create a text file. Call it "getcamera". Put the chmod/chown commands in this file.

2. chmod 777 getcamera (to make it executable).

3. Every time you plug the camera into Linux, run "getcamera" as root and it will run the two files for you.

Note: This is way more complicated than mounting the camera as a HDD. You DO need to make sure your kernel supports "mass storage drives."

--vonSt

quip 07-05-2006 04:39 PM

Quote:

Originally Posted by specialized
hi!!
i got this camera and every time that i want conect it to my pc, i do this, with the camera on, if not, doesnt works

chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb

as root of course

this can be done in a automatic way??

my kernel is the 2.4.13, and the usb is handle by the hotplug



thanx a lot

You need to write a hotplug script for automation.

Some info can be found concerning digikam and hotplug here: http://digikam.free.fr/hotplug/howto.html.

Generic info on setting usb permissions via hotplug can be found here: http://www.gphoto.org/doc/manual/permissions-usb.html.

Let us know if that helps or not.

specialized 07-05-2006 08:39 PM

thanx a lot quip
the first link gave me the solution

thanx thanx thanx!!!

quip 07-05-2006 08:57 PM

Quote:

Originally Posted by specialized
thanx a lot quip
the first link gave me the solution

thanx thanx thanx!!!

Glad to help! ;)


All times are GMT -5. The time now is 02:49 AM.