PHP 8.2.30
Preview: vncserver.py Size: 284 B
//opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay/examples/vncserver.py

"Start virtual VNC server. Connect with: vncviewer localhost:5904"

from easyprocess import EasyProcess

from pyvirtualdisplay import Display

with Display(backend="xvnc", size=(100, 60), rfbport=5904) as disp:
    with EasyProcess(["xmessage", "hello"]) as proc:
        proc.wait()

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
245 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
266 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
736 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
589 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
772 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
284 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
0 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).