I've run the X virtual framebuffer server on Ubuntu Linux which I'd like to access its screen via VNC.
Here are my steps:
Xvfb :1.0 -screen 0 1024x768x16 &
Setup password by:
x11vnc -display :1.0 -usepw -forever -ncache 10 -autoport 5900 &
Using X display :1.0 rootwin: 0x1a9 reswin: 0x200001 dpy: 0x174f920 ... Default visual ID: 0x21 Read initial data from X display into framebuffer. initialize_screen: fb_depth/fb_bpp/fb_Bpl 16/16/2048 rfbNewFramebuffer(0x1797f20, 0x0, 1024, 9216, 5, 1, 2) ... X display :1.0 is 16bpp depth=16 true color
Then I'm accessing the VNC server from macOS by:
However the frame buffer is too wide (
1024x9216), like there are some extra 12 screens visible at the same time. Ideally I'd like to have only one display with
1024x768 screen only.
How can I correct it, so I can see the visible screen in the expected resolution?