View Full Version : X11 and ethereal
cybermill
02-24-2003, 01:11 AM
I installed apple's x11 and my first gui app I have installed is ethereal. I can log into my linux box and run ethereal, but I can't seem to be able to login to my macosx box and and remotely run ethereal. I get the following error. Am I missing something?
Gtk-WARNING **: cannot open display:
I used fink from the command line to install ethereal and it works locally but not remote command line.
corinthian
02-28-2003, 12:44 AM
Are you logging in using the syntax "ssh -x hostname"?
The -x argument activates automatic screen forwarding to the client.
Sorry if you already know this.
bluehz
02-28-2003, 08:31 AM
Yes - you must use the:
ssh -X user@remote_host
syntax. I have ethereal running on a linux box, displaying on my Mac via this method.
cybermill
02-28-2003, 12:08 PM
Nope sorry guys, I am starting with the -X option.
Like I said when I login to my linux server it works, when I login to my OSX box it doesn't.
thanks for the help though, till then I am still looking.
Have you guys run any X11 apps remotely OSX to OSX?
bluehz
02-28-2003, 01:03 PM
This is a long shot - but make sure you have a clean shell. What this means is that when you login to your remote box or wherever - you need to make sure the remote box is only sending back the information necessarry to invoke the connection. I had a bugger of a time once with this problem... I had changed my prompt to be one of those fancy two-line prompts and that constitutes and unclean shell. Returning the prompt to the single-line prompt cleared it right up.
cybermill
05-20-2003, 04:50 AM
I got it to work by doing the following first I used xhost to add my machine to the allowed host, ie xhost 192.168.1.3
then once I logged in I set the display environment variable
setenv DISPLAY 192.168.1.3:0
some apps let you do it on the fly like xeyes:
xeyes -display 192.168.1.3:0
to open it on the remote computer do this:
xeyes -display :0
if they are running x11 then the eyes will pop up on the remote computer.
I was able to remotely launch ethereal and openoffice but only after using the "setenv DISPLAY" command. Very nice!!!
bluehz
05-20-2003, 05:33 AM
When you use a command like this:
ssh -X user@remote_host
the "-X" CLI switch takes care of the display option for you. Sort of a pre-packaged "setenv DISPLAY...". It should be the same as doing what you are doing.
gaelicwizard
05-20-2003, 06:30 AM
By default MacOSX disables X11 forwarding. you must enable it in /etc/sshd_config (or similar I'm not suree the exact name and I'm too lazy to go check)
Hope this helps!
JP
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.