LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 05-09-2010, 12:37 PM   #1
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Rep: Reputation: 15
sxce: dtlogin: missing cde


hi everybody,

for a few years now i've been googling for answers about linux/unix, and every third solution i've come across was posted here. so, since now i'm stuck, i have to act like a noob and ask for help. : ) please feel free to yell at me if i do something wrong. : )

so my problem is that after hunting down a dvd of sxce (solaris express community edition - the one which has the 'best of both worlds', e.g. solaris and opensolaris) and installing it, i only see gnome as a selectable session in the dtlogin screen. since i've installed the entire distribution (excluding staroffice, but that's hardly a dependency of cde), i think this is either a bug (which it very well may be, since this is beta software), or it's intended for some sick purpose. ; )

regardless, i'm a long-time fan of cde, and i want it badly. the only problem is that i don't really know where to start. i can't google the solution, since i'm either directed to some over-detailed sun documentation page which has everything but information i need, or ten year old pages.


sorry for writing a novel, my real question is that where and how can i customize the available sessions in in dtlogin, and what (special daemons, config files etc.) exactly do i need to start cde?

thanks,
badmad

Last edited by bamdad; 05-09-2010 at 12:48 PM. Reason: appearance
 
Old 05-09-2010, 12:45 PM   #2
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
one more thing:

