Re: Xlib connection refused
thom wrote: > 192.168.205.98 is the IP address of my xterm server. That is my windows > box. No, server is Linux server, not X server. > If I don't set display, it ends up pointing to localhost, which is > not what I want to do. Wrong, localhost:10.0 is the correct value, and it is the one ssh sets for a good reason: ssh itself is listening to the respective port on the remote side, and will tunnel all the X protocol, encrypted and compressed or not, to the client side, where it will connect to localhost:0.0 which is where your Cygwin X server is listening. -- René Berber -- 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/
Re: Xlib connection refused
Hmmm. That seemed to fix it. When it came up localhost, I said, Wow! That's wrong and did something else without testing it. Thanks for all the help! > [EMAIL PROTECTED] schrieb: >> I don't understand what >>> Then you have to set DISPLAY before you start ssh but not inside the >>> ssh >>> session. >> >> means. I'm setting DISPLAY in my .bash_profile to point back to my >> windows >> box. > > You shouldn't do that, if you want to tunnel X11 through ssh. > ssh will set it for you. > > > -- > 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/ > > -- 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/
Re: Xlib connection refused
[EMAIL PROTECTED] schrieb: > I don't understand what >> Then you have to set DISPLAY before you start ssh but not inside the ssh >> session. > > means. I'm setting DISPLAY in my .bash_profile to point back to my windows > box. You shouldn't do that, if you want to tunnel X11 through ssh. ssh will set it for you. -- 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/
Re: Xlib connection refused
I don't understand what > Then you have to set DISPLAY before you start ssh but not inside the ssh > session. means. I'm setting DISPLAY in my .bash_profile to point back to my windows box. > [EMAIL PROTECTED] schrieb: >> Sorry that I haven't answered this question yet. I am following the >> directions on the cygwin site, so I'm doing: >> >> ssh -Y -l username remote_hostname_or_ip_address >> >> Then typing xterm& to open it on my windows client. > > Then you have to set DISPLAY before you start ssh but not inside the ssh > session. > > > -- > 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/ > > -- 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/
Re: Xlib connection refused
[EMAIL PROTECTED] schrieb: > Sorry that I haven't answered this question yet. I am following the > directions on the cygwin site, so I'm doing: > > ssh -Y -l username remote_hostname_or_ip_address > > Then typing xterm& to open it on my windows client. Then you have to set DISPLAY before you start ssh but not inside the ssh session. -- 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/
Re: Xlib connection refused
192.168.205.98 is the IP address of my xterm server. That is my windows box. If I don't set display, it ends up pointing to localhost, which is not what I want to do. > thom wrote: > >> Thanks for the help. I was setting the display variable myself. I >> changed > > Which is wrong, you shouldn't change it, ssh does the setting. > >> it to be :10.0 and it took longer before giving me the error: >> >> xterm Xt error: Can't open display: 192.168.205.98:10.0 > > And no wonder, the IP address should be 127.0.0.1 (or the IP of the > server) not > the client address. > > Many people gave you the wrong information, in short ssh takes care of > setting > DISPLAY when you use -X or -Y or both, no need for anything else. > -- > René Berber > > > -- > 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/ > > -- 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/
Re: Xlib connection refused
Sorry that I haven't answered this question yet. I am following the directions on the cygwin site, so I'm doing: ssh -Y -l username remote_hostname_or_ip_address Then typing xterm& to open it on my windows client. > [EMAIL PROTECTED] schrieb: >> Thanks for the help. I was setting the display variable myself. I >> changed >> it to be :10.0 and it took longer before giving me the error: >> > > Are you using ssh for tunneling or not? > > -- > 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/ > > -- 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/
Re: Xlib connection refused
thom wrote: > Thanks for the help. I was setting the display variable myself. I changed Which is wrong, you shouldn't change it, ssh does the setting. > it to be :10.0 and it took longer before giving me the error: > > xterm Xt error: Can't open display: 192.168.205.98:10.0 And no wonder, the IP address should be 127.0.0.1 (or the IP of the server) not the client address. Many people gave you the wrong information, in short ssh takes care of setting DISPLAY when you use -X or -Y or both, no need for anything else. -- René Berber -- 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/
Re: Xlib connection refused
[EMAIL PROTECTED] schrieb: > Thanks for the help. I was setting the display variable myself. I changed > it to be :10.0 and it took longer before giving me the error: > Are you using ssh for tunneling or not? -- 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/
Re: Xlib connection refused
Thanks for the help. I was setting the display variable myself. I changed it to be :10.0 and it took longer before giving me the error: xterm Xt error: Can't open display: 192.168.205.98:10.0 > Holger Krull wrote: >> [EMAIL PROTECTED] schrieb: >>> Xlib: connection to "192.168.205.98:0.0 refused by server >>> Xlib: No protocol specified >>> xterm XT error: Can't open display: 192.168.205.98:0.0 >>> >>> I have no idea what the 0.0 is, but the 192.168.205.98 is my windows >>> box running cygwin x server. This is set up in my DISPLAY variable >>> on the linux host. >> >> If you use ssh to tunnel the X-protocol, you shouldn't set DISPLAY, >> ssh will do that for you. > > ssh will usually set your display number to 10. So, if you type > echo $DISPLAY > on the remote system, you should see 192.168.205.98:10.0. > Since you are seeing 0 instead of 10, something is setting it incorrectly > for you. > > Are you typing ssh -X or ssh -Y? Note that -Y tends to work better with > most applications. > Are you manually resetting DISPLAY after you login? > Is there anything in your remote startup scripts that sets DISPLAY? > Including any system-wide scripts? > >> If you want to connect without a tunnel, for testing start the >> X-server with -ac to disable access control (or use xhost+) to see if >> that is the problem. > > This would just be for testing. I wouldn't use -ac normally unless you > understand the (in)security ramifications. Also, make sure you understand > on which machine you need to use xhost and how to set DISPLAY properly. > > > Cary > > > > > -- > 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/ > > -- 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/
Re: Xlib connection refused
Holger Krull wrote: > [EMAIL PROTECTED] schrieb: >> Xlib: connection to "192.168.205.98:0.0 refused by server >> Xlib: No protocol specified >> xterm XT error: Can't open display: 192.168.205.98:0.0 >> >> I have no idea what the 0.0 is, but the 192.168.205.98 is my windows >> box running cygwin x server. This is set up in my DISPLAY variable >> on the linux host. > > If you use ssh to tunnel the X-protocol, you shouldn't set DISPLAY, > ssh will do that for you. ssh will usually set your display number to 10. So, if you type echo $DISPLAY on the remote system, you should see 192.168.205.98:10.0. Since you are seeing 0 instead of 10, something is setting it incorrectly for you. Are you typing ssh -X or ssh -Y? Note that -Y tends to work better with most applications. Are you manually resetting DISPLAY after you login? Is there anything in your remote startup scripts that sets DISPLAY? Including any system-wide scripts? > If you want to connect without a tunnel, for testing start the > X-server with -ac to disable access control (or use xhost+) to see if > that is the problem. This would just be for testing. I wouldn't use -ac normally unless you understand the (in)security ramifications. Also, make sure you understand on which machine you need to use xhost and how to set DISPLAY properly. Cary -- 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/
RE: Xlib connection refused
OK, I'm not following this. How do I create an xauth entry? By the way, unsetting DISPLAY merely changed the error. Thanks. > Sounds to me like a permission problem: > Does it work if You use DISPLAY=:0? > Do You have set up xauth and created an entry like: > xauth list > hostname/unix:0 MIT-MAGIC-COOKIE-1 e43b9761413c7718696720152f5e1c62 > > maybe it would help to create an additional entry for 198.168.205.98:0 > or hostname.domain.country:0 > like > DISPLAY=:0 xauth add 198.168.205.98:0 . e43b9761413c7718696720152f5e1c62 > > HTH, matthias > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, January 16, 2007 5:11 PM > To: cygwin-xfree@cygwin.com > Subject: Xlib connection refused > > OK, I've been following the directions at: > http://x.cygwin.com/docs/ug/using-remote-apps.html for ssh connection. > I've gotten everything setup, but when I try to start and xterm, I get > the > following message: > > Xlib: connection to "192.168.205.98:0.0 refused by server > Xlib: No protocol specified > xterm XT error: Can't open display: 192.168.205.98:0.0 > > I have no idea what the 0.0 is, but the 192.168.205.98 is my windows box > running cygwin x server. This is set up in my DISPLAY variable on the > linux host. > > Any ideas? > > Thanks. > > > -- > 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/ > > > -- > 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/ > > -- 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/
RE: Xlib connection refused
Sounds to me like a permission problem: Does it work if You use DISPLAY=:0? Do You have set up xauth and created an entry like: xauth list hostname/unix:0 MIT-MAGIC-COOKIE-1 e43b9761413c7718696720152f5e1c62 maybe it would help to create an additional entry for 198.168.205.98:0 or hostname.domain.country:0 like DISPLAY=:0 xauth add 198.168.205.98:0 . e43b9761413c7718696720152f5e1c62 HTH, matthias -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 5:11 PM To: cygwin-xfree@cygwin.com Subject: Xlib connection refused OK, I've been following the directions at: http://x.cygwin.com/docs/ug/using-remote-apps.html for ssh connection. I've gotten everything setup, but when I try to start and xterm, I get the following message: Xlib: connection to "192.168.205.98:0.0 refused by server Xlib: No protocol specified xterm XT error: Can't open display: 192.168.205.98:0.0 I have no idea what the 0.0 is, but the 192.168.205.98 is my windows box running cygwin x server. This is set up in my DISPLAY variable on the linux host. Any ideas? Thanks. -- 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/ -- 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/
Re: Xlib connection refused
Holger Krull schrieb: > [EMAIL PROTECTED] schrieb: >> Xlib: connection to "192.168.205.98:0.0 refused by server >> Xlib: No protocol specified >> xterm XT error: Can't open display: 192.168.205.98:0.0 >> >> I have no idea what the 0.0 is, but the 192.168.205.98 is my windows box >> running cygwin x server. This is set up in my DISPLAY variable on the >> linux host. > > If you use ssh to tunnel the X-protocol, you shouldn't set DISPLAY, ssh will > do that for you. > If you want to connect without a tunnel, for testing start the X-server with > -ac to disable access control (or use xhost+) to see if that is the problem. > > The 0.0 is the display and screen number. > I forgot to mention that it is of no use to set DISPLAY to the linux computer address. It has to be the address of the windows computer that is running cygwin. -- 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/
Re: Xlib connection refused
[EMAIL PROTECTED] schrieb: > Xlib: connection to "192.168.205.98:0.0 refused by server > Xlib: No protocol specified > xterm XT error: Can't open display: 192.168.205.98:0.0 > > I have no idea what the 0.0 is, but the 192.168.205.98 is my windows box > running cygwin x server. This is set up in my DISPLAY variable on the > linux host. If you use ssh to tunnel the X-protocol, you shouldn't set DISPLAY, ssh will do that for you. If you want to connect without a tunnel, for testing start the X-server with -ac to disable access control (or use xhost+) to see if that is the problem. The 0.0 is the display and screen number. -- 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/
Xlib connection refused
OK, I've been following the directions at: http://x.cygwin.com/docs/ug/using-remote-apps.html for ssh connection. I've gotten everything setup, but when I try to start and xterm, I get the following message: Xlib: connection to "192.168.205.98:0.0 refused by server Xlib: No protocol specified xterm XT error: Can't open display: 192.168.205.98:0.0 I have no idea what the 0.0 is, but the 192.168.205.98 is my windows box running cygwin x server. This is set up in my DISPLAY variable on the linux host. Any ideas? Thanks. -- 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/
Re: Xwin -clipboard => Xlib: connection refused, no protocol specifi ed
Pille, Pille Geert (bizvdm) wrote: Hallo H., When I start Xwin with the clipboard option, Xwin can be used with DISPLAY=2.1.12.24:0.0 (ie. on the IP-address of my PC). But the inbuilt clipboard seems to ignore this, and tries to contact 127.0.0.1:0.0 in vain. You are correct, the 127.0.0.1 is hard-coded. Perhaps we should try loading the DISPLAY environment variable and using that instead, but that is not currently a feature in the code. It could essentially be copied and pasted from xwinclip into the relevant portion of xc/programs/Xserver/hw/xwin. Harold
Xwin -clipboard => Xlib: connection refused, no protocol specifi ed
Hallo H., When I start Xwin with the clipboard option, Xwin can be used with DISPLAY=2.1.12.24:0.0 (ie. on the IP-address of my PC). But the inbuilt clipboard seems to ignore this, and tries to contact 127.0.0.1:0.0 in vain. I tried setting DISPLAY before launching Xwin, but no use. xwinclip does not have that problem. Is there any way to tell the clipboard which DISPLAY to use? My complete commandline for starting Xwin XWin +kb -xkbmap be -auth "$HOME/.Xauthority" -emulate3buttons -unixkill -nowinkill -rootless -clipboard Bedankt! Gerard H. Pille Senior Consultant === This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. You are explicitly requested to notify the sender of this email that the intended recipient was not reached.