How do I change the default vncserver geometry?
I am using Ubuntu 12.04 (I think this is the desktop ...) and launching vncserver
to connect to it remotely. I can successfully set the permission if I use the flag -geometry
when starting the server, but I want this to be the default so I don't need to enable the flag on the command line. The vncserver page man
suggests using a file $HOME/.vnc/xstartup
, 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 create the default "1400x850" resolution, which worked fine when given the command line. I even tried to set this permission in some other files that were solutions for other OS, but that didn't work either. I am also wondering if this has something with my configX
It should be pretty simple, what's going wrong here?
source to share
I needed to make a file $HOME/.vncrc
with this entry:$geometry = "1400x850";
Details can be found in the documentation here (note that this is not what the page suggested man
):
/usr/share/doc/vnc4server/examples/vnc.conf.gz
source to share