Automatically change server geometry according to noVNC window size

2,608 views
Skip to first unread message

W. E.

unread,
Feb 25, 2015, 3:21:23 AM2/25/15
to no...@googlegroups.com
Hi!

I want to use noVNC to connect from different kinds of devices (iPad, Laptop, Desktop computer) to connect to a VNC-enabled X session on a headless Linux server. 

While this works, it is uncomfortable to use because of the different device screen sizes. If I e.g. maximize a window, I need to scroll on the iPad, in order to see all details, while it is unnecessary small on my desktop computers 27'' screen.

That's why I thought the 'DesktopSize' Pseudo Encoding, and maybe the 'Resize Remote to Window' settings could achieve this, but they don't change anything when I use tigervnc or tightvnc.

Is there any way (is there any VNC server) to automatically change the geometry of its virtual X session according to the client size? The server is headless, I'm never directly using X on it or shadowing an existing session.

Thanks in advance!

sam...@cendio.com

unread,
Oct 6, 2016, 8:02:25 AM10/6/16
to noVNC
Apologies for the very late reply! This should most definetely work in both vnc.html and vnc_auto.html. If you are still interested in this, I can help you to troubleshoot.

Lin Brown

unread,
Feb 22, 2017, 2:00:31 PM2/22/17
to noVNC
Hello,

I have the same issue as in the initial post. I am wondering how to easily resize the noVNC "desktop" size as needed. It does not seem to be possible to use mouse to drag and resize. Thanks a lot!

sam...@cendio.com

unread,
Feb 23, 2017, 2:55:34 AM2/23/17
to noVNC
What VNC server do you have? Your server needs to support the SetDesktopSize and ExtendedDesktopSize pseudo-encodings.

Game live

unread,
Mar 8, 2017, 7:59:24 AM3/8/17
to noVNC
In vmware i have ubuntu virtual machine these shows only background no icon no menu will shows

Scott Spitler

unread,
Jun 21, 2017, 1:30:54 AM6/21/17
to noVNC
I am currently using the TurboVNC server for my vnc server, websockify for my proxy. I am unable to get the screen to automatically adjust size to fit the browser window. According to "https://sourceforge.net/p/turbovnc/mailman/turbovnc-users/?viewmonth=201506&viewday=18" the server supports the desktop size flag, but I am unable to get the two to work accordingly. I am currently using the JS libraries in my own custom web viewer so if a blurb of JS could be provided or system configurations and JS I would appreciate it.

sam...@cendio.com

unread,
Jun 22, 2017, 3:13:58 AM6/22/17
to noVNC
Are you using vnc_lite.html or vnc.html? In vnc.html you should change the scaling mode setting to resize. If you are using vnc_lite.html, you will have to specify resize=true in a query parameter.
Reply all
Reply to author
Forward
0 new messages