LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2007, 01:48 PM   #1
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Rep: Reputation: 15
xterm forwarding to windows computer


I have a few Red Hat Linux Enterprise 4 servers and I'd like to be able to see the GUI from a remote windows machine. Right now I use putty to get to the command prompt but I'd like to be able to see the graphical interface.

I heard that there's a way to set it up on the server and also in Putty there's X11 forwarding that needs to be enabled and then you can see the GUI in the Putty window.

I've done numerous google searches and found stuff about using Exceed and other software to do this. Please do not give me links to that.

This should be fairly simple, I have a friend who's done it before but he can't remember what he typed in at the server prompt to redirect the output to the windows machine.
 
Old 03-20-2007, 02:01 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
It's not that easy. Windows does not include an X11 "support", so natively it cannot take the forwarded X11 stuff over SSH connection; it's simple to do, but only after you have installed some extra software (like the one you mentioned, for example, or one of the others) that makes Windows able to deal with the X11 information. Linux has natively support for X11 forwarding, because it uses X itself, so Linux-Linux works easily. Like I said, on Windows you need to have some extra software that makes it able to work with X11, and most of the software costs money.

EDIT: on the Linux server end one simply edits sshd's configuration file (usually /etc/ssh/sshd.conf or something alike) and sets X11 forwarding to true ("on" or "1" or whatever format the config file uses, instead of "false" or "off" or "0"). After that, if the client (like PuTTY) has X11 forwarding enabled and firewalls don't stop it, it works -- in case the client-end can deal with X11 stuff.

Last edited by b0uncer; 03-20-2007 at 02:03 PM.
 
Old 03-20-2007, 02:13 PM   #3
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I've asked my friend if he did anything special and he said he didn't install anything else on the windows box, he just typed in a command on the server, then enabled X11 forwarding in Putty.

I understand what you're saying about Windows not being able to natively handle X11... but wouldn't the output be sent to Putty?
 
Old 03-20-2007, 03:31 PM   #4
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
If he is running some application which uses X (which your friend must be, otherwise he wouldn't need X forwarding), then he must have installed X server on Windows.

There are many many choices for X server on Windows. Many are free too. I don't remember the name of one of these right now, which all the people in my university used to use. It was not open source but free of cost. Since I like open source softwares, I used another approach, and I will explain that to you.

Install cygwin. You don't need to install anything except "xterm" and "openssh". The dependencies will be pulled by itself. Then start cygwin, type xterm. It will start the X server by itself. Type "xhost +". Then ssh to whatever computer you want to connect to.

(Here I am assuming that you use putty for sshing to another computer, and so in my method, you don't need putty at all.)
 
Old 03-21-2007, 04:13 PM   #5
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
1. Where do I download Cygwin? do you have a link for it?

2. Do I install it on the Linux Server or the Windows machine?

3. With your method, will I be able to remote the ":0" console??

4. Do you have a step by step instructions on how to do this?

I'd like to be able to see the "0:" console.

I've seen a couple of other methods to do this:

The first one is to use VNC. However the documentation is very weak...almost none. There's no step by step instruction on how to set it up on a Red Hat Linux Enterprise 4 64 bit.

http://www.redhat.com/magazine/006apr05/features/vnc/
http://www.realvnc.com/documentation.html

The second one is secure Xwindows with SSH. This one seems more complicated and it doesn't talk about if you can remote into the 0 console.

http://www.uic.edu/depts/accc/newsle.../xwindows.html


I'm kind of new to Linux so please bare with me. I just don't understand why it has to be so complicated. On a windows box, it would've taken me only a few minutes to set this up.

If anybody else is reading this and has step by step instructions on how to set this up, please post. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a privately addressed computer without using port forwarding Bateman Linux - Networking 10 12-18-2020 08:29 AM
How to move open office doc from Linux computer to Windows computer Phoenixink Linux - Software 6 02-15-2007 07:09 AM
Fedora Core 5 Computer Providing A Windows Xp Computer With Internet FedoraNewbie Linux - Networking 6 10-28-2006 11:24 PM
forwarding ssh->vnc through 1 computer disorderly Linux - General 1 10-06-2005 02:43 PM
Why would a windows computer smoke a linux computer for download speed ? lostboy Linux - General 4 10-21-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration