LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-03-2006, 07:40 PM   #1
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230

Rep: Reputation: 37
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
 
Old 07-04-2006, 04:33 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
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.
 
Old 07-04-2006, 05:07 PM   #3
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
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
 
Old 07-04-2006, 05:49 PM   #4
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230

Original Poster
Rep: Reputation: 37
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
 
Old 07-04-2006, 06:24 PM   #5
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
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
 
Old 07-04-2006, 06:29 PM   #6
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230

Original Poster
Rep: Reputation: 37
to download pictures to my hard
 
Old 07-04-2006, 09:44 PM   #7
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
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.
 
Old 07-04-2006, 11:06 PM   #8
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230

Original Poster
Rep: Reputation: 37
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,
 
Old 07-05-2006, 02:15 PM   #9
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
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
 
Old 07-05-2006, 05:39 PM   #10
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
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.
 
Old 07-05-2006, 09:39 PM   #11
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230

Original Poster
Rep: Reputation: 37
thanx a lot quip
the first link gave me the solution

thanx thanx thanx!!!
 
Old 07-05-2006, 09:57 PM   #12
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by specialized
thanx a lot quip
the first link gave me the solution

thanx thanx thanx!!!
Glad to help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kodak usb please?!?! machineunreal Linux - Software 8 04-10-2005 08:46 PM
kodak dx6490 punker Linux - Hardware 3 03-10-2005 10:28 AM
Kodak CX4310 Help please??? ClearDistortion Linux - Hardware 1 12-17-2004 12:10 AM
Kodak DX3900 vexer Linux - Hardware 4 05-06-2003 07:39 PM
Kodak DC265 sniff Linux - Hardware 0 03-18-2003 08:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration