On Mon, 2006-12-18 at 15:00 -0800, John Oliver wrote: > I installed a Java-based app on one of our servers for a user. I'm able > to ssh to the server, export DISPLAY=my.ip.address:0.0 do an xhost + on > my machine (Windows + Cygwin) and launch the app just fine. > > So I ran in to get the program working for him on his Red Hat WS 4 > system. I had him ssh to the server, export the display, run xhost + on > his system, and launch the app. It complains about: > > java.lang.InternalError: Can't connect to X11 window server using > '192.168.2.122:0.0' as the value of the DISPLAY variable. > > When I do an nmap of his machine, port 6000 doesn't show up. iptables > is not running. The server and both of our machines are on the same > subnet. > > Is there some X config that's telling it to not start any sockets or > something? Nothing in /etc/X11/xorg.conf is jumping out at me... >
The application I've been developing is a Java app and it can either be run locally or remotely. To run remote, I use a shell script on localhost that contains the following: ssh -X <username>@<server_name> LASADMIN where LSADMIN is a shell script on the server that runs the application. when the above command is run, the user must enter the server password on the command line (it could be done using trusted hosts and keys allowing for no password entry). The "-X" tells the client to the X display to the local machine (by default, the server is configured to do so in RH and Fedora, and the client is not). LSADMIN looks like this: #!/bin/bash cd /usr/local/LSAdmin/Release java -Xms256m -Xmx256m -jar LSAdmin.jar The application windows pop up on the display with no problem. PGA -- The information contained in this e-mail message is confidential, intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please contact [EMAIL PROTECTED] Paul G. Allen Software Engineer BSIT/SE Quake Global, Inc. 858-277-7290 x285 -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
