Subshell Docs

Linux virtual displays

A Linux virtual display gives graphical programs in a subshell their own screen without a physical monitor.

Before you start

You'll need permission to install packages on the Linux node. Follow Preview prerequisites and setup for who can enable the settings and for the view access requirements.

Install and configure

Install the dependencies on the Linux machine that runs the subshell, even when you're viewing it from another device.

  1. Use the Linux distribution's package manager to install Xvfb, x11vnc, and xauth. Package names vary by distribution; the node needs the Xvfb, x11vnc, and xauth commands available on its execution account's PATH. Install the browser or GUI app you want to use separately.
  2. Follow Enable node features to allow virtual displays with Xvfb + VNC on this node. Once its requirements are ready, launch a subshell as described below.

The display runs with the subshell's execution account permissions. It isn't a sandbox for applications, and its local VNC listener has no separate password. Don't enable virtual displays on a host shared with untrusted local OS users, and don't publish the listener through a port forward. See Preview security.

Launch and open a display

  1. Launch a subshell on that node with Virtual display enabled. Choose Xvfb + VNC under Display provider, or keep Node default if it selects that provider.
  2. Launch your browser or GUI app from that subshell so it inherits the display settings.
  3. Use the window icon in the subshell header, then choose Virtual display. You can see and control the screen in its own workspace tab.
A maximized Virtual display tab showing the Northstar website in a browser running on the node.
The virtual display shows the browser running on the node. Keyboard and pointer input require edit access.

See Preview prerequisites and setup to save the display choice in a preset or understand how provider changes affect restarts.

Turn the display on or off later

You don't have to start a new subshell to change its screen. Open the Web previews & screens dialog from the icon in the subshell header, then switch Virtual display:

  • Turning it on restarts the subshell's process so it comes back with the new screen. The subshell keeps its history, and the conversation picks up again if the agent can resume it.
  • Turning it off closes the screen right away and frees the memory and CPU it was using. Apps on the screen close, but the subshell keeps running.
  • To change the size or the provider, turn the display off and then on again. The dialog always uses the launch default size, so there's no size to pick here. When the node offers more than one provider, choose one under Display provider before you turn the display on.

Both changes need edit access to the subshell and an online node, and the node's own display settings still apply. One thing to remember: a program that was already running keeps pointing at the old display until you restart the subshell again.

Edit on GitHub

Last updated on

On this page