Link to home
Start Free TrialLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

clean output from xlaunch and putty

download 1 - open ssh - http://sourceforge.net/projects/sshwindows/files/OpenSSH%20for%20Windows%20-%20Release/ -contains x11 capable ssh.exe needed at least for xming
download 2 - xming - http://sourceforge.net/projects/xming/
download 3 - putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

1. xming settings:
xlaunch
multiple windows
xterm > using ssh.exe from openssh install
parameters: -X -l yourlogin (also not certain what these switches do?)

RESULT = works, but errors:
in xterm window: typing nautilus returns the file manager but with several errors:
Xlib: extension "Generic Event Extension" missing on display "localhost:10.0".
(nautilus:17122): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
** (nautilus:17122): WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS
** (nautilus:17122): WARNING **: Can not get _NET_WORKAREA
** (nautilus:17122): WARNING **: Can not determine workarea, guessing at layout

2. putty settings:
logging printable output
keyboard function keys xterm r6
ssh x11 forwarding

RESULT = doesn't work and errors:
typing nautilus returns, "could not parse arguments: cannot open display:"
from xlaunch in black window: "warning: no xauth data; using fake authentication for data for X11 forwarding; warning: cannot convert string "nil2" to type fontstruct"
ASKER CERTIFIED SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
there is a space between --no-desktop and /
Avatar of rtod2

ASKER

with your instructions and xming, I still get the following result:

from telnet window:
no xauth data; using fake authentication data for x11 fwding
cannot convert string from 'nil2' to type fontstruct

from x11 window:
could not parse argument --no
Avatar of rtod2

ASKER

IGNORE ABOVE POST...
Below are the errors with xming upon your suggestion as I now have all the spaces and dashes in the right places.

$ nautilus --browser --no-desktop /

RESULT:
Xlib:  extension "Generic Event Extension" missing on display "localhost:11.0".
(nautilus:15337): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
(nautilus:15337): Eel-WARNING **: "nautilus-directory.c: directories" hash table still has 1 element at quit time

*Notice that the three (3) errors denoted with a ** in the top post did go away but the last error regarding the hash table is new.








Your dislpay number is 11, so you already have some other SSH session running with X11 forwarding.
Try to disconnect all unused sessions or use display number 11 in XLaunch...
What about eel_ blabla message it's an Ubuntu Keramic bug: https://bugzilla.gnome.org/show_bug.cgi?id=598918

but nautilus should work regardless of this.

Avatar of rtod2

ASKER

Thanks nopius.  Change made.  Still no luck?
Ok.

Let's try this way
2. putty settings:
logging printable output
keyboard function keys xterm r6
ssh x11 forwarding

RESULT = doesn't work and errors:
typing nautilus returns, "could not parse arguments: cannot open display:"
from xlaunch in black window: "warning: no xauth data; using fake authentication for data for X11 forwarding; warning: cannot convert string "nil2" to type fontstruct"

Are you sure that you do have X11 forwarding enabled?

Try to Save your session in Putty, then load it again (select and load),  then check SSH->X11 forwarding settings, If you don't see it, you didn't save your settings. Then set X11 forwarding, go to Session and press Save. Now you can open it.


Avatar of rtod2

ASKER

I did save using putty and x11 forwarding is saved.  Here is the resulting output from that session:

Using username "tedpenner".
tedpenner@173.203.211.110's password:
Linux painofintegrity.com 2.6.32.9-rscloud #6 SMP Thu Mar 11 14:32:05 UTC 2010 x86_64

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
You have new mail.
Last login: Sat Apr 17 16:20:52 2010 from adsl-76-202-176-32.dsl.wacotx.sbcglobal.net
$ nautilus
Could not parse arguments: Cannot open display:
$ xterm
xterm Xt error: Can't open display: localhost:10.0


Avatar of rtod2

ASKER

OK, I have to start the xserver first when using just putty.  I see now.  I did get a window but get similar dirty output:

al.net
$ nautilus
Xlib:  extension "Generic Event Extension" missing on display "localhost:11.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:11.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:11.0".
Xlib:  extension "Generic Event Extension" missing on display "localhost:11.0".

(nautilus:25172): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

** (nautilus:25172): WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS

** (nautilus:25172): WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS

** (nautilus:25172): WARNING **: Can not get _NET_WORKAREA

** (nautilus:25172): WARNING **: Can not determine workarea, guessing at layout
^C
$


Always start nautilus as
nautilus --browser --no-desktop /

dont run it without parameters. But everything else is OK. Start Xming, Start putty, in putty
nautilus --browser --no-desktop /
Avatar of rtod2

ASKER

cwg tried this from his local copy of ubuntu with the following result:

=======
cwg@AceUbuntu:~$ ssh painofintegrity.com
cwg@painofintegrity.com's password:
Linux painofintegrity.com 2.6.32.9-rscloud #6 SMP Thu Mar 11 14:32:05 UTC 2010 x86_64

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
You have mail.
Last login: Tue Apr 20 10:30:25 2010 from c-98-203-36-240.hsd1.fl.comcast.net
cwg@painofintegrity:~$ nautilus --browser --no-desktop /
Could not parse arguments: Cannot open display:
cwg@painofintegrity:~$
=======
This is the sort of thing that led me to use the nx-server. Perhaps we could look into a way of running nx-server with a lightweight display environment rather than the gnome desktop it currently brings up; wouldn't that achieve our goal of reduced overhead while retaining functionality?
Hi.

You forget -X
cwg@AceUbuntu:~$ ssh -X painofintegrity.com

Avatar of rtod2

ASKER

cwg says: AWESOME! IT WORKED.

I think if I were going to do this from windows I would just create a linux virtual machine to do it from. Probably ubuntu. Seems to me putty and xming are not easy to set up. But I may dabble with the putty stuff if you don't have luck, Ted.
Avatar of rtod2

ASKER

Not sure what you mean by that one.  I made a doc on this Chuck.  It's here:

http://docs.google.com/Doc?id=d98tbfd_238jdwv4xhk
Avatar of rtod2

ASKER

Thanks Nopius.  You helped clear that one batch of errors.
see question re-direct