How do I change the vncserver default geometry?

19,952

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

Details can be found in the documentation here (note that this is not what the man page suggested):

/usr/share/doc/vnc4server/examples/vnc.conf.gz

Share:
19,952

Related videos on Youtube

s g
Author by

s g

Code bot.

Updated on July 04, 2022

Comments

  • s g
    s g almost 2 years

    I'm using Ubuntu 12.04 (I think it's desktop...) and running vncserver to connect to it remotely. I can successfully set the resolution if I use the -geometry 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 man page suggests to use the $HOME/.vnc/xstartup 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 X configuration

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

  • mcmillab
    mcmillab about 5 years
    where's the link?
  • mcmillab
    mcmillab about 5 years
    Thanks for that. Your answer says "Details can be found in the documentation here", but where is "here"?
  • mcmillab
    mcmillab about 5 years
    helpful, thanks. Btw, googling this stuff is how I got to your answer, which is to google further.
  • Cameron Hudson
    Cameron Hudson almost 5 years