This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Problem with running X apps
- From: "Kerry Sanders" <ksanders at mindspring dot com>
- To: <cygwin-xfree at cygwin dot com>
- Date: Mon, 5 Aug 2002 18:50:23 -0500
- Subject: RE: Problem with running X apps
- Reply-to: cygwin-xfree at cygwin dot com
Thanks Thomas. This is the same thing that Jim posted earlier.
What I needed was the -X on the ssh command. However, does the
encryption really slow stuff down that much? I is really slow running X
apps like KDE, etc. over my 100 Base-T network.
-----Original Message-----
First, I would recommend against running XWin directly. Use the
provided
startxwin.bat batch file instead and then run the ssh command from an
xterm.
However, if you REALLY want to do it this way, you need to set the
DISPLAY
variable FIRST, then launch XWin, then run ssh with X forwarding turned
on:
cygwin> export DISPLAY=locahostname:0
cygwin> XWin <options> &
cygwin> ssh -X -l remoteusername remotehostname
Once logged into the remote host, you can start running your Xclients
right
way. No need to set the DISPLAY variable yourself (or run xhost). Ssh
will
have already taken care of all of that. In fact, setting the DISPLAY
variable as you describe below CIRCUMVENTS THE SSH CONNECTION ENTIRELY
and
sends your XWindows traffic unencrypted!
By the way, if the file .Xauthority exists in your home directory on
localhostname, it might cause problems. If you find you are getting
errors
that refer to "MIT-MAGIC-COOKIE", then delete the .Xauthority file and
try
again.