Discussion:
How to enable XDM?
Tom Chen
2007-12-06 19:41:26 UTC
Permalink
XDM is the facility that allows a remote client to access a full desktop on a Unix or Linux server which is very useful for me to admin remote servers. The protocol it uses is called XDMCP. However, XDM is not enabled by default in OpenSolaris.

I am using Nevada V76, I am wondering how to enable XDM?

Tom


This message posted from opensolaris.org
Kyle McDonald
2007-12-06 20:09:20 UTC
Permalink
Post by Tom Chen
XDM is the facility that allows a remote client to access a full desktop on a Unix or Linux server which is very useful for me to admin remote servers. The protocol it uses is called XDMCP. However, XDM is not enabled by default in OpenSolaris.
I know you can disable Solaris's DtLogin with:

svcadm disable cde-login

But I'm not aware of an existing service you can enable that will start
XDM. If you wanted that you'd have to write your own service or script
to start it up. I beleive XDM is included in X11 in Solaris though so
you could do that.

That said, doing what you want is even easier that enabling XDM, since
Solaris's DtLogin already fully supports XDMCP.
(and has for years.) I believe you only have to create the
/etc/dt/config directory, and then copy /usr/dt/config/Xservers over to
/etc/dt/config and edit it to allow your remote xserver to get a login
screen from DtLogin.

I don't beleive that the syntax for the Xservers file is all that
different from the XDM config file, but the manpages should clarify any
differences. Also you may need to copy and edit other files from
/usr/dt/config (Xaccess maybe?)

-Kyle
Post by Tom Chen
I am using Nevada V76, I am wondering how to enable XDM?
Tom
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
Gary Gendel
2007-12-06 21:05:52 UTC
Permalink
There is a bug in gdm which won't let you enable XDMCP. I don't know when it will be fixed, but a patch can be found here:

http://www.opensolaris.org/jive/message.jspa?messageID=151397&tstart=0


This message posted from opensolaris.org
Rob Nelson
2007-12-06 21:20:48 UTC
Permalink
Here's how we do it. We use Gnome and not CDE, don't know if CDE is different.

1) Enable the gnome display manager:

# svcadm enable svc:/application/graphical-login/gdm:default

[If your a GUI person, you can also start "Administration->Services" and in the "Services settings" dialog enable the "GNOME Display Manager" check box". Note: starting gdm always seems to crash gnome on many of the recent nv builds - I just reboot and usally everthing comes back OK with gdm started.]

2) Once gdm is running you can start the gdmsetup:

# gdmsetup

[If your a GUI person, sometimes the act of starting gdm will place a "Administration->Login Window" icon in the start menu]

3) In the "Login Window Perferences" dialog of gdmsetup select the "Remote" tab. Select "Style" pulldown to be "Same as local". You can also change XDMCP settings to your liking in "Configure XDMCP..." I also use the defaults.

Now you should be able to remotely log into you OpenSolaris box using XDMCP of your favorite X term server.

If you want to login in remotely as root, there is more work to do, but we never login as root ;)

Good luck...


This message posted from opensolaris.org
Tom Chen
2007-12-06 21:32:12 UTC
Permalink
Thanks!

Tom


This message posted from opensolaris.org
Patrick Blaas
2007-12-10 14:08:07 UTC
Permalink
What i would like to do is keep using the cde-login and get access with XDMCP to the dtlogin. That doesn't seem to work in b76 x86. Changing to gdm is not a fix, it's a workarround imho.

This worked out-of-the-box on previous solaris versions.
Anyone know what changed here?


This message posted from opensolaris.org
Casper.Dik-UdXhSnd/
2007-12-10 14:25:50 UTC
Permalink
Post by Patrick Blaas
What i would like to do is keep using the cde-login and get access with XDMCP to the dtlogin. That
doesn't seem to work in b76 x86. Changing to gdm is not a fix, it's a workarround imho.
Post by Patrick Blaas
This worked out-of-the-box on previous solaris versions.
Anyone know what changed here?
Security, probaby.

Check for the "-udpPort 0" argument to dtlogin.


svccfg -s cde-login
setprop dtlogin/args = ""

svcadm refresh cde-login
svcadm restart cde-login

Casper
Casper.Dik-UdXhSnd/
2007-12-10 15:16:54 UTC
Permalink
Post by Patrick Blaas
Post by Patrick Blaas
What i would like to do is keep using the cde-login and get access with XDMCP to the dtlogin. Tha
t
Post by Patrick Blaas
doesn't seem to work in b76 x86. Changing to gdm is not a fix, it's a workarround imho.
Post by Patrick Blaas
This worked out-of-the-box on previous solaris versions.
Anyone know what changed here?
Security, probaby.
Check for the "-udpPort 0" argument to dtlogin.
svccfg -s cde-login
setprop dtlogin/args = ""
svcadm refresh cde-login
svcadm restart cde-login
Note that the latter command will actually cause all current sessions to terminate.

Casper
Brian Cameron
2007-12-10 18:04:18 UTC
Permalink
Post by Patrick Blaas
What i would like to do is keep using the cde-login and get access with XDMCP to the dtlogin. That doesn't seem to work in b76 x86. Changing to gdm is not a fix, it's a workarround imho.
This worked out-of-the-box on previous solaris versions.
Anyone know what changed here?
Does it make a difference if you configure the Xserver to allow TCP?
You can enable this by running the following command:

