LinuxQuestions.org
Review your favorite Linux distribution.
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 09-28-2005, 03:31 AM   #1
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Rep: Reputation: 15
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
 
Old 09-28-2005, 03:51 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Usin ssh with X forwarding should work (ssh -X).

Otherwise it can be done with startx, too.
 
Old 09-28-2005, 04:31 AM   #3
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
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
 
Old 09-28-2005, 04:57 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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.
 
Old 09-28-2005, 05:36 AM   #5
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
ok, I see

But what Im looking for is something like a remote desktop, do you have any ideas?
 
Old 09-28-2005, 06:09 AM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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"
 
Old 09-28-2005, 06:42 AM   #7
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
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.
 
Old 09-29-2005, 02:36 AM   #8
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
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
 
Old 09-29-2005, 04:20 AM   #9
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Remote office can't connect to Redhat 7.3 server using new IP block from ISP Poseiden Linux - Networking 2 04-14-2005 08:56 AM
Unable to connect to remote server Suresh Chowta Linux - Networking 1 02-13-2005 06:29 AM
Connect to remote server and initiate FTP doza Programming 4 06-23-2004 11:16 AM
Not able to connect from Remote Machine. sursujmad Linux - General 3 02-05-2004 05:14 PM
how can i connect to a remote X server? likid0 Linux - Software 1 07-11-2003 01:11 PM

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

All times are GMT -5. The time now is 07:34 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