[GRASS-dev] wish error on MacOSX with GRASS+X tunneled from a Linux Box

Hi,

I am trying to run GRASS on a mini-Mac OSX system but getting a wish
error. The binary is on a Linux system, I am logging in and tunneling X
over a ssh connection. (1.5 week old 6.1 CVS)
It works fine if called from another Linux system.

Start X11 in OSX, open a X11 terminal.

mac:$ ssh -X user@linuxbox

linux:$ xeyes
[works as expected]

linux:$ grass61

I get an message that "wish isn't working, check GRASS_WISH" and it puts
me through to the text startup screen. esc,enter & I'm in.

GRASS 6.1> echo $GRASS_WISH
wish

GRASS 6.1> which wish
/usr/bin/wish

GRASS 6.1> ls -l `which wish`
/usr/bin/wish -> /usr/bin/wish8.4

GRASS 6.1> /usr/bin/wish8.4
X Error of failed request: BadAtom (invalid Atom parameter)
  Major opcode of failed request: 18 (X_ChangeProperty)
  Atom id in failed request: 0xb5
  Serial number of failed request: 12
  Current serial number in output stream: 15

(same with /usr/bin/wish8.3)

And as expected gis.m, etc don't work.

d.mon x0, d.rast do work.

??

Hamish

Hi Hamish,

Give ssh -Y user@linuxbox a try.

Kirk

On Jul 19, 2006, at 11:15 PM, Hamish wrote:

Hi,

I am trying to run GRASS on a mini-Mac OSX system but getting a wish
error. The binary is on a Linux system, I am logging in and tunneling X
over a ssh connection. (1.5 week old 6.1 CVS)
It works fine if called from another Linux system.

Start X11 in OSX, open a X11 terminal.

mac:$ ssh -X user@linuxbox

linux:$ xeyes
[works as expected]

linux:$ grass61

I get an message that "wish isn't working, check GRASS_WISH" and it puts
me through to the text startup screen. esc,enter & I'm in.

GRASS 6.1> echo $GRASS_WISH
wish

GRASS 6.1> which wish
/usr/bin/wish

GRASS 6.1> ls -l `which wish`
/usr/bin/wish -> /usr/bin/wish8.4

GRASS 6.1> /usr/bin/wish8.4
X Error of failed request: BadAtom (invalid Atom parameter)
  Major opcode of failed request: 18 (X_ChangeProperty)
  Atom id in failed request: 0xb5
  Serial number of failed request: 12
  Current serial number in output stream: 15

(same with /usr/bin/wish8.3)

And as expected gis.m, etc don't work.

d.mon x0, d.rast do work.

??

Hamish

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

I wrote:

>
> Hi,
>
> I am trying to run GRASS on a mini-Mac OSX system but getting a wish
> error. The binary is on a Linux system, I am logging in and
> tunneling X over a ssh connection. (1.5 week old 6.1 CVS)
> It works fine if called from another Linux system.

..

> Start X11 in OSX, open a X11 terminal.
> mac:$ ssh -X user@linuxbox

..

> GRASS 6.1> /usr/bin/wish8.4
> X Error of failed request: BadAtom (invalid Atom parameter)
> Major opcode of failed request: 18 (X_ChangeProperty)
> Atom id in failed request: 0xb5
> Serial number of failed request: 12
> Current serial number in output stream: 15

Kirk wrote:

Give ssh -Y user@linuxbox a try.

Yes, then it works. Thanks!

adding to mac:~/.ssh/config:
Host [hostname]
  ForwardX11 yes
  ForwardX11Trusted yes

so this will happen automatically. (hopefully)

Hamish

me:

> I am trying to run GRASS on a mini-Mac OSX system but getting a wish
> error. The binary is on a Linux system, I am logging in and
> tunneling X over a ssh connection. (1.5 week old 6.1 CVS)
> It works fine if called from another Linux system.
>
> ssh -X user@linuxbox

Kirk:

Give ssh -Y user@linuxbox a try.

me:

> That worked. thanks!

just to note that on an older version of OSX I had to use "ssh -X",
which worked.

Hamish

>>> I am trying to run GRASS on a mini-Mac OSX system but getting a wish
>>> error. The binary is on a Linux system, I am logging in and
>>> tunneling X over a ssh connection. (1.5 week old 6.1 CVS)
>>> It works fine if called from another Linux system.
>>>
>>> ssh -X user@linuxbox
>
> Kirk:
>> Give ssh -Y user@linuxbox a try.
>
> Hamish:
>>> That worked. thanks!
>
> just to note that on an older version of OSX I had to use "ssh -X",
> which worked.

Right. I think I had to start using the trusted host thing with
Tiger. I put a note to that effect on the Wiki. Trouble is I can
never remember where on the Wiki I put it.

http://grass.gdf-hannover.de/wiki/Tips_and_Tricks#Running_GRASS_remotely_on_OS_X

I tried to add each entry on the Tips_and_Tricks page to the FAQ with
[[Category:FAQ]]

but that just added the whole page, not each heading.

maybe someone on the list knows how???

Hamish

Hamish wrote:

> >>> I am trying to run GRASS on a mini-Mac OSX system but getting a wish
> >>> error. The binary is on a Linux system, I am logging in and
> >>> tunneling X over a ssh connection. (1.5 week old 6.1 CVS)
> >>> It works fine if called from another Linux system.
> >>>
> >>> ssh -X user@linuxbox
> >
> > Kirk:
> >> Give ssh -Y user@linuxbox a try.
> >
> > Hamish:
> >>> That worked. thanks!
> >
> > just to note that on an older version of OSX I had to use "ssh -X",
> > which worked.
>
> Right. I think I had to start using the trusted host thing with
> Tiger. I put a note to that effect on the Wiki. Trouble is I can
> never remember where on the Wiki I put it.

http://grass.gdf-hannover.de/wiki/Tips_and_Tricks#Running_GRASS_remotely_on_OS_X

Note that this isn't specific to OSX, but to all remote X sessions
using recent versions of ssh.

--
Glynn Clements <glynn@gclements.plus.com>