Direct http access to the folders "download" and "external_sdcard"

Hi,

Sometimes you want to access the folders “downloads” and “external_sdcard” directly via your browser without the Skylark GUI. For example, if the browser is too old and not supported (see The browser often crashes ).

This can be done with the following steps:

You log into the server via ssh.

ssh [email protected]

You get root privileges.

sudo -i

You create a symlink of the “download” folder in the Document-root of the webserver.

ln -sf /mnt/downloads /usr/share/www/

You create a symlink of the “external_sdcard” folder in the Document-root of the webserver.

ln -sf /mnt/external_sdcard /usr/share/www/

Now you can address these folders in your browser, for example http://10.0.0.1/downloads

I also added the links to this folder to the start page (top left).

I modified the file /usr/share/www/index.html for this purpose. At the end of the file, before the closing body and HTML tag, I inserted these two lines:

...
    <a href="/downloads/">downloads</a></br>
    <a href="/external_sdcard/">external_sdcard</a></br>
  </body>
</html>

As you can see you don’t need to enter a password to see these folders.

Robert

1 Like

As I noticed these extensions are no longer available after a restart. I suspect that the directory structure of the operating system is rebuilt from the (kernel) image each time it is restarted. So you would have to mount and edit this image. These steps would have to be repeated after each update. It would be better to support a start script that can be customized by any Skylark administrator.

Please see also