I have a virtual server, and a graphic application (an electron browser, actually) is running on it.

I actually run the command launching it with this script:

#!/usr/bin/env bash
set -e

# Start Xvfb
Xvfb -ac -screen scrn 1280x800x24 :9.0 &
export DISPLAY=:9.0

exec "$@"

It's running even while I'm not connected to ssh, in a screen. However sometimes when connecting to the server I want to access its GUI. It's different from launching it directly with ssh -X. Is there any way to access the display created by Xfvb?

1 Answer 1


You can start a VNC server on an existing X server by using x11vnc. However, if you anticipate the need to do this, you may want to use Xvnc instead of Xvfb.

  • 1
    Thank you. By running `x11vnc -display :9' on the server and putting the ip of the server into a vnc viewer, I'm able to access the display.
    – coyotte508
    Dec 19, 2016 at 1:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .