Looking for a way to have a web interface for shell commands

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.

41 points · 22 comments · view on lemmy.world

22 Comments

Strit@lemmy.linuxuserspace.show · 29 pts · 133d (9 replies)

This sounds exactly like what Cockpit was made to do...

Voroxpete@sh.itjust.works · 12 pts · 133d

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

dudesss@lemmy.ca · -5 pts · 133d (7 replies)

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 · 27 pts · 133d (1 reply)

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 · 8 pts · 133d

This. Sounds like a classic example of the XY Problem

Strit@lemmy.linuxuserspace.show · 9 pts · 133d

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 · 8 pts · 133d

Too many features

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

Magnum@infosec.pub · 4 pts · 133d

Just host a webpage with 7 buttons triggering off your shell scripts.

prettybunnys@piefed.social · 1 pts · 133d

Cockpit

4am@lemmy.zip · 0 pts · 133d

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

https://pelican.dev/

https://pterodactyl.io/

talkingpumpkin@lemmy.world · 19 pts · 133d (2 replies)

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

kayzeekayzee@lemmy.blahaj.zone · 3 pts · 133d

+1 for OliveTin also

irmadlad@lemmy.world · 3 pts · 133d

+1 for OliveTin

black_flag@lemmy.dbzer0.com · 5 pts · 133d (1 reply)

Don't do that lmao

dudesss@lemmy.ca · 11 pts · 133d

I'm going to do it

muxika@piefed.muxika.org · 5 pts · 133d

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 · 3 pts · 133d

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.

bruce965@lemmy.ml · 3 pts · 133d (5 replies)

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 · 8 pts · 133d (1 reply)
[ removed ]
dudesss@lemmy.ca · 2 pts · 133d

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

dudesss@lemmy.ca · 3 pts · 133d (1 reply)

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 · 2 pts · 133d

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

Jozav@lemmy.world · 2 pts · 133d

In the same(?) category: Portainer