Re: Using xauth with Cygwin-X

2005-08-19 Thread Larry Griffith

Frodak, thanks for the message.  Sorry for the slow reply, but I've been
out of town.

I was aware of all the information in the User's Guide.  Using the
xhost commands as recommended actually caused problems with the
Xserver on Solaris.  I tried the solution you recommended.  I didn't
get any error messages, but as you mentioned it sometimes doesn't
work and that was my experience.  So I'm still looking for a solution.

   Larry Griffith

- Original Message - 
From: Baksik, Frederick (NM75) [EMAIL PROTECTED]

To: cygwin-xfree@cygwin.com
Sent: Tuesday, August 02, 2005 8:36 PM
Subject: RE: Using xauth with Cygwin-X






-Original Message-
From: cygwin-xfree-owner
[mailto:cygwin-xfree-owner] On Behalf Of Larry Griffith
Sent: Monday, August 01, 2005 12:28 PM
Subject: Using xauth with Cygwin-X

I use openSSH running under Cygwin-X to communicate with a
Solaris workstation at work.  When I logged into Solaris with
SSH, I received messages that there was no valid xauth data
and that fake data would be used for X11 forwarding.  My
mail reader (exmh) also complained repeatedly about failures
of xauth authentication.

I dug out my old X manual (which goes back to X11R5) and
looked up xauth.  It suggested running this command under Solaris:

xauth -extract $DISPLAY | rsh my home PC with Cygwin xauth merge -

Since I didn't want to use rsh I did this:

1) (Solaris) xauth -extract $DISPLAY  xauth.data

2) I transferred xauth.data to the root directory under
Cygwin, using SSH.

3) (Cygwin) xauth -merge /xauth.data

The last command told me that a new /home/larry/.Xauthority
file was created, which made sense to me.  Otherwise there
were no messages.

I shut down my bash shell, closed my Cygwin X server, and
restarted everything.  I still get the same errors when I log
into the Solaris workstation.  Any suggestions?


  Larry Griffith


Here is a link to the Cygwin/X user's guide on Displaying Remote Clients.
http://x.cygwin.com/docs/ug/using-remote-apps.html

In the past I was messing X11 forwarding with a Sun box and xauth was kind
of a pain to use with telnet.

In cygwin type
xauth generate your_host:0 . trusted timeout 300
xauth nextract - your_host:0

On the remote station:
xauth nmerge -

Select the output from the cygwin command and copy it to the input of the
remote station.  Now the remote station can connect to the cygwin Xserver
for the next 5 minutes.  Also resetting the Cygwin Xserver will invalidate
any keys generated.

The biggest pain is that it doesn't always seem to work.  It seems 
sometimes
that cygwin will always reject the key.  Also, some programs will halt 
with

this kind of failure when starting (e.g. dtterm):
X Error of failed request:  BadAtom (invalid Atom parameter)
 Major opcode of failed request:  18 (X_ChangeProperty)
 Atom id in failed request:  0xda
 Serial number of failed request:  1720
 Current serial number in output stream:  1722
Others will crash while running, also with a BadAtom failure.

I didn't see these problems when using the xhost + method in the user's
guide.

YMMV

--
Frodak








--
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/



Using xauth with Cygwin-X

2005-08-01 Thread Larry Griffith

I use openSSH running under Cygwin-X to communicate with a Solaris
workstation at work.  When I logged into Solaris with SSH, I received
messages that there was no valid xauth data and that fake data would
be used for X11 forwarding.  My mail reader (exmh) also complained
repeatedly about failures of xauth authentication.

I dug out my old X manual (which goes back to X11R5) and looked up
xauth.  It suggested running this command under Solaris:

xauth -extract $DISPLAY | rsh my home PC with Cygwin xauth merge -

Since I didn't want to use rsh I did this:

1) (Solaris) xauth -extract $DISPLAY  xauth.data

2) I transferred xauth.data to the root directory under Cygwin, using
SSH.

3) (Cygwin) xauth -merge /xauth.data

The last command told me that a new /home/larry/.Xauthority file
was created, which made sense to me.  Otherwise there were no
messages.

I shut down my bash shell, closed my Cygwin X server, and restarted
everything.  I still get the same errors when I log into the Solaris
workstation.  Any suggestions?

   Larry 
Griffith





--
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: Problems running OpenGL program on Cygwin

2005-07-07 Thread Larry Griffith

Dear List Members,

   Thanks for the responses from Alexander Gottwald and Reid
Thompson.  Before I could try their suggestions out, I had a crash
and had to reinstall Cygwin.  While doing so, I noticed that the
User's Guide suggested starting Cygwin-X with the MS-DOS batch
file startxwin.bat rather than with xinit.  Now everything works just
fine and I see the cube from cube.c!

   Larry 
Griffith





Problems running OpenGL program on Cygwin

2005-07-06 Thread Larry Griffith

Dear List Members,

   I'm a newbie to Cygwin who is trying to learn how to run an OpenGL
program under Cygwin-X.  I used a standard program written by
SGI (called cube.c) that I know runs correctly under Solaris 9, using
gcc and the Mesa library, so I don't think the program itself is the
problem.

   I ran xinit to get a bash shell, cd'd to the proper directory, and ran 
the

following command:

gcc cube.c -o cube -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGLU
-lGL -lX11

which compiles correctly (thanks to some assistance from your mailing
list archives).

When I type

./cube

I get a black rectangle with no picture (and in particular no cube) and
no error messages.  I can click the shell window and press CTRL-C
to get out.

I've checked the FAQ, the user guide, and the archives (which did give
me some help), but I can't get past this point.  As already mentioned,
I know this program works on Solaris/gcc/Mesa, so I'm wondering if
there is a problem with my cygwin installation, libraries, or commands.

I'm running the latest version of the Cygwin system as far as I can tell
on Windows XP SP2.