LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-25-2008, 11:59 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
remote X display error


On a OpenSUSE 10.3 server I am trying to run a Java program which is giving me error: Can't connect to
X11 window server using ':0.0' as the value of the DISPLAY variable.

fvwm2 is running on the server. I am ssh'ing as a normal user.
I tried ssh -X username@servername and then /path/to/program.

I have the following setup on my local machine's sshd_config file :

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

when I type /path/to/program I get "DISPLAY environment variable is set to: localhost:11.0" along with lots of other Java error.

When I ssh without -X and type /path/to/program I get -

Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

I get the same error if I su - to root and type /path/to/program.

I would like to run this program as root (after I log in as a normal user) if that's at all possible.

On the OpenSUSE server I have "Allow Remote Graphical Login" on via Yast.

I have tried the following display settings both as normal user and root but no luck:

env DISPLAY 0:0
env DISPLAY 127.0.0.1:0.0

export DISPLAY=0:0
export DISPLAY=127.0.0.1:0.0
export DISPLAY=:0

fvwm2 gets started by Suse when the system starts.

Any help on this would be much appreciated. Thanks.
 
Old 05-26-2008, 05:24 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to restore any settings you have done on the server that you are unsure about. The three sshd_config X11 settings you posted are the same as mine, in large part because "X11DisplayOffset 10" and "X11UseLocalhost yes" are the default. The allow remote Graphical logins deals with xdmcp which is unrelated to ssh.

The X11 access errors you are getting are on the local terminal. That is where the X11 server is, not on the remote server. As long as X11 is installed on the remote server, you could even run in in init level 3 and still log in and run a GUI program.

Can you run a different program such as konsole or xterm after logging in as a regular user? Can you "su -" and then run Yast2? If you can do both, then is sounds like A) the firewall settings aren't causing the problem. B) The sshd_config program is OK. That seems to leave the java program.

Quote:
On a OpenSUSE 10.3 server I am trying to run a Java program which is giving me error: Can't connect to
X11 window server using ':0.0' as the value of the DISPLAY variable.

fvwm2 is running on the server. I am ssh'ing as a normal user.
I tried ssh -X username@servername and then /path/to/program.
I think that the java program might be defining DISPLAY itself, changing it from "localhost:10.0" to "localhost:0.0". Does this java program have a manpage, or a README file or a javadoc or reply to --help. See if a config file for it is changing the DISPLAY variable. It may be redefining the environment, and may even be a jail rooted service.

I'm not familiar enough with Java. Changing the DISPLAY variable may be something that is done when the java vm is setup.

Last edited by jschiwal; 05-28-2008 at 01:03 PM. Reason: removed dangling sentence. (was interupted and resumed post later)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 03:01 AM
Remote Display doublejoon Linux - General 3 06-19-2006 06:56 AM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM
"Can't open display" error when try to use a program remote heande Linux - Newbie 2 03-11-2005 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration