Solved

NEWBE: starting remote X programmes: cannot open display

Posted on 2002-03-22
2
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:bearware
ID: 6889342
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
ID: 6889668
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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