Jump to content

Digital Camera related question


Recommended Posts

Well, the problem isn't really getting the files, since I know how to get them. I can use the program flphoto. The only thing about the program is, that I must run it in root, so it can mount my camera, when I hook it up to the USB.

 

While the program was running I ran the command: mount -l

To see what the program was using.

 

usbdevfs on /proc/bus/usb/ type usbdevfs (rw)

 

Now the thing is, I want to make a launcher, to my flphoto, where I don't have to run it from a console in root. I either need to know how to make a launcher ask for root password, or how to let flphoto mount whatever it mounts under my user account.

 

Any thoughts?

Link to post
Share on other sites
  • 3 weeks later...
Any thoughts?
Hmm.

 

Ok, assuming that your camera behaves like a standard USB storage device (mine does), and that you've got all the right kernel modules etc., then simply adding a line to /etc/fstab should enable you to access your photos without being root.

 

plug in the camera and type 'dmesg', you should see something like this:

usb 1-2: new high speed USB device using address 3

scsi4 : SCSI emulation for USB Mass Storage devices

  Vendor: Generic Model: STORAGE DEVICE    Rev: 1.25

  Type: Direct-Access                      ANSI SCSI revision: 02

SCSI device sdc: 256000 512-byte hdwr sectors (131 MB)

sdc: assuming Write Enabled

sdc: assuming drive cache: write through

sdc: sdc1

Attached scsi removable disk sdc at scsi4, channel 0, id 0, lun 0

USB Mass Storage device found at 3

 

You can see the USB storage device connected on sdc1

 

So adding to your /etc/fstab a line like:

dev/sdc1            /mnt/camera                vfat    noauto,users 0 0

 

should enable you to get to your photos without being root.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...