On Wed, 2002-12-11 at 11:35, James Kaufman wrote:
> On Sat, Nov 30, 2002 at 12:14:54PM -0700, Craig White wrote:
> > Struggling with trying to get a 'shared' VNC desktop - like the article
> > of the linuxjournal - January 2002
> >
> > I have set /etc/sysconfig/vncservers
> >
> > VNCSERVERS="1:craig"
> > ARGS="-geometry 1024x768 -alwaysshared "
> >
> > and changed one line in /etc/rc.d/init.d/vncserver
> >
> > from
> >
> > "su ${display##*:} -c \"cd ~${display##*:} && [ -f
> > .vnc/passwd ] && vncserver :${display%%:*}\""
> >
> > to
> >
> > # "su ${display##*:} -c \"cd ~${display##*:} && [ -f
> > .vnc/passwd ] && vncserver ${ARGS} :${disp
> > lay%%:*}\""
> >
> > and when I try to start the vnc service, it always returns that there is
> > no file - relating to the $ARGS
> >
> > What has changed? How can I slip in the '-alwaysshared' ?
> >
> > I tried substituting "-alwaysshared" instead of ${ARGS} and I get the
> > same error.
> >
> > Craig
> >
>
> Did you ever get a response? Your example above has a critical line
> commented out. To make what you want work, you should modify the
> start section of /etc/init.d/vncserver thusly:
>
> "su ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd ] &&
> vncserver :${display%%:*} $ARGS\""
>
> Note the addition of $ARGS.
-----
I note the addition of $ARGS - this time without braces...didn't matter
- still won't work - it returns an error...
# service vncserver start
Starting VNC server: 1:craig -c: missing argument
/etc/init.d/vncserver: line 31: su craig -c "cd ~craig && [ -f
.vnc/passwd ] && vncserver :1 -geometry 1024x768 ": No such file or
directory
And to answer your first question...yours has been the only response so
far...
;-(
I have beaten this thing to death and I really want to understand why I
can't make it work. If I eliminate the $ARGS variable completely...I
still can't put the arguments into that line without causing the
error...
for example...
"su ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd ] && \
vncserver :${display%%:*} -geometry 1024x768\""
same error
Craig
--
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list