X forwarding

View: New views
3 Messages — Rating Filter:   Alert me  

X forwarding

by SteveS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been using XWinLogon to do X forwarding over SSH, to give a gnome-session on WinXP. That all worked fine, with a startup script of:

SET PATH=c:\Program Files\xwinlogon SET DISPLAY=:0 start XWin_GL.exe :0 -clipboard -trayicon -bs -keyhook -nowinkill -nodecoration start xterm -e /usr/X11R6/bin/ssh -Y username@hostname gnome-session

I uninstalled that and put Cygwin on, and haven't been able to get it to work. I've tried various ways of starting X, but I'll just begin with one way, to keep this post short! If I run startxwin.bat, I get a run.exe dialogue box:

Error: could not start d:\cygwin\bin\xterm.exe'' -e /usr/bin/bash -l

I took that line out of the script, so it just started X, and that works. The system tray icon says 0:0.

In Cywin I then do

ssh -Y username@hostname

and get a command prompt from the Ubuntu server. Running a graphical app (eg gedit) returns

cannot open display: (null)

There are suggestions online to manually set the display, but as I understand that's incorrect if you are doing X forwarding.

Any help would be appreciated!
Steve

Re: X forwarding

by René Berber-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SteveS wrote:
[snip]

> In Cywin I then do
>
> ssh -Y username@hostname
>
> and get a command prompt from the Ubuntu server. Running a graphical app (eg
> gedit) returns
>
> cannot open display: (null)
>
> There are suggestions online to manually set the display, but as I
> understand that's incorrect if you are doing X forwarding.

The suggestion meant to set DISPLAY on the client side (Cygwin), you are correct
about not changing it on the server side.

Just do:

export DISPLAY=localhost:0:0
ssh -Y ...
--
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: X forwarding

by SteveS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your help!

René Berber-2 wrote:
Just do:

export DISPLAY=localhost:0:0
ssh -Y ...
That's got me further, thanks!  Gedit loads and gives a dialogue box:

Adding client to server's list failed, CORBA error: IDL:omg.org/CORBA/COMM_FAILURE:1.0
(repeated about 30 times)

Firefox works, but gives (at command line):

GConf Error: Adding client to server's list failed, CORBA error: IDL:omg.org/CORBA/COMM_FAILURE:1.0
(twice)

Steve