VNC on local desktop

Craig White plug-discuss@lists.plug.phoenix.az.us
01 Dec 2002 13:53:33 -0700


Since things are so slow on the list, I'll post up a question...

After reading the magazine - which I've saved for quite some time, I
wanted to set up VNC so I can have a continuous session going, whether I
am on the localhost or one of the other machines around my house (yes,
it's decadent but I figured, the learning experience would be good).

The article is online <http://www.linuxjournal.com/article.php?sid=5499>

if it makes a difference, I am using RH 8

The problem that I ran into is this...
I changed /etc/init.d/vncserver as follows...

from
           "su ${display##*:} -c \"cd ~${display##*:} && [ -f
.vnc/passwd ] && vncserver :${display%%:*}\""

to
            "su ${display##*:} -c \"cd ~${display##*:} && [ -f
.vnc/passwd ] && vncserver ${ARGS} :${display%%:*}\""

and changed /etc/sysconfig/vncservers by adding a line...

ARGS="-geometry 1024x768 -alwaysshared "

all per the article...

When I try to start vncserver (service vncserver start), I get an error
that it can't find the file which I am certain is -geometry 1024 x 768
-alwaysshared instead of using those as arguments to the vncserver
command within /etc/init.d/vncserver

I have tried various combinations...i.e. removing -geometry 1024x768 and
by removing -alwaysshared and even deleted the ${ARGS} and replaced it
with -alwaysshared and the same thing error occurs...

Is anyone doing this? Does anyone see the cause of the problem?

Craig