This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: ForwardX11 not working


Mirko Vukovic schrieb:

>>>  - I have ran ssh-host-config and set CYGWIN=ntsec server.  I said yes
>>> to privilege separation, and I have an sshd user in /etc/passwd
>>>  - I have set DISPLAY=localhost:0.0 in .bash_profile
>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Don't do this.

Really don't. Just give it a try.


> I am confused with the discussion in the this post:
> http://sourceware.org/ml/cygwin-xfree/2002-10/msg00071.html.  Those
> guys specifically tell to have DISPLAY defined before an ssh login.

If you read that post more carefully you will see your mistake.
You need to set DISPLAY on the computer you're X11 Server is runninng before you use ssh to login to your Windows Computer. That is to let ssh know which connection to forward. 'Inside' the ssh connection the forwarding mechanism will set DISPLAY. If you change it, it will be wrong. 


> Naively, I am assuming that each machine should have a DISPLAY set,
> for the simple reason that when I am physically at that machine, I
> need display in order to open x-windows.

That will not work.
If you change the role of the computers you can not fix DISPLAY in .bash_profile. That is not a good idea anyway, because you could have more than one X Server running.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]