Changing VNC screen resolution on the fly

Did you know ...

When creating a session

% vncserver -geometry <resolution1> -geometry <resolution2>

After logging into the new VNC session,

% xrandr

and you’ll see a list of possible resolutions including <resolution1> and <resolution2>

xrandr

You can switch between the resolutions with the command :

% xrandr -s <SZ>

% xrandr -s 4                                                // will switch to resolution 1400×1050

Tip : You can create an alias in .cshrc, so that you only need to execute  % sc1

% alias sc1 “xrandr -s 13”