LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-19-2003, 12:54 PM   #1
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Rep: Reputation: 0
Question XDMCP display forwarding not working


I've tried setting up XDMCP on a box running Red Hat 7.3, with KDE 2-2.10. I'm trying to access from a Windows box running 2000, using a program called PuTTY. PuTTY uses SSH to get to the linux box, and there's the capability to forward X11 displays to the remote (windows) box, but for some reason, it doesn't work. When I type startx from this PuTTY program, X starts fine, but the display goes to the linux box rather than popping up on the remote box. Has anyone done this sort of method before? Help is very much appreciated.
 
Old 05-20-2003, 03:52 AM   #2
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Rep: Reputation: 15
I have not used the system that you have but I have used XDMCP on Exceed. I have found that you have to be careful to make sure the display is set. On exceed it would look something like:

DISPLAY=[your windows computers ip]:0.0 startx

I do not know how PuTTY handles command lines or variables but look for an option to set your display.

Paul
 
Old 05-20-2003, 09:08 AM   #3
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
This Exceed isn't free/shareware, though, right?

I unfortunately have another error with this thingamabob. Even if I try to run xclock, I get this error:
X connection to Paradox:10.0 broken (explicit kill or server shutdown).
Paradox is the name of the linux box. Any ideas why?
 
Old 05-20-2003, 09:46 AM   #4
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
I'm thinking it has something to do with the linux box being able to tunnel X11 (or not being able to). I've tried it on a regular ssh prog, and I still get the same above error. Hm.
 
Old 05-20-2003, 10:59 AM   #5
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, methinks I've narrowed it down. I finally figured out that I have to use the command:
export DISPLAY=crystal:1
But I still get nothing good. Instead, I get
Error: Can't open display: crystal:1
I use crystal:1 because that's what I used in my /etc/X11/xdm/Xservers file. Am I right in doing this?
 
Old 05-21-2003, 02:29 AM   #6
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Rep: Reputation: 15
Instead of

export DISPLAY=crystal:1

Try

export DISPLAY=crystal:0.0

The DISPLAY variable is the computer that you want to display the X on. So if you want the stuff displayed on the remote box (be it a pc running an X server or another unix/linux system) you need to set the display to that computer.

Paul
 
Old 05-21-2003, 09:25 AM   #7
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
Hmm... I've tried all possible combinations of display and screen numbers, and I get no luck. It still says "Can't open display crystal:0.0". Is it possible I've done something wrong on the linux box config files? I'm kinda at a loss.
 
Old 05-22-2003, 04:45 AM   #8
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Rep: Reputation: 15
One final thought and probably a stupid one but instead of crystal have you tried using crystal's IP address
eg

DISPLAY=192.168.0.33:0.0

Paul
 
Old 05-22-2003, 08:21 AM   #9
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
Yep, I probably should've mentioned that as wel.
 
Old 05-22-2003, 11:06 AM   #10
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
Another thing: If I leave the DISPLAY variable set to the remote box running X11 (called Paradox), and try to run xclock right after logging in with ssh, I get this error:

X connection to Paradox:10.0 broken (explicit kill or server shutdown).

Does this conjure any more ideas?
 
Old 05-22-2003, 04:43 PM   #11
lnxkido
Member
 
Registered: May 2003
Posts: 34

Rep: Reputation: 15
Hi,

Try following things:
1) Ensure SSH server daemon is running on your linux box. ( ps -eaf |
grep "[s]shd" )

On your windows 2000 box, do the following:
1) Download Tera Term SSH ( version 2.3 from the website
http://hp.vector.co.jp/authors/VA002416/teraterm.html )
2) Download Tera Term SSH Extension (TTSSH)
3) Do "X forwarding" in U'r tera term Setup.
4) Download CYGWIN on your Windows 2000 box.
5) issue startx to start X-window using any of the mechanism described
on CYGWIN site.
6) start ttssh by providing the IP address or HOSTNAME of your Linux
box
7) Enter login and password to login to Linux box.
8) Once U get at the BASH SHELL, issue "startkde" OR "gnome-session"
9) Wait for a little while
10)Now you should get your Linix desktop on your windows box...

PS: Ensure you download tera term pro and its extension ...follow the
documentation provided. Refer to
http://www.zip.com.au/~roca/ttssh.html
for more help...

Best of Luck !!!

--The Linux Kid.
 
Old 05-23-2003, 10:13 AM   #12
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
uh... There's nothing in any Tera Term setup that even mentions X-Forwarding. Trying to run ttssh does nothing. It doesn't seem to run at all. And what am I supposed to do with this Cygwin thing? It seems completely useless to me.
 
Old 05-23-2003, 10:20 AM   #13
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
Oh, so I was supposed to put the ttssh stuff in the regular Tera Term directory. But it doesn't seem to be any good. Cygwin still seems useless to me.
 
Old 05-23-2003, 10:24 AM   #14
antaydos
LQ Newbie
 
Registered: May 2003
Location: New England
Distribution: Red Hat 9
Posts: 15

Original Poster
Rep: Reputation: 0
trying to run xclock through ttssh brings up this message:
The server attempted to forward a connection through this machine. It requested a connection to the X server on localhost (screen 0). Connection refused (perhaps the services is not currently running). The forwarded connection will be closed.
So is it a problem on the windows box?
 
Old 05-29-2003, 04:51 PM   #15
lnxkido
Member
 
Registered: May 2003
Posts: 34

Rep: Reputation: 15
Hi,

Once you've downloaded the Tera Term Pro and its extension (TTSSH),

1) Click on the Tera Term Pro ( for e.g., "C:\Program Files\TTERMPRO\ttssh.exe")

2) Once U get a login screen, hit CANCEL,

3) Click on Setup

4) Click on SSH forwarding

5) Enable "Display remote X applications on local X server" by enabling the checkbox.

6) Hit OK

7) Hit "Setup" again

8) Click on "Save Setup..."

9) Save the setup.

10) start cygwin ( by saying startx &)

11) Restart TERA TERM via ttssh.exe

12) enter the IP addr and login info..

13) Once U get the SHELL, issue "startkde" or "gnome-session"..
I found some issues with gnome-session...dunno something wrong with my setup/config or it cud be a gnome issue...but kde works fine.

Let me know if U hit further bottlenecks...

Post U'r results...

Good luck !!

--The Linux Kid.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gdm, vnc and XDMCP stopped working akidd Linux - Networking 10 12-25-2004 07:01 PM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:19 AM
Server Status can not display by XDMCP connect taisuke Linux - Networking 1 08-26-2004 09:37 PM
XDMCP: How do I get this working ... and what is it? SparceMatrix Linux - Networking 4 04-09-2003 08:10 AM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration