Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 don't understand how the following works. What I am trying to do is the following.
My linux server is Server A (X server runs here) and my remote computer, Machine B, is a Windows XP box from which am using a SSH connection (putty) to connect to Server A.
What I am trying to do is to get a display of an X client from Server A to Machine B.
Let's say the IP address of Server A is 192.168.76.1 and Machine B is 192.168.76.2
I can get the display of X client from Server A to Machine B by doing one of the following.
1. Export the Display variable from a bash shell from Linux Server A using the following command
export DISPLAY=192.168.76.2:0.0
or
2. Run a X client manager, Reflection X on Machine B and do
export DISPLAY=192.168.76.2.0.0
through the SSH bash shell from machine B.
What I would like to know is
If I don't have a Reflection X or any X client manager on machine B, and through the SSH bash shell from machine B, if I try to do
export DISPLAY=192.168.76.2:0.0
i can't get any of my X client's display on Machine B.
Why is it so?. Why does it require an X client Manager on Machine B. How to get this working?
Note: If I run the same command from Server A and if I dont' run any X client manager on machine B, I can get the display working.
But running the same command through SSH remote connection from machine B, it doesn't.
Sorry, I can't answer your question but I'm grateful that you asked it. I never dreamed that such a thing existed! It will be very useful to me. Proves the value of lurking here.
I'm not sure if this is answering your question, but I'm using X-win32 to have X windows on my win2K box from my redhat box. I understand there are some other options ... for example
I'm not sure if this is answering your question, but I'm using X-win32 to have X windows on my win2K box from my redhat box. I understand there are some other options ... for example
and I think that there is something in the cygwin distribution too ...
Thanks but yeah it doesn't answer my question. I can get it working using one of the options I mentioned. But with the method am trying to follow, it doesn't and I don't understand why?
Note: If I run the same command from Server A and if I dont' run any X client manager on machine B, I can get the display working.
But running the same command through SSH remote connection from machine B, it doesn't.
What is an X client manager? You may have the relationship between X server and X client reversed. The X client is the program that is running on the remote computer. The X server is the local terminal. You need to run an X server on the XP computer because it is the terminal. One free X server is Cygwin/X which will also install a Unix like system running on the Windows kernel. Doing this, you could run the ssh client that Cygwin provides. If you configure it during installation to use Unix styled text files, you can create or edit a file in Cygwin locally, and lines will end with newlines (NL) instead of both NL & CR.
Selecting the X forwarding option in Putty, or using the ssh client in Cygwin, the DISPLAY variable will be set automatically. Probably to :10.0.
What is an X client manager? You may have the relationship between X server and X client reversed. The X client is the program that is running on the remote computer. The X server is the local terminal. You need to run an X server on the XP computer because it is the terminal. One free X server is Cygwin/X which will also install a Unix like system running on the Windows kernel. Doing this, you could run the ssh client that Cygwin provides. If you configure it during installation to use Unix styled text files, you can create or edit a file in Cygwin locally, and lines will end with newlines (NL) instead of both NL & CR.
Selecting the X forwarding option in Putty, or using the ssh client in Cygwin, the DISPLAY variable will be set automatically. Probably to :10.0.
Thank you for you reply.
I meant X Server as X client manager. From your explanation, I understand that it is mandatory to run X server on XP box to get the display working. This is where I am confused.
Could you then please explain, how does the display work, when I dont' run any X server on my XP box and still when I export the display using the following command
locally from Linux server. (If I am logged into the linux box locally and run the following command from a bash shell terminal)
export DISPLAY=192.168.76.2:0.0
and then If i run,
$xclock
then I can see the xclock displayed on the Windows XP box. Please note that at this point I don't have any X server running on my Windows XP box.
What really happens at the background and how does the whole thing work at this point?
Sorry may be I am not understanding the mechanics involved here which is what am trying to understand.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.