Re: cygwin gnome-terminal pty error

2006-03-17 Thread René Berber
Luis P Caamano wrote:

> I updated cygwin with the latest vte package and now instead of the
> pty error, gnome-terminal just hangs with no error.
> 
> I'm installing packages from kernel.org and from sunsite.dk.  Is it
> possible that the mix of packages is the problem?

>From two Cygwin mirrors?  there shouldn't be any problem.  And that is the
normal way if you use the ports repository.

> The only gnome package I selected was the gnome-terminal package,
> which then selected its pre-requisites.  Could it be that I missing
> something?

If you miss something you'll get a message about it.

> I'm running with CYGWIN="server ntsec".  Could it be that cygserver is
> not configured properly?

Not likely, but if you install syslog (comes with inet utils) you could see if
cygserver is logging messages.  If it is, and you don't have syslogd running,
the messages are in Window's event messages.

> Finally, is anybody running gnome-terminal on cygwin?

No, only in remote mode (gterminal running under Solaris).  Under Cygwin I use
eterm and it works fine.

> I'd appreciate any hint or clue about this.  Anything ...

How is gnome-terminal hanging?  You see the process but no window? or as before,
a window with no shell prompt?
-- 
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: cygwin gnome-terminal pty error

2006-03-17 Thread Luis P Caamano
I updated cygwin with the latest vte package and now instead of the
pty error, gnome-terminal just hangs with no error.

I'm installing packages from kernel.org and from sunsite.dk.  Is it
possible that the mix of packages is the problem?

The only gnome package I selected was the gnome-terminal package,
which then selected its pre-requisites.  Could it be that I missing
something?

I'm running with CYGWIN="server ntsec".  Could it be that cygserver is
not configured properly?

Finally, is anybody running gnome-terminal on cygwin?

I'd appreciate any hint or clue about this.  Anything ...

Thanks



On 2/22/06, Luis P Caamano <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've installed gnome-terminal from the sunsite.dk/projects/cygwinports
> site with no errors.  Unfortunately, when I run gnome-terminal from an
> xterm I get the error below:
>
> -
> $ gnome-terminal
>
> ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid 
> argument.
>
> ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using
> defaults: Invalid argument.
>
> ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using
> defaults: Invalid argument.
>
> ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid 
> argument.
>
> ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using
> defaults: Invalid argument.
> 
>
> I do get a gnome-terminal window with no shell prompt (white
> background).  The menu seems to work fine as I can bring the "edit
> current profile" dialog.
>
> Anybody using gnome-terminal in cygwin or seen this error?
>
> Perhaps I have a package incompatibility?  I initially installed from
> mirrors.kernel.org and then added the sunsite.dk, selected
> gnome-terminal only, and it automatically selected a bunch of
> dependencies.
>
> So far google haven't revealed any clues.  Can anybody provide me with
> some hints or clues that would help solve this problem?
>
> Any help is appreciated, thanks.
>
> --
> Luis P Caamano
> Atlanta, GA USA
>


--
Luis P Caamano
Atlanta, GA USA

--
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
Thanks Dan and Rene! It works.

But now I just realized the obvious: Only X GUIS work and not windows. 

Is this correct?

I assume I can tunnel rdesktop the same way I tunnel vnc? I guess I'll try
tunneling both vnc and rdesktop  next.

Siegfried


--
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Doug VanLeuven

Siegfried Heintze wrote:

[snip]
Why does  /usr/X11R6/bin/xclock still say "Error can't open display:"?

That looks like an explicit unsetting of DISPLAY, i.e. somewhere, probably

your

.profile/.bashrc/.bash_profile, has a "unset DISPLAY".

Starting in Cygwin:
$ echo $DISPLAY
:0
$ ssh -X [EMAIL PROTECTED]
# echo $DISPLAY
localhost:10.0

Notice that ssh created a pseudo display that will be used to tunnel the X
protocol back to your local X server.


I did 
ssh -X [EMAIL PROTECTED]

ls -A -1 | xargs grep -n DISPLAY *
echo $DISPLAY

The only place DISPLAY occurred (in the output) was in the .bash_history
file. Echo $DISPLAY gave a blank line only.

Any other suggestions?



On linux system:
/etc/ssh/sshd_config
X11Forwarding yes
/etc/ssh/ssh_config
ForwardX11 yes

On cygwin system:
/etc/defaults/etc/sshd_config
X11Forwarding yes
/etc/defaults/etc/ssh_config
ForwardX11 yes

Doug

--
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread René Berber
Siegfried Heintze wrote:
>>> [snip]
> echo $DISPLAY
>
> Any other suggestions?

Check /etc/sshd_config on the server, configure it to forward X11:

# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

After restarting sshd try:

