This is a discussion on SSH tunneling of the Oracle Installer within the Linux Operating System forums, part of the Unix Operating Systems category; --> I cant get the Oracle runInstaller command to display on my remote laptop. I'm using a combination of Putty ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I cant get the Oracle runInstaller command to display on my remote laptop. I'm using a combination of Putty and exceed to login into a RedHat 4 Server. Inside Putty I've enabled X11 forwarding, with the display set to localhost:0. I've got exceed running as my Xserver locally. On the server itself in /etc/ssh/sshd_conf X11Forwarding is also turned on. I log into the box (which is running 2.6.9-11.ELsmp) and everything looks good, the display is set correctly and xauth list is returning what I think is the right magic cookie information. Every thing is great.I launch the Oracle installer I get the following error message: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2005-10-07_10-29-39AM. Please wait ...[oracle@qa2db01 ~]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native method) at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(Unknown Source) at java.awt.Window.init(Unknown Source) at java.awt.Window.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at oracle.ewt.popup.PopupFrame.<init>(Unknown Source) at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source) at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init >(OiocOneClickInstaller.java:378) at oracle.sysman.oio.oioc.OiocOneClickInstaller.main( OiocOneClickInstaller.java:2091) Any ideas as to how to go about finxing this issue? Also on another note this machine is locked down pretty good to the point, and does not have alot of RPMS loaded, perhaps I'm missing a vital peice to the puzzle. I've tested this same configuration on a different fully loaded machine and I can pop back xclock, so I know there is no network equipment that is not allowing me to do this. Also the sshd config files are the same on both servers. currently here is what I got in terms of xorg packages (which I've been adding and adding trying to get this to work: rpm -qa |grep xorg xorg-x11-libs-6.8.2-1.EL.13.6 xorg-x11-deprecated-libs-6.8.2-1.EL.13.6 xorg-x11-font-utils-6.8.2-1.EL.13.6 xorg-x11-xfs-6.8.2-1.EL.13.6 xorg-x11-xauth-6.8.2-1.EL.13.6 xorg-x11-Mesa-libGL-6.8.2-1.EL.13.6 xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.6 |
| |||
| On Fri, 07 Oct 2005 18:59:01 +0200, Bonk <bonk.brennan@gmail.com> wrote: > I cant get the Oracle runInstaller command to display on my remote > laptop. > > I'm using a combination of Putty and exceed to login into a RedHat 4 > Server. Inside Putty I've enabled X11 forwarding, with the display set > to localhost:0. I've got exceed running as my Xserver locally. On the > server itself in /etc/ssh/sshd_conf X11Forwarding is also turned on. Is that the right way to do it? I have never used X forwarding, but I thought that sshd on the remote computer would create a unix fifo similar to the one X creates, /tmp/.X11-unix/X0 onmy computer right now, but usually with a higher number than 0, perhaps /tmp/.X11-unix/X1. Then the programs that run on the remote computer and want to display on your local putty-host, must have DISPLAY=:1 or unix:1 or unix:1.0, etc, and sshd/putty takes care of forwarding between the fifo and your local X server. > I log into the box (which is running 2.6.9-11.ELsmp) and everything > looks good, the display is set correctly Do you mean that echo $DISPLAY responds as you expect, or do you mean that you try some X applications and see their windows pop up on your laptop? > and xauth list is returning > what I think is the right magic cookie information. Every thing is > great.I launch the Oracle installer I get the following error message: > > > Preparing to launch Oracle Universal Installer from > /tmp/OraInstall2005-10-07_10-29-39AM. Please wait ...[oracle@qa2db01 > ~]$ Exception in thread "main" java.lang.InternalError: Can't connect > to X11 window server using 'localhost:10.0' as the value of the DISPLAY ^^^^ (I hope you use a fixed-width font so you can see what I am pointing out, the "10.0".) Seems at least part of what I said is honored, 10 is more than 0 But "localhost" is a network address, and then sshd must *listen* (in the sense of the system call listen() ) on the appropriate network interface. You can check that using netstat: netstat -ant | grep LISTEN You should see something like tcp 0 0 0.0.0.0:6010 0.0.0.0:* LISTEN or tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN The first line means some program is listening on *all* interfaces on port 6010. X by convention listens on port 6000 + display number. The second line listens on the interface that has address 127.0.0.1. That is the loopback interface, and is safer, since only local processes can connect. You could also do lsof -p $(pidof sshd) You should see something like sshd 2530 root 3u IPv4 7968 TCP *:6010 (LISTEN) Again, "*" after TCP means *any* interface. If you find a symbolic name after the : like in TCP *:x11, then look for that name in /etc/services. If you don't find any TCP, but instead something similar to sshd 2530 root 11u unix 0xcd851b40 8162 /tmp/.X11-unix/X10 then you should construct the DISPLAY value from then name of this file. -Enrique |
| |||
| "Bonk" <bonk.brennan@gmail.com> wrote in message news:1128704341.073259.309140@g44g2000cwa.googlegr oups.com... > Preparing to launch Oracle Universal Installer from > /tmp/OraInstall2005-10-07_10-29-39AM. Please wait ...[oracle@qa2db01 > ~]$ Exception in thread "main" java.lang.InternalError: Can't connect > to X11 window server using 'localhost:10.0' as the value of the DISPLAY > variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native method) > at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(Unknown > Source) > at java.awt.Window.init(Unknown Source) > at java.awt.Window.<init>(Unknown Source) > at java.awt.Frame.<init>(Unknown Source) > at oracle.ewt.popup.PopupFrame.<init>(Unknown Source) > at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source) > at > oracle.sysman.oio.oioc.OiocOneClickInstaller.<init >(OiocOneClickInstaller.java:378) > at This is why Oracle installers suck. They're amazingly huge bundles, approximately 3 Gigabytes in the latest 10.0 download, fragmented into chunks of a tarball instead of into individual tarballs and requiring hand merging. And their insistence on using Java for local file system operations (like installing local files!) is begging for grief. I'm not happy about Oracle, and use MySQL/Postgresql where possible. But that aside, may I suggest that you get a more compatible X server? While the one in eXceed may be faster than the one in CygWin, CygWin's X server is also built from Xorg's published tarballs, and is used for the latest Fedora releases. |
| ||||
| Figured out my issue. 1. I only needed the xdm and xauth rpms installed to tunnel the X traffic via ssh 2. I modified /etc/hosts to include the line 127.0.0.1 localhost.domain localhost sshd_config was setup properly (I.E. ForwardX11 yes) and once hosts was modified every thing worked like a magic cookie! I hate simple problems, as they usually take the most time to resolve. Thanks everyone for your input! |
| Thread Tools | |
| Display Modes | |
|
|