This is the mail archive of the cygwin-xfree@cygwin.com 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: Problem with running X apps


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.


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