ssh -X [EMAIL PROTECTED] 'echo $DISPLAY'
-- 
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
> > [snip]
> > Why does  /usr/X11R6/bin/xclock still say "Error can't open display:"?
> 
> That looks like an explicit unsetting of DISPLAY, i.e. somewhere, probably
your
> .profile/.bashrc/.bash_profile, has a "unset DISPLAY".
> 
> Starting in Cygwin:
> $ echo $DISPLAY
> :0
> $ ssh -X [EMAIL PROTECTED]
> # echo $DISPLAY
> localhost:10.0
> 
> Notice that ssh created a pseudo display that will be used to tunnel the X
> protocol back to your local X server.

I did 
ssh -X [EMAIL PROTECTED]
ls -A -1 | xargs grep -n DISPLAY *
echo $DISPLAY

The only place DISPLAY occurred (in the output) was in the .bash_history
file. Echo $DISPLAY gave a blank line only.

Any other suggestions?
Sieg 


--
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread René Berber
Siegfried Heintze wrote:
> [snip]
> Why does  /usr/X11R6/bin/xclock still say "Error can't open display:"?

That looks like an explicit unsetting of DISPLAY, i.e. somewhere, probably your
.profile/.bashrc/.bash_profile, has a "unset DISPLAY".

Starting in Cygwin:
$ echo $DISPLAY
:0
$ ssh -X [EMAIL PROTECTED]
# echo $DISPLAY
localhost:10.0

Notice that ssh created a pseudo display that will be used to tunnel the X
protocol back to your local X server.
-- 
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: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
[snip]

> > > However, I cannot seem to start an X session from my "ssh  -X -p 892
> > > [EMAIL PROTECTED]" session. I tried running "explorer ." and
that
> > > just hung. OK, that was not an X program.  Then I tried
> > > /usr/X11R6/bin/xclock and it said it could not open the display.
Having
> > > already done a xhost+  before running ssh I tried
export
> > > DISPLAY=:0.0 but that did not help: it still could
not
> > > open the display.
> 
> If you are using ssh -X or -Y you don't need to set DISPLAY, in fact ssh
already
> did set it.  But if you set DISPLAY then X uses the normal ports and those
will
> have to be opened/redirected on the firewall.
> 
> [snip]
> > > winCheckDisplayNumber - Cygwin/X is already running on display 0
> 
> It was running already but it's not needed unless you want to use VNC.

Well what am I doing wrong? I forgot to mention: the firewall guarding the
windows machine must have the necessary ports open or I would not be able to
establish a console window on it.

Why does  /usr/X11R6/bin/xclock still say "Error can't open display:"?

Thanks,
Siegfried


--
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: How to run _X_ Session from RH8 via ssh -X? How to run vnc via ssh?

2006-03-17 Thread René Berber
Siegfried Heintze wrote:
[snip]
> > (2) For reasons I don't understand, there was a conflict between my router's
> > sshd and my cygwin's sshd so I resolved the problem by changing the cygwin's
> > configuration file to start sshd on a different port. Now, using a Red Hat 8
> > client, I can use both rdesktop and ssh to create two different simultaneous
> > sessions on my win2003 server.
> >
> > However, I cannot seem to start an X session from my "ssh  -X -p 892
> > [EMAIL PROTECTED]" session. I tried running "explorer ." and that
> > just hung. OK, that was not an X program.  Then I tried
> > /usr/X11R6/bin/xclock and it said it could not open the display. Having
> > already done a xhost+  before running ssh I tried export
> > DISPLAY=:0.0 but that did not help: it still could not
> > open the display.

If you are using ssh -X or -Y you don't need to set DISPLAY, in fact ssh already
did set it.  But if you set DISPLAY then X uses the normal ports and those will
have to be opened/redirected on the firewall.

> > Do I need to punch a whole in my client's firewall? I doubt the will let me
> > do that.

Not if you only use ssh.  But take in consideration that you changed ssh to use
port 892, that one is the one that will have to be opened.

> > Don't I need to start the xserver?

In the remote system? no.

[snip]
> > winCheckDisplayNumber - Cygwin/X is already running on display 0

It was running already but it's not needed unless you want to use VNC.

> > (3) What about vnc? I have installed RealVNC on both the RH8 client and the
> > Windows 2003 server.

For VNC you'll need to open port 5901 (or 5801 for http); this is only for the
first window, it really is 5900 + display number, in case you have more than one
user connecting to the same machine.

> > Is there also a cygwin VNC? I don't remember seeing one.

No.

> > Can I make vnc tunnel thru ssh? Would I use the -L or the -R qualifier
> > on ssh? What would that look like?

Yes.  You have to start the VNC server and then (assuming display 1 is used):

client machine# ssh -NfC -L 5901:server.name.or.ip:15901 [EMAIL PROTECTED]

server machine# ssh -gN -L 15901:localhost:5901 [EMAIL PROTECTED]

The numbers may have to be changed (as I said above) depending on what starting
the server reported as display number or how is setup to start if you start it
from the X server.

On the client you use as VNC server "localhost:1".

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