Accessing a GoPro camera from the command line (Linux)
I can access my GoPro camcorder through the GUI when it's connected to my Fedora laptop - it looks like a StillImage (under the Devices section), but I can't seem to access it through the command line. Pressing CTRL + L gives the location as "gphoto2: // [usb: 003,023] /". However, typing ls gphoto2: // [usb: 003,023] / in the terminal returns:
ls: cannot access gphoto2://[usb:003,023]/: No such file or directory
Any suggestions?
source to share
These StillImages are mounted by GVfs . Usually you will find such devices installed underneath $XDG_RUNTIME_DIR/gvfs
where they $XDG_RUNTIME_DIR
usually are /run/user/$UID
. For example, I can see that my GoPro is installed here:
/run/user/1000/gvfs/gphoto2:host=%5Busb%3A002%2C004%5D
If for some reason you don't need to install $XDG_RUNTIME_DIR
, you can also try to find the GVfs mount location using grep gvfs /etc/mtab
which gives me the following:
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=chriki 0 0
source to share