Skip to main content
This template creates a sandbox with a full Ubuntu 22.04 desktop environment, including the XFCE desktop, common applications, and VNC streaming for remote access. It’s ideal for building AI agents that need to interact with graphical user interfaces. The template includes:
  • Ubuntu 22.04 with XFCE desktop environment
  • VNC streaming via noVNC for browser-based access
  • Pre-installed applications: LibreOffice, text editors, file manager, and common utilities
  • Automation tools: xdotool and scrot for programmatic desktop control

Template definition

The template installs the desktop environment, sets up VNC streaming via x11vnc and noVNC, and configures a startup script.

Startup script

The startup script initializes the virtual display using Xvfb (X Virtual Framebuffer), launches the XFCE desktop session, starts the VNC server, and exposes the desktop via noVNC on port 6080. This script runs automatically when the sandbox starts.
start_command.sh

Building the template

Build the template with increased CPU and memory allocation to handle the desktop environment installation. The build process may take several minutes due to the size of the packages being installed.