LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-19-2010, 12:01 PM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 798

Rep: Reputation: 39
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 ?

Last edited by czezz; 04-20-2010 at 03:14 AM.
 
Old 04-25-2010, 01:00 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,764

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Does it work if you select either gnome or the failsafe (xterm only) session instead of CDE ?
 
Old 04-25-2010, 04:37 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 798

Original Poster
Rep: Reputation: 39
I tried to start/select JavaDesktop (GNOME) but it behaved exactelly this same - connection was closed
 
Old 04-25-2010, 04:52 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,764

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Did you look in the CDE and X server logs ?
 
Old 04-26-2010, 02:59 PM   #5
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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.

Last edited by ADxD_7; 04-26-2010 at 03:02 PM.
 
1 members found this post helpful.
Old 05-01-2010, 03:40 AM   #6
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 798

Original Poster
Rep: Reputation: 39
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.
 
Old 05-01-2010, 10:49 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,764

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
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
 
  


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
XDMCP issues - Cannot connect kushalkoolwal Debian 3 04-02-2009 12:41 PM
remote connect XDMCP server Imiro Linux - Software 1 07-15-2006 11:00 AM
can't connect to xdmcp server monkeyman2000 Debian 1 09-11-2004 02:57 PM
Server Status can not display by XDMCP connect taisuke Linux - Networking 1 08-26-2004 09:37 PM
Connect to XDMCP server from Linux Kocil Linux - Networking 1 08-27-2003 04:06 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:33 PM.

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