I have a debian box running Wheezy and booting into KDE4. The computer doesn't have any monitor attached but is set to start a vnc server for remote connection when main user auto-logins on startup. The problem is that when i connect to the vnc server the resolution is messed up (something like 480x320). How can i set the desktop resolution?
Found the solution.
I had to modify my video card's modprobe file to:
Section "Device" Identifier "VNC Device" Driver "vesa" EndSection Section "Screen" Identifier "VNC Screen" Device "VNC Device" Monitor "VNC Monitor" SubSection "Display" Modes "1600x900" EndSubSection EndSection Section "Monitor" Identifier "VNC Monitor" HorizSync 30-70 VertRefresh 50-75 EndSection