andreknieriem / photobooth

A photobooth Web-Application for raspberry pi with gphoto2
https://photobooth.andrerinas.de/
MIT License
300 stars 163 forks source link

Enhancement: Add description to auto-unmount camera #93

Closed sualko closed 5 years ago

sualko commented 5 years ago

The current documentation recommends to delete the gvfs services which is a pretty rough action. I think it would be better to automatically unmount the camera, like described in https://askubuntu.com/a/301133. If #86 is merged, I will create a pr.

andi34 commented 5 years ago

Another solution found here instead deleting the services https://askubuntu.com/questions/673259/restricting-mtp-devices-from-being-mounted-by-a-user-group

Blocking MTP and PTP

Enter this location as root /usr/lib/gvfs

"sudo nautilus" will be easy if you tend to use GUI sudo nautilus and then navigate to computer/usr/lib/gvfs

There will be list of services Remove the execute permission by right clicking the appropriate service-->properties-->permission-->unckeck "execute" and change the read only access from "read only" to "none".

Remove the execute permission for

gvfsd-mtp
gvfs-mtp-volume-monitor(for safer side)
gvfsd-gphoto2
gvfs-gphoto2-volume-monitor(for safer side)
andi34 commented 5 years ago

sudo chmod -x /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

Is enough. Only needs a reboot after removed execution permissions.

andi34 commented 5 years ago

Updated the wiki already: https://github.com/andreknieriem/photobooth/wiki/_compare/f01d65ac38fa4128f169fc5316a47064de5e19c6...569d85519aabdbb1f58f5f2cd19753449244d913