So I followed this guide in order to be able to remotely connect to a new VPS (running Ubuntu 18.04 LTS) and have a GUI since I need to perform certain actions that require a visual interface.

Anyway, it worked fine and I can now run a VNC server and connect to it, however the resolution is very low (looks like 1024 x 768), and I cannot work out how to increase it.

There are no physical screens since it is a VPS, which means that xrandr doesn't work, can't even create virtual screens using it because whatever I try I seem to end up at Can't open display.

Does anyone know how I can increase the resolution (to something like 1920 x 1080)?

  • @steeldriver Yes! That's exactly what I needed. Thank you very much. – Kaspar Lee Jun 20 '18 at 14:19

I'm not sure about the resolution, but you can set the desktop width and height on the vncserver command line. From man vncserver:

   -geometry widthxheight
          Set desktop width and height.

So for example

vncserver -geometry 1920x1080

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.