VNC viewer with panning

Once in a while I want to take over my desktop machine from my notebook.

On my desktop I can simply run

x11vnc -loop

to fire up the VNC server.

On the notebook I can connect via

vncviewer <hostname or ip of desktop>

Because the desktop screen is much bigger than the notebook screen, I have to deal with scrollbars in the viewer application to navigate on the big desktop screen.

My notebook has Intel graphics, so I can use xrandr to enable panning on a bigger virtual screen. So I wrote this little script to connect to my desktop pc sirius:

#!/bin/sh
HOSTNAME="sirius"
LOCAL_RES="1366x768"
REMOTE_RES="1920x1200"
xrandr --output LVDS1 --panning "$REMOTE_RES"
vncviewer $HOSTNAME
xrandr --output LVDS1 --panning "$LOCAL_RES"

With this script the notebook screen switches to a big virtual screen with panning (screen window follows the mouse) before starting the remote desktop viewer. So no scrollbar handling an more :-)

Back to top

Add comment

Fill out the form below to add your own comments

User data





Add your comment