Re: Unablce to open VNC

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



On 2/6/07, Theo Band <theo.band@xxxxxxxxxxxxxxxxxxx> wrote:
Guillermo Garron wrote:
> On 2/5/07, William L. Maltby <CentOS4Bill@xxxxxxxxxxxx> wrote:
>> On Mon, 2007-02-05 at 15:43 -0400, Guillermo Garron wrote:
>> > On 2/3/07, Todd Cary <todd@xxxxxxxxxxxxxxxxxx> wrote:
>> > > Theo -
>> > ><snip>
>>
>> > > Todd
>> >
>> > I really like your aproach to this, so i wrote a small guide, to do
>> > it, you can read it here.
>> >
>> > http://linux.go2linux.org/?q=node/15
>>
>> Excellent! However, if some newer users follow the guide, they may
>> wonder why the lines subsequent to the "exec ..." have no effect. To
>> forestall questions you might want to mention that.
> Can you please help with that, 'cause I could be one of those users
> asking that :)
>
> regards,
>
>
exec means replace the current shell by the command specified.
Everything that follows is therefor not executed. If you remove the exec
then it will work as well, and the commands after will get executed in
sequence _after_ the vncserer dies. This might be handy is some
occasions like starting and stopping ssh agents:

cat ~/.vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
eval $(ssh-agent)
/etc/X11/xinit/xinitrc
kill $SSH_AGENT_PID
exit

Theo

thank you very much!

regards,
--
Guillermo Garron
"Linux IS user friendly... It's just selective about who its friends are."
(Using FC6, CentOS4.4 and Ubuntu 6.06)
http://feeds.feedburner.com/go2linux
http://www.go2linux.org
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux