How to (auto-) mount a usb camera with user permissions on Raspian Pixel and gphoto2? -
i connecting canon dslr using gphoto2 on raspbian pixel. gphoto2 runs if run commands using sudo. example:
user@machine:~ $ gphoto2 --summary *** error *** error occurred in io-library ('could not claim usb device'): not claim interface 0 (operation not permitted). make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such sdc2xx, stv680, spca50x) using device , have read/write access device. *** error (-53: 'could not claim usb device') *** debugging messages, please use --debug option. debugging messages may finding solution problem. if intend send error or debug messages gphoto developer mailing list <gphoto-devel@lists.sourceforge.net>, please run gphoto2 follows: env lang=c gphoto2 --debug --debug-logfile=my-logfile.txt --summary please make sure there sufficient quoting around arguments. whereas, using sudo, fine:
user@machine:~ $ sudo gphoto2 --summary detected 'canon:eos 350d (normal mode)' camera summary: camera identification: model: canon:eos 350d (normal mode) owner: unknown power status: on battery (power ok) flash disk information: drive a: 1,975,680 bytes total 1,915,360 bytes available time: 2017-04-07 11:51:19 (host time +0 seconds) i trying incorporate camera control python program, sudo won't option down road. assuming it's matter of setting read/write permissions camera when it's mounted. how can determine path camera , set permissions user account has proper access every time it's connected won't have use sudo?
Comments
Post a Comment