Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am experiencing a newbie problem with my SuSE SLES10 installation. When I ssh into a remote host (SGI IRIX 6.5.24) and attempt to run an application with redirected input I get the following error:
Can't open display
I have already tried xhost +. If I ssh into another SLES9 machine, the redirected input works as normal.
I have set the DISPLAY env variable by hand to <SLES10-workstation>:0.0
That will be your problem then. When you use -X, the ports are forwarded, and the return path is done via ssh. Actually having the hostname/ip for the X server will not work, as that will be going via the firewalled route.
You should not be setting the DISPLAY by hand, and should probably end up with a display variable that is something like "localhost:xx.0" - where xx is some number (I often see something between 10 and 12).
/root# ssh -X <SLES-9-workstation>
/root# yast2
y2controlcenter: cannot connect to x server <SLES-10-workstation>:0.0
but if I set the display:
/root# setenv DISPLAY localhost:10.0
/root# yast2
the Yast gui runs on the remote host just fine. Is this normal behavior? If I repeat the process again, this time using ssh without the -X, I cannot run no matter what I set the display to.
Without the -X you are not forwarding anything, so I would not expect that to work.
With the -X, the display is being forwarded to a local port - this is what SSH port forwarding is all about. So you would expect the display variable on the machine you are connecting to, to have a value with localhost:10.0, as that is referencing the forwarded port.
Where is the display being set to <SLES-10-workstation>:0.0? This may be a profile script overriding the value the X-forwarding should give, which is probably localhost:10.0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.