Solved

NEWBE: starting remote X programmes: cannot open display

Posted on 2002-03-22
2
221 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

770 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