1

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)?

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

1 Answer 1

2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .