Re: VNC local/remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Jim Kaufman		mailto:jmk@linuxforbusiness.net
Linux Evangelist	cell: 612-481-9778		
public key 0x6D802619	fax:  952-937-9832
http://www.linuxforbusiness.net



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux