[Wylug-discuss] How to connect to X-server

John Hodrien johnh at comp.leeds.ac.uk
Fri Oct 15 12:55:32 BST 2004


On Fri, 15 Oct 2004, Peter Holtwick wrote:

> Hello, I need a quick hint:
>
> At work I wanted to introduce Linux, because they have got loads of Sun
> boxes but only Windows to administer them (with a Win-X-server sometimes).
>
> I booted a SuSE Live-CD and everything was fine, they got impressed, but
> to start xclock on Sun and having the output on Linux didn't work. Display
> variable was set to <IP>:0, I entered xhost, but the app kept complaining
> 'can not connect'.
>
> uname -a says: SunOS liveux26 5.8 Generic_108528-27 sun4u sparc
> SUNW,Sun-Fire-280R
>
> Did I something wrong? I couldn't try much in this presentation
> unfortunately..

Assuming you've got a capable OpenSSH setup, you should just use

ssh -X sun_machine

the DISPLAY variable should auto set to something like localhost:10.0

Things should "just work" as X gets tunnelled over the ssh connection.

You didn't say how you're connecting though, so there's some assumptions going
on there.

The way you are doing it doesn't work on a current Fedora box, as X is run
with -nolisten tcp which prevents that technique from working.

jh

--
"Madam, you have between your legs an instrument capable of giving pleasure to
  thousands - and all you can do is scratch it."
                                           -- Sir Thomas Beecham (to a cellist)




More information about the Wylug-discuss mailing list