Linux Geeks? An X Windows question

The Heretic

Literotica Guru
Joined
Oct 26, 2002
Posts
28,592
Since LG and CM seem to be present, a question for you about X Windows:

As I recall, one of the basic ideas behind X Windows was that it was designed to be run on a smart terminal which interfaced via the network as a client with the X Window server. Therefore it is meant to be able to control a remote computer - right?

How can I setup my Windows 2K computer to be an X Windows client to a remote server?

I have this Compaq server with Red Hat installed, which I want to put into a closet because it is so loud. I want to be able not only to control some of the services and process I will have running on it (such as Apache/Tomcat/Jetty/Resin/etc.), but also control/use/play with/program for/test apps on a desktop such as KDE, Gnome/etc.

The mouse for some reason doesn't want to work under Red Hat but I have been unconcerned about that as I figured I would just run VNC or something - but I am wondering if I could get some kind of X Windows remote client going instead.

Thanks
 
You don't run the client on your end, you run the server. I know, I know, it sounds backwards.

But X is a notoriously insecure way to do things, so do be sure to tunnel through SSH.

Um. Well. That is, if you think a virtual wine freak might have any clue as to what's going on.
 
LukkyKnight said:
You don't run the client on your end, you run the server. I know, I know, it sounds backwards.
This I do not understand - care to explain?

But X is a notoriously insecure way to do things, so do be sure to tunnel through SSH.
All of my computers are behind a rather secure firewall and no one has access to them except me - although I suppose you might be able to hack in via the WAP.

First I just want to understand how to do it, then get it working, then I will make sure it is secure.
 
For what it sounds like you want to do, running VNC server on the Linux box would probably do the job the best. Then either access via web browser or get the M$Win client. You'll probably want to change which X Desktop VNC starts up--TWM is rather limited. Since it will be sitting in a closet, either KDE or Gnome as the VNC desktop will do the job. Depending on the amount of memory and CPU MHz, may even be able to have multiple VNC servers running on the Linux box. Maybe one with each desktop you want to play with.

May also want to take a look at Webmin for configuration via a GUI.
 
It's a terminology and architecture thing. You run an X-server on your local machine, which you (and any reasonable person) think of as the client. But for X, it's backwards, owing to early design considertions for the protocol. Until you accept that (you can say "fucked up" as often as you like, if that helps) you can't ever get it to work. Even after you do it's a kinda tricky thing to implement without experienced help, largely based on this bassackwards nomenclature and setup.
 
linuxgeek said:
For what it sounds like you want to do, running VNC server on the Linux box would probably do the job the best.
I had originally thought I would use VNC, but XWindows would seem to be a lot more efficient to me than VNC. IIRC, VNC just paints the whole screen (or changes to the screen) of the controlled machine, while X-Windows has a windowing primitives command protocol between the client and server.

Why do you think VNC would be better? Ease of setup?
 
LukkyKnight said:
It's a terminology and architecture thing. You run an X-server on your local machine, which you (and any reasonable person) think of as the client. But for X, it's backwards, owing to early design considertions for the protocol. Until you accept that (you can say "fucked up" as often as you like, if that helps) you can't ever get it to work. Even after you do it's a kinda tricky thing to implement without experienced help, largely based on this bassackwards nomenclature and setup.
Okay, I was reading this and that makes sense - in a backward sort of way.
 
The Heretic said:
Okay, I was reading this and that makes sense - in a backward sort of way.
There's a rumor that at the last bar I worked at I had an X-server on my desktop to contact an oracle server, though why a virtual bartender would need access to the DBA accounts on an oracle server is utterly beyond imagining. The entire operation, if it were true and not merely a rumor, sat behind a different suburb of the hypothetical firewall I would have employed if any of this were true, and in consideration of how old and insecure the X protocol is, in my imagination the firewall only allowed SSH traffic through so I would have had to tunnel to get at anything.

Hypothetically.

I probably have no idea at all what any of this means, since I think it all happened in a very vivid nightmare.
 
For ease of setup, I see VNC server on the Linux box doing the job. It will basically be like you are doing a Window Remote Desktop connection to use the Linux box. Via ssh/sftp, you can move files back and forth, or you can set up SAMBA on the Linux box and just Windows map a drive to the Linux box.

If you specifically want to use X-Windows, you will need software for your M$Win machine which will act as a X-Windows client. There probably is some out there free, but I've never gone looking for it since VNC did what I needed.

The impression I have of X-Windows in a client/server setup, when it is most useful, is when you have a powerful server and minimal machines you are using as clients.

The Heretic said:
I had originally thought I would use VNC, but XWindows would seem to be a lot more efficient to me than VNC. IIRC, VNC just paints the whole screen (or changes to the screen) of the controlled machine, while X-Windows has a windowing primitives command protocol between the client and server.

Why do you think VNC would be better? Ease of setup?
 
Back
Top