cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
10.71k stars 1.08k forks source link

Run an graphical app via cockpit web interface #20721

Open RmsMit opened 2 weeks ago

RmsMit commented 2 weeks ago

Page:

The cockpit terminal is great for running remote commands that are not covered by Cockpit but sometimes you want to run a graphical App remotely. For example virt-manager for more complicated VM control, Gparted for more HD control.

Single app with no setup:

A full Graphical desktop is probably not in keeping with Cockpit project ideals but what I propose here is not remote desktop but running a single app with either VNC,RDP,Spice or embedded in HTTP display of that app. There are tools that could do this with no or minimal config on either end and minimal dependencies on either end.

Being able to bookmark such "remote Applications" would also be very useful and only require minimal local to the cockpit session or even local to the Browser session config.

I suspect if the single app was a desktop-manager like kwin or the gnome equivalent it could be used for whole desktop remote view. But it should not rely on any desktop being installed to view a single app.

Possibilities to consider:

*** I am keen to assist in any way with this but am not skilled enough to do this myself (Robert@smitonline.net.au). I can document , test and even help with basic level code stuff with some direction.

RmsMit commented 2 weeks ago

This could also be used for a remote graphical install. If the live boot image had Cockpit enabled with this feature it would allow you to run the regular graphical install tool over the browser.

For a site that had iDRAC (with ability to boot remotely from local CD ISO) or some other remote boot option like network boot you could do the whole install remotely and still use the regular graphical install without the need to have specialised install tools.

martinpitt commented 2 weeks ago

We have a "GTK Broadway" demo here: https://github.com/cockpit-project/cockpit/tree/main/examples/gtk-broadway

With that you can run a single GTK application that gets rendered into a HTML canvas on a Cockpit page. It's just a demo, but we won't work on anything further in the Cockpit team, as that's not our focus.