LINUX EXPERTS QUESTION: Problem regarding X-Win32 and XDMCP on RH7.2 ***SOLVED

her209

No Lifer
Oct 11, 2000
56,336
11
0
Hi

I am currently running RH7.2 on one of my machines.

On a 2nd machine, I have X-win32 installed and want to access the RH7.2 X-Server but have tried unsuccessfully for the past few days. What I want to happen is a login prompt for GNOME to appear.

I have done searches on Dejanews and have followed suggestion given on the newsgroups to no avail.
I have also followed these instructions at RedHat


I have tried modifying the following files (links to a copy of the modified files) :
/etc/X11/xdm/Xaccess
/etc/X11/xdm/Xservers
/etc/X11/xdm/xdm-config
/etc/X11/gdm/gdm.conf
/etc/inittab
/etc/rc.d/init.d/xvf -- changed back

Whenever I try to start the XDMCP session under Xwin32 it gives the patterned screen with the X cursor but goes no further. (Using Query)

What does happen is this:
RH7.2 boots up to login prompt for GNOME (Level 5).
Attempt to connect to RH7.2 through XWin32. (Get patterned screen with the X cursor)
A few seconds later (like 30secs or so) the Linux screen goes blank and gives a "There already appears to be an X server running display :0. Please quit this server and then press Enter. You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7. X servers usually run on consoles 7 and higher." error

Changing the XWin32 session to a Broadcast...
A dialog prompt pops up with XDM on RH7.2 machine listed.
Selecting that I click okay... but am greeted with the same error!!!

Any help would be greatly appreciated.

SOLVED

Here is my solution

1. Reverted all the files back to the originals.

2. Edited /etc/X11/gdm/gdm.conf to have

:
:
[xdmcp]
Enable=true
:
:

3. Edited /etc/hosts to include Windows Machine

:
:
ip address [machine name].[domain name] [machine name]
:
:

4. Created an XDMCP session on XWin32 using Query. WORKS! :)

5. I also created an XDMCP session on XWin32 using Broadcast which also works as well.

6. Woohoo!!! :D

The reason why I never bothered to put the IP address of the Windows system in the /etc/hosts file is because I have a DHCP Server
on my LAN. Does anyone know how to fix this?
 

FUBAR

Senior member
Oct 11, 1999
618
0
0
I did get this working, just once, by sheer luck i suppose, on RH6.2.

Not to try and steer you away, but have you looked at something like VNC? If you're local, the speed issue over the net would be negligable, and I believe you can get it to run your fav window manager and such, just not with the traditional login screen. If you just want to run a few X apps this would work well. The really nice thing is you can leave your app running, close the VNC session (leaving the server running) and then come back later and everything will be as it was when you left.
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Well I use X-Win32 and what I usually do is a rexec of xterm with "-display <my machine>"!

But I've tried XDMCP, and it works fine. My Linux machine run RH6.2!! I'll have to check the configurations files to see how is done..
 

Heisenberg

Lifer
Dec 21, 2001
10,621
1
0
Have you edited the /etc/X11/xdm/xdm-config file? There's a line at the very bottom you need to comment out: "DisplayManager.requestPort:0".
 

Heisenberg

Lifer
Dec 21, 2001
10,621
1
0
Ok, let's see. In Xaccess, you uncommented the "* #any host can get a login window" line. In Xservers, you added "hostorip:0 foreign" to the bottom. In xdm-config, the last line is uncommented. The only thing it looks like I did differently than you was to enable the font server. Edit /etc/X11/fs/config and comment out "no-listen=tcp". I'm using RH 7.2 for the remote and FreeBSD for the local display, but the config on the 7.2 boxes should be the same.
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Can you give us the parameters that you use the session configuration of X-Win32?!??!
Did you try enabling the debbuging options in the X-Win32 message window??

Did you try other forms of access like rsh and rexec?!?
 

her209

No Lifer
Oct 11, 2000
56,336
11
0
For an XDMCP session, there are no params to specify other than if the XDMCP session is a QUERY/BROADCAST/INDIRECT/OLD INDIRECT.

I have tried using the QUERY session giving it the hostname (stanley) and the ip address (192.168.0.4) of the RH7.2 Box.

I have also tried the BROADCAST session which is able to find that an XDM service is running on the RH7.2 box.

I have also tried using rexec with the default command line "/usr/X11R6/bin/xterm -ls -display $DISPLAY".

Checking the Show Messages:

Even when the Show Messages Box is checked, it does not pop up. I have to right click it in the Task Bar and go to show messages.

Nothing out of the ordinary for the XDMCP sessions: X-Win32 version 5.1.1 build 2
For the rexec session: connection refused. (I suppose I have to setup an rexec server of some sort for this to work)
 

LNXman

Senior member
Jul 27, 2000
404
0
0
I am quite lost at what your problem really is. I suspect that you are getting a "connection refused" comming from the client you want to connect to. Right? If so, Did you by any chance allow access to that client with its own Xaccess file? Does you firewall (if you are running one), allow connections through port 177 internally?
If I am way off, please explain?

BTW, I would not use CHOOSER BROADCAST in your Xaccess file on your XDM server. I would instead do:

-------------------------->8--------------------------------
%hostlist <hostname1> <hostname2>

* CHOOSER %hostlist
-------------------------->8--------------------------------

Because BROADCAST is not guaranteed to work. In addition, make sure that the hosts you define on Xaccess are defined in your server's /etc/hosts file. And it would not hurt to do the same for the client as well. Make it a habit to synchronize system files . . .

Good luck.

 

her209

No Lifer
Oct 11, 2000
56,336
11
0
Problem has been solved. See post for solution. Thanks to all those who helped. Hope this helps others in the future!