bastienwirtz / homer

A very simple static homepage for your server.
https://homer-demo.netlify.app/
Apache License 2.0
9.31k stars 786 forks source link

FEATURE REQUEST: Ability to run file or command on the machine running homer, from the dashboard #506

Closed lauridshub closed 5 months ago

lauridshub commented 2 years ago

Been looking around and could not find an easy solution for this. I would like to send Wake-on-LAN packets to a machine, but it would be nice to do from the dashboard. So either being able to run a bashscript or a command would be nice!

virtadpt commented 2 years ago

Maybe enable cgi-bin on your webserver, write a shell script that will run the necessary command (like etherwake or wakeonlan), and add the URL to the cgi-bin script as an entry on your dashboard?

lauridshub commented 2 years ago

There's maybe several workarounds, but it would still be nice to have a more streamlined option :) Thanks for the suggestion, will look into it

bastienwirtz commented 2 years ago

Hi @lauridshub :wave:

Homer is strictly client side (static HTML) and will never be able to that by itself. If you find a server side service / API that could do that, we can create a custom component in Homer to interact with the service.

luixal commented 2 years ago

Something like this would do the trick, but I feel these things to be really unsecure...

https://github.com/msoap/shell2http