Table of contents

Set the size of the desktop with vncserver

Linux Aug 18, 2020 Viewed 4 Comments 0

Issue

After installing anf runing vncserver on Ubuntu, I use the VNC Viewer to connect VNC successful. But the size of window is to small. it is not convenient to view files or browse a websize.

Solution

With the vncserver option of -geometry.

-geometry widthxheight
              Specify the size of the desktop to be created. Default is 1024x768.  Can be specified as an array or scalar for geometry.

The default desktop size is 1024x768, which can be customized, such as:

  • Specify the size of the desktop as 1366x768
vncserver -geometry 1366x768
  • Specify the size of desktop 1 as 1440x900
vncserver :1 -geometry 1440x900
Updated Aug 18, 2020