Re: Kamera + USB permissions

2002-03-19 Thread Radu Muschevici
On Die, 19 Mär, 2002 at 21:20:38 +0200, Jarno Elonen wrote:
> > I solved this by installing the hotplug package.
> >
> > then a script
> > /etc/hotplug/usb/usbcam
> > gets executed whenever you connect the camera to the usb port
> >, which you can configure to give you (or a certain group) permissions
> > to access the usb device.
> 
> I don't have that script - even after reinstalling gphoto2 and kamera. Which 
> package does it come in?
> Do you also have to declare the product id of you camera somewhere in 
> hotplug's configuration files?
> 
> > I have a Kamera question too:
> >
> > how can I configure Konqueror to show me (camera generated) thumbnails for
> > each image instead of icons?
> 
> At least on my system it works automatically. Maybe you are using tree or 
> list view instead of icon view in Konqueror?
> 
> (Unfortunately Kamera apparently doesn't use gphoto's '-T' option for getting 
> thumbnails from my Canon G1 but rather downloads the whole pictures and 
> scales them down; judging from the speed at least. :[ The Kamera sources do 
> contain thumbnail code but for some reason it bugs on my configuration.)

Yes - i'd like kamera to download the in-camera thumbnails and display them
instead of downloading the whole image and scale it down to thumbnail
size. The latter works only for images < 1 MB anyway.

Radu




Re: Kamera + USB permissions

2002-03-19 Thread Jarno Elonen
> I solved this by installing the hotplug package.
>
> then a script
> /etc/hotplug/usb/usbcam
> gets executed whenever you connect the camera to the usb port
>, which you can configure to give you (or a certain group) permissions
> to access the usb device.

I don't have that script - even after reinstalling gphoto2 and kamera. Which 
package does it come in?
Do you also have to declare the product id of you camera somewhere in 
hotplug's configuration files?

> I have a Kamera question too:
>
> how can I configure Konqueror to show me (camera generated) thumbnails for
> each image instead of icons?

At least on my system it works automatically. Maybe you are using tree or 
list view instead of icon view in Konqueror?

(Unfortunately Kamera apparently doesn't use gphoto's '-T' option for getting 
thumbnails from my Canon G1 but rather downloads the whole pictures and 
scales them down; judging from the speed at least. :[ The Kamera sources do 
contain thumbnail code but for some reason it bugs on my configuration.)

- Jarno




Re: Kamera + USB permissions

2002-03-18 Thread Radu Muschevici
On Mon, 18 Mär, 2002 at 22:46:28 +0100, Hendrik Sattler wrote:
> Am Montag, 18. März 2002 19:33 schrieb Jens Benecke:
> > On Mon, Mar 18, 2002 at 02:00:40AM +0200, Jarno Elonen wrote:
> > > I just tried Kamera after quite a long time and it actually worked.
> > > Thank you!  It isn't, however, very feasible to use because the device
> > > file is owned by root: you always have to change its permissions
> > > manually before starting Kamera as a non-root user.  I found a small
> > > daemon called usb-perms (and packaged it into a .deb

I solved this by installing the hotplug package.

then a script
/etc/hotplug/usb/usbcam
gets executed whenever you connect the camera to the usb port, which
you can configure to give you (or a certain group) permissions to
access the usb device.


I have a Kamera question too:

how can I configure Konqueror to show me (camera generated) thumbnails for
each image instead of icons?

thanks
Radu




Re: Kamera + USB permissions

2002-03-18 Thread Hendrik Sattler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 18. März 2002 19:33 schrieb Jens Benecke:
> On Mon, Mar 18, 2002 at 02:00:40AM +0200, Jarno Elonen wrote:
> > I just tried Kamera after quite a long time and it actually worked.
> > Thank you!  It isn't, however, very feasible to use because the device
> > file is owned by root: you always have to change its permissions
> > manually before starting Kamera as a non-root user.  I found a small
> > daemon called usb-perms (and packaged it into a .deb
>
> That's what DEVFS (device file system) is for. If you use 2.4 kernels
> and have devfs compiled in, the /dev tree will be maintained as an 'in
> memory' file system, with things like nodes, permissions, etc. (also for
> "not yet existing" nodes) saved in /etc/devfsd/perms and associated
> files.

Jens, I think he meant the files in /proc that are created by usbdevfs, there.
I read in a newsgroup about some options to usbdevfs that can give a group 
write access to usb devices.
Or you change them manually to do the same as for devfs. But that is also an 
security hole and only advisable if you only have trusted users.
After all, it makes no sense to have different rights for different usb ports 
that are completely accessible to the user.

HS

- -- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.schulnetz.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8lmA0zvr6q9zCwcERArAqAKCEK5mq/6Owq1EYguvzCHnQTabQ3gCgkazb
xgz51mEQD1oudRwgZUjziQc=
=J24t
-END PGP SIGNATURE-




Re: Kamera + USB permissions

2002-03-18 Thread David Bishop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 18 March 2002 12:38 pm, Jay Kline wrote:
> On Monday 18 March 2002 12:33 pm, Jens Benecke wrote:
> > On Mon, Mar 18, 2002 at 02:00:40AM +0200, Jarno Elonen wrote:
> > > I just tried Kamera after quite a long time and it actually worked.
> > > Thank you!  It isn't, however, very feasible to use because the device
> > > file is owned by root: you always have to change its permissions
> > > manually before starting Kamera as a non-root user.  I found a small
> > > daemon called usb-perms (and packaged it into a .deb
> >
> > That's what DEVFS (device file system) is for. If you use 2.4 kernels
> > and have devfs compiled in, the /dev tree will be maintained as an 'in
> > memory' file system, with things like nodes, permissions, etc. (also for
> > "not yet existing" nodes) saved in /etc/devfsd/perms and associated
> > files.
>
> But USB devices are not in the /dev tree..  they are in proc.  They show up
> in /proc/bus/usb/   The few usb device files in /dev/ are for use with
> particular drivers (the usb-printers, etc)

That is not any more right than saying that interrupts reside in 
/proc/interrupts.  The /proc/bus/usb tree is only an informational way of 
showing you what usb devices are present, they are not the actual "device" 
files.  Those still reside in /dev/*usb* or /dev/usb/* (depending on whether 
you use devfs or not).

- -- 
D.A.Bishop
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8llBAEHLN/FXAbC0RAohaAKC2V6Hb8d6DRlG0tzN8y/JVRrMz3gCgmTNm
Yc9kruOo50DRDFgRv9Ibnok=
=gPXS
-END PGP SIGNATURE-




Re: Kamera + USB permissions

2002-03-18 Thread Jay Kline
On Monday 18 March 2002 12:33 pm, Jens Benecke wrote:
> On Mon, Mar 18, 2002 at 02:00:40AM +0200, Jarno Elonen wrote:
> > I just tried Kamera after quite a long time and it actually worked.
> > Thank you!  It isn't, however, very feasible to use because the device
> > file is owned by root: you always have to change its permissions
> > manually before starting Kamera as a non-root user.  I found a small
> > daemon called usb-perms (and packaged it into a .deb
>
> That's what DEVFS (device file system) is for. If you use 2.4 kernels
> and have devfs compiled in, the /dev tree will be maintained as an 'in
> memory' file system, with things like nodes, permissions, etc. (also for
> "not yet existing" nodes) saved in /etc/devfsd/perms and associated
> files.


But USB devices are not in the /dev tree..  they are in proc.  They show up 
in /proc/bus/usb/   The few usb device files in /dev/ are for use with 
particular drivers (the usb-printers, etc) 

So far, the only utility that handles usb permissions is usb-perms  

Jay




Kamera + USB permissions

2002-03-17 Thread Jarno Elonen
I just tried Kamera after quite a long time and it actually worked. Thank you!

It isn't, however, very feasible to use because the device file is owned by 
root: you always have to change its permissions manually before starting 
Kamera as a non-root user.

I found a small daemon called usb-perms (and packaged it into a .deb as an 
excercise) that can change them automatically whenever a device is plugged 
in, but started wondering if there is a more standard way of making Kamera 
usable in the user-land?

- Jarno