svccfg -s application/x11/x11-server setprop options/tcp_listen=true

I understand that the default setting of this properly changed from
true to false in a recent build, so this change might be causing your
problem.

Note that this effects both CDE login and GDM equally. You can not
use XDMCP with either login program without first setting the tcp_listen
property to true.

Brian
Atul Gore
2007-12-20 10:46:47 UTC
Permalink
Hi there:

Facing the same problem, i.e. to be able to enable remote X login....

tried the commands mentioned above, getting the following error. Any help is welcome!

***@imlstp1[/usr/dt/config]svcadm enable svc:/application/graphical-login/cde-login
svcadm: Pattern 'svc:/application/graphical-login/cde-login' doesn't match any instances


Thanks,
- Atul


This message posted from opensolaris.org
Alan Coopersmith
2007-12-20 16:24:23 UTC
Permalink
Post by Atul Gore
Facing the same problem, i.e. to be able to enable remote X login....
tried the commands mentioned above, getting the following error. Any help is welcome!
svcadm: Pattern 'svc:/application/graphical-login/cde-login' doesn't match any instances
What OS/release are you running? The cde login service was renamed
a while ago - you can 'svcs -a | grep login' to see if you have it
under a different name.
--
-Alan Coopersmith- alan.coopersmith-xsfywfwIY+***@public.gmane.org
Sun Microsystems, Inc. - X Window System Engineering
Gary Gendel
2007-12-20 21:28:41 UTC
Permalink
Hmmm... You're using SXCE/DE, not Indiana, right?

Try this:

svcs -a | grep cde-login

I see a service on my installation.

Gary


This message posted from opensolaris.org
Atul Gore
2007-12-21 07:08:18 UTC
Permalink
Gary:

Thanks for your response.

Here are more details about the system:

***@imlstp1[/]cat /etc/release
Solaris 10 6/06 s10s_u2wos_09a SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 09 June 2006

***@imlstp1[/]svcs -a | grep -i cde-login
***@imlstp1[/]

***@imlstp1[/]svcs -a | grep login
legacy_run Dec_12 lrc:/etc/rc2_d/S99dtlogin
disabled Dec_12 svc:/network/login:eklogin
disabled Dec_12 svc:/network/login:klogin
online Dec_12 svc:/system/console-login:default
online Dec_12 svc:/network/login:rlogin
maintenance Dec_12 svc:/application/gdm2-login:default
***@imlstp1[/]


Guessing, cde-login was never installed. Also, asking to the person who installed this host.

Many Thanks!

- Atul


This message posted from opensolaris.org
Gary Gendel
2007-12-21 13:50:42 UTC
Permalink
Atul,

Ok, now we're getting somewhere... This is the 6/06 version of Solaris 10. There have been a few updates since then. One of these is that dtlogin has been moved from the legacy (rc based) dtlogin script to the svc cde-login service. If I recall, I tried to use gdm back then without success. However, I think the reason it won't start is because dtlogin is running. You can check this by:

1) Stopping dtlogin "/etc/init.d/dtlogin stop"
2) Clearing the gdm problem "svcadm clear gdm2-login"

If gdm2 starts up, then the problem was that dtlogin was running.

Gary
Post by Atul Gore
Thanks for your response.
Solaris 10 6/06 s10s_u2wos_09a
SPARC
Copyright 2006 Sun Microsystems, Inc. All
Rights Reserved.
Use is subject to license
terms.
Assembled 09 June 2006
rep -i cde-login
legacy_run Dec_12 lrc:/etc/rc2_d/S99dtlogin
disabled Dec_12 svc:/network/login:eklogin
disabled Dec_12 svc:/network/login:klogin
online Dec_12
svc:/system/console-login:default
line Dec_12 svc:/network/login:rlogin
maintenance Dec_12
svc:/application/gdm2-login:default
Guessing, cde-login was never installed. Also, asking
to the person who installed this host.
Many Thanks!
- Atul
This message posted from opensolaris.org
Atul Gore
2007-12-25 00:20:29 UTC
Permalink
Gary:

Many Thanks for your help!.

I think there are 2 problems that I have here.

1. cde-login package hasn't been loaded on the operating system.
2. THe Network firewall has been blocking the X display from being sent on LAN. I connected a network cable to the back of the server i.e. a direct connection, and tried to connect to the server, and I was able to see the X display, note that this is GDM that I was able to see. (once I made GDM as default)

So, in summary, 1/ X display is blocked from the firewall (was/is not able to even see xclock over a terminal and passive exceed.) and am working with the network team to get the ports opened for LAN. and 2/ will also get the DVD to get cde-login service loaded so that I can get that working too...

Again, can't thank you enough for your help, Gary.

Wish you and everyone the list a very Merry Christmas and a wonderful year ahead of 2008!

Best Regards....
- Atul


This message posted from opensolaris.org
Atul Gore
2007-12-26 09:28:57 UTC
Permalink
and Finally.....

Once network team opened port 6000, boom! I could see the X Display working properly.... Now one of the machines where I had set up gnome as the default display manager, it shows that desktop whereas on the other one, where dtlogin is running in maintenance mode, it shows cde1.6 as default display manager!

Many Thanks everyone for your help!

best regards....
- Atul Gore.


This message posted from opensolaris.org

Loading...