i've tried to log in with a failsafe xterm, which is totally possible. tried executing some stuff:
Code:
# dtwm
Segmentation Fault - core dumped
# dtpad
Segmentation Fault - core dumped
# gedit
(displays normally, without window decorations, of course)
# exec twm
(starts normally, displays window decorations)
# exec dtwm
(X crashes, i'm returned to dtlogin)
tried logging into gnome, which works just fine, even as root.

Last edited by bamdad; 05-09-2010 at 12:47 PM.
 
Old 05-10-2010, 02:33 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,493

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What SXCE build are you using ?
Why is dtwm crashing ?
Code:
pstack core
truss -f dtwm
 
Old 05-10-2010, 06:02 PM   #4
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
it's build 130, but i think i know what the problem was.

i tried to install using the dvd i've previously burnt on another machine, and it wouldn't boot at all (it's an x86-64 machine). after banging my head to the wall, i realised that i didn't check the md5 sum of the image i downloaded. and sure enough it failed. my problems are most likely related to corrupted data.

i've reinstalled solaris 10 since then (flar images are lifesavers). i'll try to grab sxce again, possibly from another source (i used sunfreepacks.com, but the problem might very well be my internet connection).

anyway, thank you.

Last edited by bamdad; 05-10-2010 at 06:04 PM.
 
Old 05-10-2010, 06:12 PM   #5
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
by the way, do you know a way to install cde on opensolaris? i tried it before (installing SUNWdtwm along with all of its dependencies), but i couldn't even start dtlogin. is there a 'canonised' way of doing it?

Last edited by bamdad; 05-10-2010 at 06:18 PM.
 
Old 05-12-2010, 12:56 PM   #6
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
okay, i'm really stumped now. i managed to re-download the sxce iso, this time without errors. it installed fine. but now i'm facing the same exact problem. i'm posting this from the perfectly functional gnome session, if that matters.

the answers to your original question:
Code:
bamdad@YURI:~$ pstack core
core 'core' of 2660:	/usr/dt/bin/dtterm -C -ls -bg white -fg black -xrm *menuBar:False -xrm
 d2677a96 XFontsOfFontSet (0, 8046348, 804634c) + 6
 d2b3f4ee _DtTermPrimGetFontSet (80e9948, d22587c8, 8046394, 8046398) + 19e
 d2b3f6b3 CreateRenderFont (80e9948, d22587c8, 80e9a54, 80e9a4c) + 33
 d2b3fbc3 Initialize (8046d00, 80e9948, 80471e8, 8046c90) + 267
 d2799297 CallInitialize (d2b7ecac, 8046d00, 80e9948, 80471e8, f, d21db180) + d3
 d2799239 CallInitialize (d2b7fc58, 8046d00, 80e9948, 80471e8, f, 80e9948) + 75
 d279982b xtCreate (d2b6d65c, 0, d2b7fc58, 80e8078, 8072e50, 80471e8) + 237
 d2799cb9 _XtCreateWidget (d2b6d65c, d2b7fc58, 80e8078, 80471e8, f, 0) + 179
 d2799e24 XtCreateWidget (d2b6d65c, d2b7fc58, 80e8078, 80471e8, f) + 98
 d2b59793 DtCreateTerm (80e8078, d2b6d65c, 80471e8, f) + 67
 d2b62978 Initialize (80473c0, 80c1540, 80478f0, 8047390) + 6f4
 d2799297 CallInitialize (d2b82eb4, 80473c0, 80c1540, 80478f0, 0, 80c1540) + d3
 d279982b xtCreate (8057c2c, 0, d2b82eb4, 808ec78, 8072e50, 80478f0) + 237
 d2799cb9 _XtCreateWidget (8057c2c, d2b82eb4, 808ec78, 80478f0, 0, 0) + 179
 d2799e24 XtCreateWidget (8057c2c, d2b82eb4, 808ec78, 80478f0, 0) + 98
 d2b6337b DtCreateTermView (808ec78, 8057c2c, 80478f0, 0) + 67
 080540f0 CreateInstance (808ec78, 8057c2c, 80478f0, 0, 1) + 1c
 08054d01 main     (1, 8047df8, 8047e28) + 585
 08053772 _start   (b, 8047ebc, 0, 8047ed2, 8047ed6, 8047eda) + 7a
i'll attach a file with the output of 'truss -f /usr/dt/bin/dtwm', since it's kind of long. i'm not at all a UNIX newbie, but this is far beyond me. thank you for your help in advance.
Attached Files
File Type: txt truss.txt (74.0 KB, 2 views)
 
Old 05-12-2010, 02:59 PM   #7
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
i have something else to add, might give someone who knows what's going on a clue about this. when i try to start a simple cde application from gnome (which is still working like a charm), i get this:
Code:
bamdad@YURI:~$ /usr/dt/bin/dtcalc 
Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*utf*-*-*-*-*-*-*-*-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface system-medium-r-normal-s*utf*-*-*-*-*-*-*-*-*" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning: 
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed.  Cannot load font.

Warning: 
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed.  Cannot load font.

Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*utf*-*-*-*-*-*-*-*-*" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning: 
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed.  Cannot load font.

Warning: 
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed.  Cannot load font.

//////this repeats itself for a long time until:
Segmentation Fault (core dumped)
 
Old 05-12-2010, 03:49 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,493

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Yes, it looks like cde fonts can't be loaded and perhaps are missing. As it doesn't looks like a known problem, either you are the last person using CDE on build 130 or perhaps the locale is part of the issue. You might try to switch to the C or en_US locale and see if it runs better.

Anything of interest in /export/home/bamdad/.dt/errorlog ?
 
1 members found this post helpful.
Old 05-12-2010, 04:16 PM   #9
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre
Yes, it looks like cde fonts can't be loaded and perhaps are missing. As it doesn't looks like a known problem, either you are the last person using CDE on build 130 or perhaps the locale is part of the issue.
i very well might be. ; )
Quote:
Originally Posted by jlliagre
Anything of interest in /export/home/bamdad/.dt/errorlog ?
unfortunately, no. just remnants of my previous failed attempts:
Code:
Wed May 12 17:48:10 2010
Workspace Manager: Another window manager is running on screen 0
Wed May 12 17:48:10 2010
Workspace Manager: Unable to manage any screens on display.
Quote:
Originally Posted by jlliagre
You might try to switch to the C or en_US locale and see if it runs better.
thanks, i'll do that. currently it's set to 'LANG=en_US.UTF-8' in /etc/default/init. i presume if i remove/comment out that line, it'll default to posix c (my solaris install doesn't have said line and uses the default c locale.
i'll report back.
 
Old 05-12-2010, 04:40 PM   #10
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
wow, now i can start cde applications from the gnome-terminal, and i can start a failsafe session, but when i try to start dtsession (from the failsafe terminal), it freezes and i have to kill it over ssh. how exactly can one add the cde sesssion properly to the dtlogin screen?
 
Old 05-19-2010, 10:15 PM   #11
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
um.. bump? i mean i know it's unix and it's not supposed to be user-friendly, but there has to be a config file i'm missing somewhere..
 
Old 05-20-2010, 01:01 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,493

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
There are several scripts files you need to modify and/or create to integrate a new graphic environment. This isn't well documented as you already notice. You need some reverse engineering to understand how it works.
 
Old 05-20-2010, 07:31 AM   #13
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
There are several scripts files you need to modify and/or create to integrate a new graphic environment. This isn't well documented as you already notice. You need some reverse engineering to understand how it works.
i'm doing just that, but i could use a bit of help nonetheless. : )

the best resource i found so far is this: http://www.tiem.utk.edu/~peek/solari...nal/index.html. the problem is that it's for solaris 2.7, but here's hoping that nothing major has changed since then..

according to that the three steps of configuring e.g. fvwm are:

1, create a non-default dir structure in /etc/dt - this should obviously be skipped.

2, create monochrome and colour icons for the window manager - this again should be pointless, at least for now, since cde _is_ installed.

3, create an Xresources.$WMNAME$ file in /usr(instead of /etc)/dt/config/$LOCALE$(in my case C)/Xresources.d/

okay, so on to step 3.. i did check to see if there's an 'Xresources.CDE' or 'Xresources.dt' anywhere ('sudo find / -name Xresources.* -print'). no. but there's an Xresources.jds in every locale subdir and there's an Xsession.jds in /usr/dt/config. this is not at all surprising, since i can log into gnome (java desktop system = jds?) just fine.

the /usr/dt/config/C/Xresources.d/Xresources.jde looks like this:
Code:
Dtlogin*altDtsIncrement     True
Dtlogin*altDtName:          GNOME
Dtlogin*altDtKey:           /usr/bin/gnome-session
Dtlogin*altDtStart:         /usr/dt/config/Xsession.jds
Dtlogin*altDtLogo:          JDS
so.. the name should be 'CDE'. from what i've learnt, the original cde startup script should be in /usr/dt/bin/Xsession, and the executable for the cde session is /usr/dt/bin/dtsession. the original logo file i found in /usr/dt/appconfig/icons/C is JDS.pm, *and* there's also a Dtlogo.pm, thus the logo is 'Dtlogo'. i made a copy of the file, called it Xresources.dt and modified it accordingly.

now for the test. i logged out and selected the newly created 'CDE' at the dtlogin screen. and now it drops me to a failsafe terminal. of course, i can start dtsession from there, but that's not what we wanted, and besides, starting dtwm this way always has the issue of locking up when you click on some parts of the cde panel. i don't know what's causing this, this plagued me on opensolaris, too, after installing cde from the solaris dvd.

it seems to me that there's only one 'legit' way of starting cde, any other route is likely to produce unexpected bugs. if sxce was still active, i'd ask a sun guru on the opensolaris forums, who'd probably say 'hey, you only have to edit this one line here..'. but alas, sxce is discontinued, and since oracle devoured sun, opensolaris seems to be, too.

anyway, i'm sure there's a simple workaround for this, since cde is technically _installed_, and notice that all the names in the above file say 'Dtlogin*alt..' there has to be a default Xresources somewhere..

Last edited by bamdad; 05-20-2010 at 07:44 AM.
 
Old 05-20-2010, 04:10 PM   #14
bamdad
Member
 
Registered: May 2010
Location: budapest
Distribution: debian/ubuntu, slackware, bsd, (open)solaris
Posts: 40

Original Poster
Rep: Reputation: 15
well, after going through countless configuration files, eleven year old websites, manpages etc., i've finally concluded that either this is impossible, or i'm the one that can't accumulate enough knowledge about dtlogin.

so my conclusion is that i'm moving to opensolaris (there's a rumour going around that there will in fact be a 2010.5 release), and i'll try installing dtlogin and cde there. i'll try to bring up this thing on the opensolaris forums. there are some motif/cde components in the official repositories (presumably for backward compatibility), so i'll just have to pkgadd the rest and figure out how to log in.

in any case, thanks for all your help, at least now i have some leads to follow.
 
  


Reply

Tags
opensolaris, solaris


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
Are there any linux distros with cde, or any way to install cde? woms14 Linux - General 5 01-15-2010 09:08 PM
CDE graphical-login/cde-login in maintenance state czezz Solaris / OpenSolaris 1 09-30-2009 09:20 AM
Setting up snmp on SXCE build 116 kayasaman Solaris / OpenSolaris 3 09-15-2009 04:17 PM
SXCE b114: cannot boot into failsafe mode crisostomo_enrico Solaris / OpenSolaris 0 05-24-2009 12:38 PM
SXCE: Adding HP Smart Array Controller Driver coolster Solaris / OpenSolaris 1 01-07-2009 11:33 AM


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

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