Operating System - HP-UX
1821051 Members
2602 Online
109631 Solutions
New Discussion юеВ

X-Terminal connect to Linux (gdm xdmcp)

 
Brian McEntire
Frequent Advisor

X-Terminal connect to Linux (gdm xdmcp)

I've been amazed at the talent in these forums! I hope someone has some good advice once again :)

I have many HP Envizex II X Terminals. With some help from folks in these formums, the X Terms are now up and running with chooser menus (host connection list) at boot. (Thanks!)

But, I cannot get any of my RedHat 7.2 Linux hosts to appear in the chooser list. (HP-UX and Solaris hosts are showing up fine.)

I've done a good bit of searching (here and Google) but I can't find many good docs for gdm and found few people with solutions to their gdm questions.

I'm locked in to running gdm on the Linux hosts because everyone wants the Gnome desktop.

I've made a few edits to /etc/X11/gdm/gdm.conf... speficically setting:
Enable=true
under both [xdmcp] and [debug] sections of the file. And I bounced to init 3 and back to init 5 after the edit.

I also made a few changes to /etc/X11/xdm/Xaccess; although I think that should be irrelevant since gdm is a replacement for xdm.

Still, no luck seeing (or being able to log in to) Linux hosts from the X Terminals.

Anyone know what I am missing?

Thanks!!
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: X-Terminal connect to Linux (gdm xdmcp)

I've read and I trust the person who wrote it that there was a known problem with RedHat 6.0 and gdm.

I'm extrapolating that we maybe seeing something similar here .

Can you switch to running KDE for test purposes .... if it has no connection with gdm it should still not work I guess.Otherwise
the following doc looks useful ...http://www.tldp.org/HOWTO/XDMCP-HOWTO/procedure.html


I guess the other route in is to check the linux box responds to the xterminal broadcast by examining the packets sent out .... the MIT site has the XDMCP protocol info I'm sure .... ps I'd also ensure no routers,switches or hubs are involved just yet and both xterminal and pc are on the same subnet - keep it simple ...

Steve Steel
Honored Contributor

Re: X-Terminal connect to Linux (gdm xdmcp)

Hi


1)There is a gnome available for HP-UX

Enquire via your local response centre


2)My redhat box shows up on my entria with

[/etc/X11/gdm]$ >cat gdm.conf
[daemon]
Chooser=/usr/bin/gdmchooser --disable-sound --disable-crash-dialog
DefaultPath=/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin
DisplayInitDir=/etc/X11/gdm/Init
Greeter=/usr/bin/gdmlogin --disable-sound --disable-crash-dialog
Group=gdm
HaltCommand=/sbin/shutdown -h now
KillInitClients=1
LogDir=/var/gdm
PidFile=/var/run/gdm.pid
PostSessionScriptDir=/etc/X11/gdm/PostSession/
PreSessionScriptDir=/etc/X11/gdm/PreSession/
RebootCommand=/sbin/shutdown -r now
RootPath=/sbin:/usr/sbin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin
ServAuthDir=/var/gdm
SessionDir=/etc/X11/gdm/Sessions/
User=gdm
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=.Xauthority

[security]
AllowRoot=1
RelaxPermissions=1
RetryDelay=3
UserMaxFile=65536
VerboseAuth=1

[xdmcp]
Enable=1
HonorIndirect=1
MaxPending=4
MaxPendingIndirect=4
MaxSessions=16
MaxWait=30
MaxWaitIndirect=30
Port=177


[gui]
GtkRC=
MaxIconWidth=128
MaxIconHeight=128

[greeter]
Browser=1
#DefaultFace=/usr/share/pixmaps/nobody.png
DefaultFace=/usr/share/pixmaps/piranha-icon.png
DefaultLocale=english
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody
Font=-adobe-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*
GlobalFaceDir=/usr/share/faces/
#Icon=/usr/share/pixmaps/gdm.xpm
Icon=/usr/share/pixmaps/RIP.5.xpm
LocaleFile=/etc/X11/gdm/locale.alias
#Logo=/usr/share/pixmaps/gnome-logo-large.png
Logo=/usr/share/pixmaps/gnobots2/cows.png
Quiver=0
SystemMenu=1
Welcome=Welcome to %n
Welcome[de]=Willkommen auf %n
Welcome[fr]=Bienvenue sur %n
Welcome[ja]=%n ????????????????????
[chooser]
#DefaultHostImg=/usr/share/pixmaps/nohost.png
DefaultHostImg=/usr/share/pixmaps/gataxx.png
HostImageDir=/usr/share/hosts/
ScanTime=3

[debug]
Enable=0

[servers]
0=/usr/bin/X11/X
#1=/usr/bin/X11/X


Regards

Steve Steel

Quote of the moment
-------------------
"We are drowning in information but starved for knowledge."
-- John Naisbitt
If you want truly to understand something, try to change it. (Kurt Lewin)
Brian McEntire
Frequent Advisor

Re: X-Terminal connect to Linux (gdm xdmcp)

Hi, thanks for your responses. I found the solution via some really lucky Googling... it was obscure.

THE SOLUTION:
It turns out that gdm on RedHat 7.2 is compiled with LibWrap support (TCP Wrappers.) Tricky! (They don't may that very obvios.)

So, the only things you need to do to enable xdmcp on a RH 7.2 workstation is:

edit /etc/X11/gdm/gdm.conf. Under the section [xdmcp] change the Enable=false (or 0) to Enable=true (or 1).

Then edit /etc/hosts.allow. Add or modify a line as follows:

gdm: 192.168.1. 192.168.2.

where 192.168... are then networks for which you want your RH 7.2 system to answer XDMCP broadcast queries.

The restart gdm, I find it easiest to:

init 3; sleep 10; init 5

- - -

That's that. It works for me now. I hope this helps a few folks out in the future.

Cheers.