How to get the "xrandr" command to work with vnc ?

Solution Unverified - Updated -

Issue

  • How to allow dynamic resizing of screen in vnc session ?
  • xrandr commands can be used to resize screen in Xorg, Is there any way to get xrandr to work with vnc as well ?
  • Simply placing xrandr option in the /etc/sysconfig/vncserver file and restarting vncserver service causes it to complain about how it is not recognized.

    # /sbin/service vncserver restart
    
    Shutting down VNC server: 37:metal                         [  OK  ]
    Starting VNC server: 37:metal Unable to start Xvnc, exiting
                                                            [FAILED]
    

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • vnc

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content