Looking for a way to have a web interface for shell commands
from dudesss@lemmy.ca to selfhosted@lemmy.world on 15 Apr 09:34
https://lemmy.ca/post/63372330

For example, if I want a website where users can I signin to choose options such as changing or restarting a Docker container. Or various other systems level options available from a web interface.

I’m looking for something in the cloud but also something self hosted at home.

#selfhosted

threaded - newest

bruce965@lemmy.ml on 15 Apr 09:49 next collapse

Sorry, not an answer to your exact question… Dockge might be the answer if you need a web UI to manage Docker containers.

If you need something more specific, like a button dashboard to run custom commands, perhaps you could build your own with Vite (Node.js). You will need to understand basic HTML, CSS and JavaScript. (EDIT: OliveTin makes more sense.)

As for authentication, you could configure a basic authentication on your favourite reverse proxy (such as Nginx), or look for something more advanced such as OIDC/OAuth2 through Keycloak.

bonenode@piefed.social on 15 Apr 09:51 next collapse

For a button dashboard as you put it I once got OliveTin recommended, haven’t yet set it up though.

dudesss@lemmy.ca on 15 Apr 12:50 collapse

This is exactly what I wanted. Thank you!!!

Jozav@lemmy.world on 15 Apr 11:20 next collapse

In the same(?) category: Portainer

dudesss@lemmy.ca on 15 Apr 12:52 collapse

OliveTin is exactly what I wanted (tbh, was heard to read with your crammed together text, thanks as well @bonenode@piefed.social for helping me spot it! )

Keycloak, Pocket ID, Authentik, anything of the sort does sort great as well! Thanks for the recommendation for the follow-up step! :-)

bruce965@lemmy.ml on 15 Apr 13:00 collapse

Ah! Sorry for the textdump, and thanks for the feedback. I’ll keep it in mind in the future.

Strit@lemmy.linuxuserspace.show on 15 Apr 10:13 next collapse

This sounds exactly like what Cockpit was made to do…

Voroxpete@sh.itjust.works on 15 Apr 10:16 next collapse

100%, Cockpit is what you’re looking for OP.

dudesss@lemmy.ca on 15 Apr 10:48 collapse

Too many features. I should have mentioned that I want it very limited. For example, to give to clients to restart game servers.

Edit: Cockpit is great! But to give remote access to full user-level shell access is not something I want. It might have access to other features I would want to avoid like installing software. Instead I want strictly it to commands like,

  • Backup,
  • Restore,
  • Restart
  • Update,
  • Modify config files,
  • File download,
  • File upload
skankhunt42@lemmy.ca on 15 Apr 11:04 next collapse

You’re better off telling us the problem you’re trying to solve than come to us with a solution to something we have no idea about.

If you describe the problem first, we might have a better idea than a web shell, which in all honesty is a bad idea.

lka1988@lemmy.dbzer0.com on 15 Apr 14:27 collapse

This. Sounds like a classic example of the XY Problem

Strit@lemmy.linuxuserspace.show on 15 Apr 11:43 next collapse

You don’t have to use all the features. Restarting a service is a pretty broad feature. If it’s too broad, You will likely have to code something yourself.

atzanteol@sh.itjust.works on 15 Apr 12:07 next collapse

Too many features

What does that even mean? Are you looking for a bespoke system that does exactly what you want and nothing else?

4am@lemmy.zip on 15 Apr 14:38 next collapse

Pterodactyl or Pelican if what you might want if you are looking to give tenants access to game servers on your own infrastructure.

pelican.dev

pterodactyl.io

prettybunnys@piefed.social on 15 Apr 19:00 collapse

Cockpit

black_flag@lemmy.dbzer0.com on 15 Apr 10:42 next collapse

Don’t do that lmao

dudesss@lemmy.ca on 15 Apr 10:48 collapse

I’m going to do it

muxika@piefed.muxika.org on 15 Apr 11:02 next collapse

Maybe something like Guacamole with multiple users configured to ssh into a terminal. You can lock down permissions so users can only SSH automatically where they’re supposed to go.

JustEnoughDucks@slrpnk.net on 15 Apr 12:23 next collapse

I started using Dockhand for container administration. It is pretty new, but works well.

You can view container logs, update/restart containers, and run a terminal inside of the containers, but not the host system.

You can create a new socket proxy just for the containers that you want to give them access to maybe.

talkingpumpkin@lemmy.world on 15 Apr 13:46 collapse

Does www.olivetin.app look like what you have in mind?

irmadlad@lemmy.world on 15 Apr 14:00 next collapse

+1 for OliveTin

kayzeekayzee@lemmy.blahaj.zone on 15 Apr 14:58 collapse

+1 for OliveTin also