View Single Post
  #6   (View Single Post)  
Old 29th April 2014
kpedersen kpedersen is offline
Port Guard
 
Join Date: Nov 2009
Posts: 25
Default

If you want the server part of tigervnc I couldn't get that to work when I tried. I found that an alternative was to start a new Xvfb server and run x11vnc in that. i.e

Code:
$ Xvfb :2 &
$ DISPLAY=:2 xterm &
$ DISPLAY=:2 x11vnc
You can obviously set the Xvfb geometry etc. via startup parameters.

If Xvfb is too slow for you or does not support certain extensions (i.e xrandr) you can use Xephyr to achieve the same thing.

Interestingly I found that if you have a headless server with no graphics card you cannot use Xephyr directly. However if you run Xephyr inside Xvfb, you can benefit from its speed improvements and extensions on a headless server.

Code:
$ Xvfb :2 &
$ DISPLAY=:2 Xephyr :3 &
$ DISPLAY=:3 xterm &
$ DISPLAY=:3 x11vnc
Kinda hacky but works strangely well
Reply With Quote