[Wylug-help] Sun and Linux ... Help please

Martyn Ranyard martyn at syn.co.uk
Fri Nov 28 11:43:14 GMT 2003


Quoting Dave Whiteley <d.l.whiteley at ee.leeds.ac.uk>:
> Hello Folks,

Hi Dave,

> I have inherited the administration of a Sun, running Solaris (without
> the option of changing its OS).  It does not have a keyboard and
> screen attached, but is running, and I can telnet and ssh in to it
> from my Linux box.

Good Start. :-)

> I believe that I should be using the "admintool" to manage users
> etc. on the Sun. When I try to run it I deduce that it is an X
> application.
>
> Accordingly, I do:-
>
>    DISPLAY=mybox:0.0; export DISPLAY
>    admintool

Ah... When /I/ run ssh -X user at home.hostname, it automatically sets my DISPLAY
variable for me.  Not only that, but ssh forwarded X usually is a helluva lot
higher than :0.0, for example, in my case it's :10.0.

This is a setting in sshd.conf, and is a constant that is added to the ssh
connection number (counting only ones that are doing X forwarding).  So if you
connected to the box with X forwarding, then I did, my display would be set to
home.hostname:11.0  -- NOTE that this is the machine name I'm sshing into, not
the machine name that I'm connecting from.

<snip>
> I connect, using ssh, to other Linux boxes, and can run X applications
> happily from them.
>
> Please can someone spot my deliberate mistake.

Probably it wants to be something like DISPLAY=sunbox:10.0

> Dave
--
Martyn Ranyard
Development Manager
Synergistic Software
(01937) 573 446
http://www.syn.co.uk/

----------------------------------------------------------------------
This mail sent through Horde/IMP on Synergistic Software's Mail server
All opinions expressed are that of the author and do not necessarily
represent Synergistic Software's company policy.




More information about the Wylug-help mailing list