LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   connect to remote x server (https://www.linuxquestions.org/questions/linux-general-1/connect-to-remote-x-server-367723/)

blas 09-28-2005 03:31 AM

connect to remote x server
 
Hi

I need to open a remote x connection to a linux machine which has graphical remote login enabled with xdm. I can do this in windows xp using Cygwin/X (XWin), it opens a window with the "Welcome to <hostname>" screen (Red Hat Enterprise) and I can login to the remote machine ans see the kde desktop etc...
Now I want to stop using windows but I need to know how to do this in Linux (I have installed Red Hat Enterprise AS 4). Please note that I need a new window with the login screen of the remote machine. Is this possible?

Thanks in advance
Regards

SkyEye 09-28-2005 03:51 AM

Usin ssh with X forwarding should work (ssh -X).

Otherwise it can be done with startx, too.

blas 09-28-2005 04:31 AM

Hi
Thaks for the update!

I tried "ssh -X <hostname>" but just connect to the remote host in text mode, no login screen of the remote host is shown.

What should -X option do?

Thanks
Regards

SkyEye 09-28-2005 04:57 AM

After you connect issue "xclock". It should be displayed locally.

If this is not what you want lets try other ways later. "X" option is used to forward X.

blas 09-28-2005 05:36 AM

ok, I see

But what Im looking for is something like a remote desktop, do you have any ideas?

SkyEye 09-28-2005 06:09 AM

There's a way it can be done with startx. Since it was sometime ago I used it I cannot remember it properly. I'll let you know it as soon as possible.

May be VNC might help you meanwhile. Get it from here. Install it, log in as the user you would like to use. Run "vncserver". Use the viewer lacally to connect to "localip::5901"

debianmike 09-28-2005 06:42 AM

this is from memory, but

on local pc, type xhost + to allow connections back.

on local pc, type ssh remotemachinename:1

also, i haven't used xdm, just gdm. On remote machine you have to edit /etc/X11/gdm/gdm.conf to allow remote connections and insure it runs at boot time.

blas 09-29-2005 02:36 AM

SkyEye,
thanks for your research. I know vnc but I want to start a remote X server (configured with xdm), just like what I do with XWin32 in windows, I need to see the "welcome to <host>" screen where I can select username and pass. If you find the info please tell me!

debianmik,
yes I have xdm (or gdm) running at boot time, I can connect to the remote machine using XWin32/CygwinX...
I tried "xhost +" and "ssh remotemachinename:1" but the host can be found (because of the :1 at the end)

regards

blas 09-29-2005 04:20 AM

Hi

This is the solution:

1) change to a new console (CTRL+ALT+F1)
2) run "X -query [host] :1"

And a new X will be started against the host specified (configured with xdm) and the login screen is shown

But now I have the problem that when I change to my local X (CRTL+ALT+F7) and then come back to the remote X started (CTRL+ALT+F1) the X server crashes and I have to run again "X -query [host] :1" loosing the previous session started. Do you have any idea why this happens?

Regards


All times are GMT -5. The time now is 01:59 PM.