I use my RasPi with DietPi as a file/media server between some other uses. When time to shut it down arrives, I ssh into it and issue a “sudo shutdown” command.
That solution is not wife friendly, so I was looking for options for a simple, web based shutdown feature and found:
Another option, if using windows, download Putty or Kitty SSH client. You can save the SSH user/pw settings for each system. All the user would need to do is double click the saved item, get automatically logged in, then type the shutdown command
If you use “KiTTY” , you can configure a Auto-login plus an automatic command and a shot-cut to direct execute this save session. Without typing anything or to close terminal windows.
Thanks guys for the comments. I was veering more into a browser based solution (the idea is for my wife to shutdown the RasPi using a phone browser from the internal home network only) rather than bind the command to a PC based solution; and due I try to be resource conscious in terms of packages installation, I’ll try to avoid setting up a L**P server just for this feature.
I’ll probably settle trying to develop an extension to something I have installed already. We’ve discussed using RPI-Monitor for that feature a while ago (https://github.com/Fourdee/DietPi/issues/238#issuecomment-203043241) but I couldn’t make it work (I can’t even get shellinabox to work… grrr)
Anyways, I’ll make sure to contribute it back if I found a suitable solution.
Thanks! Wolf.
Or a alternative way is to use a tv-remote control with e.g. Flirc USB - Flirc
No driver or additional software is need for this and flirc can acts as a keyboard.