You are not logged in.

#1 2017-07-07 19:49:14

loadlover
Member
Registered: 2017-05-10
Posts: 103

Accessing GoPro camera via alias in Apache

I would like to create an alias in Apache for my GoPro's SD card (while it's still in the camera, obviously). The GoPro, a HERO5 Session, is connected to my laptop via USB.

If logged in as user, the full path to the GoPro's SD card directory is:

/run/user/1000/gvfs/'mtp:host=%5Busb%3A001%2C004%5D'/'GoPro MTP Client Disk Volume'/DCIM/100GOPRO

Therefore, I put the following alias in /etc/httpd/conf/httpd.conf:

Alias "/gopro" "/run/user/1000/gvfs/'mtp:host=%5Busb%3A001%2C004%5D'/'GoPro MTP Client Disk Volume'/DCIM/100GOPRO"
<Directory "/run/user/1000/gvfs/'mtp:host=%5Busb%3A001%2C004%5D'/'GoPro MTP Client Disk Volume'/DCIM/100GOPRO">
    Require all granted
    Options Indexes FollowSymLinks
</Directory>

However, when attempting to set directory permissions to 755, and files to 644, I cannot go deeper than the /run/user/1000 directory. Permission is denied, or operation not supported, despite using sudo. I can't set /run/user/1000/gvfs or any further in, and so I can't expose the SD card's data in Apache using the /gopro alias.

What to do?

Thanks:)

Loady

EDIT: Further research is leading me to look into a few matters:

1. Somehow, perhaps I need a way to set the execute bit on these directories so that Apache can traverse (enter, list, serve etc) them. Or to hack / fool this.

2. It's an mtp issue, ultimately. Perhaps a different mtp package (compatible with Arch) would help to implement a more accessible filesystem in userspace? The wiki has some info here: https://wiki.archlinux.org/index.php/MTP

3. I'm still stuck at the moment.

Last edited by loadlover (2017-07-11 12:29:43)

Offline

#2 2017-07-26 16:03:25

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Accessing GoPro camera via alias in Apache

This is a follow-up to my original post. I have made no progress, despite a couple of weeks of researching in and around..

Forgetting about aliases for the moment, I can't believe that Apache Server is just not able to navigate an mtp device/filesystem. Try as I might, I can find nothing that works. I have even considered PAYING (ohmegerd!) for advice about this on a site like Codementor.

A final plea if anyone hears me..

Thanks,

Loady

Offline

#3 2017-07-26 19:23:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: Accessing GoPro camera via alias in Apache

Well have you tried any of those FUSE based libraries you link to? What have these attempts lead to? Afaik gvfs-mount points will only work with software linked against gvfs which apache obviously isn't.

Offline

Board footer

Powered by FluxBB