Solved

NEWBE: starting remote X programmes: cannot open display

Posted on 2002-03-22
2
208 Views
Last Modified: 2010-04-20
I've installed Suse 7.3 to my Intl PII 450. I've tried to log on to another computer through ssh. Worked fine. Only starting an graphical programme does not bring up that screen, but instead gives the message:

error: cannot open display

I have used other distro's (configured be others, that's true) and it worked fine there. Any ideas?
0
Comment
Question by:asciiman
2 Comments
 
LVL 1

Expert Comment

by:bearware
Comment Utility
1st on the local machine
run:
xhost REMOTEMACHINENAME

2st you need to set the DISPLAY variable

DISPLAY=LOCALMACHINENAME:0

Then it should work

P.S. step 1 is hooky and insecure, If your network is insecure dont use it. use xauth instead.

alternative step 1
Copy .xauth to remote machine home directory (securly)
If it does not work, you have to run xauth by hand read the manual: man xauth

0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
Hmmm, it sounds like ssh on the local SuSE box might be defaulting to not forwarding X. Check /etc/ssh/ssh_config for:
     ForwardX11 yes

If you don't want to change the default you can tell ssh to forward X when you connect with:

     ssh -X user@remote-server.dom.tld
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now