[BLUG] X connection between Solaris and Linux
Jeff Welty
blug_at_mailman.cs.indiana.edu
Wed, 23 Aug 2006 11:23:23 -0400
OK, I opened the X11 port (6000) on the Deb side - still no joy. I
figured it was an xauth problem, but I couldn't even find anything
resembling xauth on the server side to try to merge the authorization
record from the Deb side into an .Xauthority file on the server.
I will start trying the ssh tunneling strategy, even though the
documentation for installing the Cisco transport manager (which requires
Oracle) has nothing about it... Boooo obfuscated Cisco documentation!
Man, working with Solaris is about as fun as playing with a rusty bear trap.
Brian Wheeler wrote:
> On Wed, 2006-08-23 at 10:44 -0400, Jeff Welty wrote:
>> I'm thinking of offering a bounty for solving this one -
>> I'm trying to forward the display from a server running Solaris 8 to my
>> Debian workstation.
>> On the Debian box I do...
>> xhost +[Sun box IP addr]
>>
>> This adds the Sun box to the X server access list on my workstation, and
>> then on the Sun box I do...
>> setenv DISPLAY=[Debian box IP addr]:0.0
>>
>> This should send the display over to my Debian workstation, however, on
>> the Sun box I keep getting the following error message when trying to
>> run an installer script for Oracle...
>>
>> Initializing Java Virtual Machine from
>> /tmp/OraInstall2006-08-23_02-26-39PM/jre/bin/jav
>> a. Please wait...
>> Exception in thread "main" java.lang.InternalError: Can't connect to
>> X11 window server
>> using '129.79.9.41:0.0' as the value of the DISPLAY variable.
>> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>> at
>> sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:120)
>> at
>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
>> .java:58)
>> at java.awt.Window.<init>(Window.java:186)
>> at java.awt.Frame.<init>(Frame.java:315)
>> at java.awt.Frame.<init>(Frame.java:294)
>> at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
>> at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
>> at
>> oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)
>> at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)
>> at oracle.sysman.oii.oiic.OiicInstaller.main (OiicInstaller.java:599)
>>
>> I suspect the second line is the clincher, but I've included the other
>> lines as possible clues.
>> Any more pairs of eyes on this would certainly help. Many thanks in advance.
>> Jeff
>>
>
> Ok,
>
> Firstly, see if you have port 6000 (x11) open by using "netstat -at |
> grep LISTEN". My fedora box doesn't have it open because gdm has
> DisallowTCP=true in /usr/share/gdm/defaults.conf. [I don't need it, but
> more on that later].
>
> Then verify that you have port 6000 open in your firewall.
>
> It should work then, although it may get bitchy with Xauth.
>
> There is a better way to do it: SSH tunnelling.
>
> On the server side (the solaris box), set "X11Forwarding yes" in
> sshd_config. Then on your client (debian) side, set "ForwardX11Trusted
> yes" and "ForwardX11 yes" in /etc/ssh/ssh_config (ssh -Y does this per
> connection instead if you wish).
>
> Now, when you ssh to the solaris box, port 6010 is opened on the solaris
> side (that is X display #10) and routed back to your client via an ssh
> tunnel and the DISPLAY is automatically set to
> <wherever_you_came_from>:10. Since the connection is tunneled to your
> linux box, it uses the local unix socked for X11 traffic and you don't
> have to open any firewalls or have X11 listening to 6000.
>
> Do I win?
>
> Brian
>
> _______________________________________________
> BLUG mailing list
> BLUG_at_linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug
--
Jeff Welty
System Administrator
Global Research NOC
Indiana University, Bloomington
(812) 856-9770