Ethereal-users: Re: [Ethereal-users] fixed X11 problem but...

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Claude V. Lucas" <claudel@xxxxxxxxx>
Date: Fri, 12 Mar 2004 10:21:46 -0800
On 3/12/04 7:43 AM, "Deadcow" <malnourishedcow@xxxxxxxxxxx> wrote:

> I set the display and after doing echo $DISPLAY i get...
> 
> Deadcow:~ apple$ echo $DISPLAY
> :0
> 


Hi

I added this little piece of script to my .tcshrc


if ( ! ${?SSH_CLIENT} == 0 ) then
set REMOTEHOST=` echo $SSH_CLIENT | cut -f1 -d " " `
else
set REMOTEHOST = 127.0.0.1
endif
setenv DISPLAY "$REMOTEHOST":0

If I'm SSHing in from somewhere, then this picks up the
proper IP address and sets DISPLAY accordingly. If I'm
running locally it sets the DISPLAY variable to 127.0.0.1:0.

Seems to work for me. Give it a go. If you don't use (t)csh
you'll need to translate it.

Claude