UDev Rules

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UDev Rules

royord
It seems as though udev rules aren't being installed during compile from source, did I miss something?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|

Re: UDev Rules

Marcus Meissner-4
On Fri, Oct 21, 2016 at 11:48:08AM -0700, royord wrote:
> It seems as though udev rules aren't being installed during compile from
> source, did I miss something?

No, they are not installed by default.

After installing libgphoto2, you can run the helper tool to generate them.

Basically all new systemd/udev versions (>=210 I think) use hwdb:

        /usr/lib64/libgphoto2/print-camera-list hwdb > /usr/lib/udev/hwdb.d/20-gphoto.hwdb

The systemd there knowns GPHOTO2 cameras and will have default rules for their permissions then.


Older systemd / udev ones use and specify the udev version (for udev version >=)

/usr/lib64/libgphoto2/print-camera-list udev-rules version 201   .... > /usr/lib/udev/rules.d/40-libgphoto2.rules
/usr/lib64/libgphoto2/print-camera-list udev-rules version 175   .... > /usr/lib/udev/rules.d/40-libgphoto2.rules
/usr/lib64/libgphoto2/print-camera-list udev-rules version 136   .... > /usr/lib/udev/rules.d/40-libgphoto2.rules
/usr/lib64/libgphoto2/print-camera-list udev-rules version 0.98   .... > /usr/lib/udev/rules.d/40-libgphoto2.rules

Where .... can be added with "mode xxx" or "owner xxx" or "group xxx" or nothing, depending on your
distribution.

Ciao, Marcus

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user