s g s g - 6 months ago 51
Linux Question

How do I change the vncserver default geometry?

I'm using Ubuntu 12.04 (I think it's desktop...) and running

to connect to it remotely. I can successfully set the resolution if I use the
flag when starting the server, but I want this to be the default so I don't have to include the flag on the command line. The vncserver
page suggests to use the
file so I made the following change:

#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-terminal-emulator -geometry 1400x850 -ls -title "$VNCDESKTOP Desktop" &

As you can see I tried to make the default '1400x850', a resolution which worked just fine when supplied by the command line. I've even tried setting this resolution in some other files which were the solutions on other OS's, but that didn't work either. I'm also curious about whether it has something to do with my

This should be a fairly straightforward thing, what is going wrong here?

s g s g

I needed to make a $HOME/.vncrc file with this entry: $geometry = "1400x850";

Details can be found in the documentation here: