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

Re: VNC local/remote



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





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