LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Cant connect to X-window (XDMCP problem) (https://www.linuxquestions.org/questions/solaris-opensolaris-20/cant-connect-to-x-window-xdmcp-problem-802889/)

czezz 04-19-2010 12:01 PM

Cant connect to X-window (XDMCP problem)
 
I have upgraded solaris 9 to latest solaris 10 release (upg from DVD).
Afterwards I am not able to connect to system via Xmanager (XDMCP).
I am able to access login screen but on next step, when CDE is loading connection is close.

There is no problem with SSH connection.

I have perform this procedure:
http://saifulaziz.wordpress.com/2009...login-problem/
but it didnt help at all.

There are no single trace in syslog and messages.
Any idea what can I try more and where to look for logs ?

jlliagre 04-25-2010 01:00 AM

Does it work if you select either gnome or the failsafe (xterm only) session instead of CDE ?

czezz 04-25-2010 04:37 PM

I tried to start/select JavaDesktop (GNOME) but it behaved exactelly this same - connection was closed :(

jlliagre 04-25-2010 04:52 PM

Did you look in the CDE and X server logs ?

ADxD_7 04-26-2010 02:59 PM

A couple things you should check. ( on the server )

Do a

#netstat -an | grep 177

you should get

*.177 Idle
*.177 Idle

If this does not work then you may need to do this again:

#svccfg -s cde-login setprop dtlogin/args=\"\"
#svcadm restart cde-login

or you may just need to reboot the machine, I have had to do that as well to get the port open.

You also need to make sure that /etc/dt/config/Xaccess has an entry that looks like

*.your.domain.com

in it at the end. Just copy over /usr/dt/config/Xaccess to /etc/dt/config/Xaccess and edit it.

You also should copy over /usr/dt/config/Xconfig to /etc/dt/config/Xconfig - it should be good by default but I would look over just in case.


To test it do a /usr/openwin/bin/X -query <hostnameofserver> :0

And see if it works.

One other thing I have had to do on the client on some machines is a

/usr/openwin/bin/xhost + <hostnameofserver>

while X is running....it fixed the " Manager unwilling host unwillng " problem of a couple of machines

For logs of whats happening look in /var/dt/Xerrors

Hope that helps.

czezz 05-01-2010 03:40 AM

Hi,
here is a solution of my problem.
Two files I had to watch to find out whats wrong:
Code:

/var/dt/Xerror
/.dt/startlog


At 1st I had to look into /var/dt/Xerror where I have found that system was missing of libfont, libtypesclr
Code:

cat /var/dt/Xerror

ld.so.1: Xsun: fatal: libfont.so.1: open failed: No such file or directory
ld.so.1: Xsun: fatal: libtypesclr.so.0: open failed: No such file or directory
ld.so.1: Xsun: fatal: libfont.so.1: open failed: No such file or directory
ld.so.1: Xsun: fatal: libtypesclr.so.0: open failed: No such file or directory
ld.so.1: Xsun: fatal: libfont.so.1: open failed: No such file or directory
ld.so.1: Xsun: fatal: libtypesclr.so.0: open failed: No such file or directory
ld.so.1: Xsun: fatal: libfont.so.1: open failed: No such file or directory
ld.so.1: Xsun: fatal: libtypesclr.so.0: open failed: No such file or directory
ld.so.1: Xsun: fatal: libfont.so.1: open failed: No such file or directory

I dont know how to list what pkg contain what library... (any one does ?).
So I have executed pkginfo -i | grep font on my system and anothere where X-window works.
Then I installed pkgs I was missing.

In short: one of below pkg contain missing libs: ibfont, libtypesclr

Code:

pkgadd -d .

SUNWarrf
SUNWgnome-fonts
SUNWstaroffice-ooofonts
SUNWxwcft
SUNWxwfnt
SUNWxwoft

After that you may verify result:
Code:

# ldd /usr/openwin/bin/Xsun | grep libfont
        libfont.so.1 =>  /usr/openwin/server/lib/libfont.so.1
# ldd /usr/openwin/bin/Xsun | grep libtypesclr.so.0
        libtypesclr.so.0 =>      /usr/openwin/server/lib/libtypesclr.so.0

However this didnt solve problem yet.
At next try, Xmanager (XDMCP) behaved exactelly this same.
Then I have checked /.dt/startlog
One of entries was looking like this. Library libsmartcard.so.1 was missing.
Code:

ld.so.1: dtsession_res: fatal: libsmartcard.so.1: open failed: No such file or directory
/usr/dt/bin/Xsession[8]: 3322 Killed

Again, I have no way to find what package contain that lib.
This time I was lucky and google.com helped me.
Below pkgs must be installed:

Code:

pkgadd -d .

The following packages are available:
  1  SUNWocf      Open Card Framework
                  (sparc) 11.10.0,REV=2005.01.21.15.53
  2  SUNWocfr    Configuration files for Open Card Framework
                  (sparc) 11.10.0,REV=2005.01.21.15.53

This solved my problem and hope it may help someone else.

jlliagre 05-01-2010 10:49 AM

Thanks for the feedback.

For the record, you know from what package a file belongs to with this command:

Older Solaris:
Code:

grep filename /var/sadm/install/contents
Solaris 10:
Code:

pkgchk -l -P filename
OpenSolaris:
Code:

pkg search -l filename


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