Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-31-2007, 02:18 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27
Rep:
|
X11 over SSH: $DISPLAY not being set
I'm trying to get X11 over SSH working, from my laptop to my desktop. Both are running Slackware 11. The instructions and tutorials all claim it works automagically -- configure ssh_config and sshd_config, ssh -X user@remotebox, and you're gold. However, $DISPLAY is not being set when I SSH in, where any recent post on the topic says it should be. I've checked /etc/profile on the remote box, and it's not doing anything to $DISPLAY; the only two files in my home directory are .bash_history and an empty .Xauthority. This is new to me, so if there's something I might have overlooked, please tell me.
Thanks 
|
|
|
|
07-31-2007, 02:50 PM
|
#2
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
So, "echo $DISPLAY" returns nothing? Try using -Y for trusted X11 forwarding (like -X, but not concerned about Authority)
|
|
|
|
07-31-2007, 05:03 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27
Original Poster
Rep:
|
Still nothing from using -Y.
|
|
|
|
09-23-2010, 04:54 PM
|
#4
|
|
LQ Newbie
Registered: Sep 2010
Posts: 1
Rep:
|
I have gotten this same error. I have X11 running fine on the remote computer on DISPLAY :10, and when I try to ssh with -Y or -X, I can ssh in, but have no display. When I type echo $DISPLAY in ssh, I get nothing back. I have also tried logging in to ssh as root with -Y and -X, and I get the same scenario. I am running Ubuntu 10.04 x64 on the remote computer and openssh (Maemo ARM) on the client.
|
|
|
|
10-25-2010, 01:47 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2010
Location: United States of America
Distribution: rhel, suse, centos, etc.
Posts: 2
Rep:
|
ssh -Y or -X not working...
Hello,
I will use the term "server" and "client", knowing that X is Server<->Server architecture and server/client is a misnomer but it helps facilitate a discussion. There are several things that can cause this. You've ruled out the simple ones: - DISPLAY is not set on client (you explicitly set it)
- xhost + (not needed with SSH tunneling)
- SSH supports X forwarding (make sure /etc/ssh/sshd_config is set to allow this)
- Make sure your SSH on the "server" was compiled to to allow X (most RPM and YUM available packages are)
- etc
The other factor could be a missing library or something on your "server" related to X.
I solved this problem by installing my missing X subsystem via yum:
Code:
yum install xorg-x11-server-Xdmx.x86_64
Code:
yum install xterm.x86_64
Code:
yum install xorg-x11-xinit.x86_64
Then when I rebooted the server (I could have started everything manually) it worked. I could
Code:
ssh -Y -l me abc.com
or
Code:
ssh -X -l me abc.com
.
Good luck,
David
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:55 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|