Linux - NetworkingThis 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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.