VNC Server

Rick Stevens rstevens at vitalstream.com
Tue Jul 6 17:30:54 UTC 2004


Graeme Nichols wrote:
> Hello Rick, I am having trouble with Evolution at the moment where I am
> unable to reply to your post containing the instructions to get VNC
> working. I have tried four times so far and all messages have been
> empty. Perhaps the time has come to invoke yum and update Evolution :-)
> 
> Anyway, to continue... The xstartup file created by the first invocation
> of vncserver did not contain the line 'unset SESSION_MANAGER'. After
> inserting that line I managed to get the XWindow I was expecting.
> However, to get the vncviewer to work I had to use the following
> command:- 'sudo vncviewer -via barney barney:1' Without the 'sudo' it
> failed with the 'unable to read password' error. Using sudo it asked for
> root's password on barney, then my user password on barney and it all
> worked.

On the remote end, you have to run "vncserver" or "xvnc" as the user you
intend to log in as remotely.  You probably ran vncserver on the remote
end as root, so you have to be root at the local end, too.  The "can't
read password" error is caused by the vnc server running as root and you
trying to log in as a mortal user.  The mortal user you tried to log in
as probably doesn't have a ~/.vnc/passwd file.

> One thing I would like to change if I can is the size of the TightVNC
> window that comes up. The argument 'fullscreen' defaults to 'no' but
> that is almost as big as fullscreen. It is larger than the screen size
> and results in a scroll bar right and bottom. Is there a way to set the
> screen size?

You mean the local VNC window is smaller than the screen size of the 
remote end, hence you have scroll bars.  You can either turn on
fullscreen (which really only works if your local screen size is the
same or larger than the remote end) or you can use the "-geometry"
option to specify your local window size.  If you use a 1280x1024
display locally, fullscreen mode is essentially:

	-geometry 1280x1024x0x0

> Thanks for all your help so far.

No problem.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-      Cuteness can be overcome through sufficient bastardry         -
-                                         --Mark 'Kamikaze' Hughes   -
----------------------------------------------------------------------





More information about the Redhat-install-list mailing list