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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.