Studies and Additional X window Sessions Assessed via CDE login on a Solaris Machine NOTES from Solaris 2.6 installation /usr/openwin installed as normal The CDE login setup left to autostart (default) Symbolic links for X window libraries to /usr/openwin as defined by installation. No /usr/bin/X11 or /usr/lib/X11 symbolic links Should I link these to our extra X commands? Added "nologo" option to the Xserver launch command in file /usr/dt/config/Xservers Console Notes With my .dtprofile 'force xdm login' NO console is started! While it probably should be pre-started for user. When the dtlogin window and CDE session runs an unknown program fbconsole is running. Openwindows session by default starts a console command tool DtLogin Notes Under CDE, dtlogin is the replacement XDM program doing all its functions and MORE. Its configuration is in /usr/dt/config/ It provides means of selecting session, changing current session, return (temporarilly) to the console, etc. Also in this directory is the Default X session scripts for the various type of Xsession this CDE is providing. Some other session files include... Xpasswd -- Change users password session (very minimal) Xfailsafe -- Fall back xsession, for when user stuffs his setup. Dtlogin launches your last session is noted in Users home ".dt/sessions/lastsession", if it is known. If user has no "lastsession" file. A list of posible sessions will be provided. Additional sessions can be added in the "/usr/dt/config/C/Xresources" file with the following resources.. Dtlogin*altDts: Number of alturnative Sessions (Def: 1 - CDE) I do not know how the extra session setup resources in "/usr/dt/config/C/Xresources.d" such as "Xresources.ow" are also added at this time. See ''Alternate Desktop Session Resources'' in dtlogin manpage. Default Session Notes (/usr/dt/bin/Xsession) This is not a real session but a session setup and selector script. A users ".dtprofile" can override and modify this control. This could be used to force the user into a specific session setup. This is NOT a good way however of setting a global session for all users. CDE Session Notes... Resources (directly in "/usr/dt/config/C/Xresources" file) =======8<-------- Dtlogin*altDts: 1 Dtlogin*altDtName1: Common Desktop Environment (CDE) Dtlogin*altDtKey1: /usr/dt/bin/dtwm Dtlogin*altDtStart1: /usr/dt/bin/Xsession Dtlogin*altDtLogo1: Dtlogo =======8<-------- The Dtlogo image is located in /usr/dt/appconfig/icons/C/Dtlogo.[bp]m In bitmap and pixmap versions. and is of course 237 pixels square. Openwindows Session Notes.. (Xsession.ow) Resources (in-directly in "/usr/dt/config/C/Xresources.d/Xresources.ow" ) =======8<-------- Dtlogin*altDtsIncrement: True Dtlogin*altDtName: OpenWindows Desktop Dtlogin*altDtKey: /usr/openwin/bin/olwm Dtlogin*altDtStart: /usr/dt/config/Xsession.ow Dtlogin*altDtLogo: OWlogo =======8<-------- The script "/usr/dt/config/Xsession.ow" sets some environment variables which overrides some defaults in the /usr/dt/bin/Xsession. which it then calls (probably should exec that script ;-). =======8<-------- export SESSIONTYPE="altDt" export DTSTARTIMS="False" export SDT_ALT_SESSION="/usr/dt/config/Xsession.ow2" export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Starting OpenWindows Desktop' &" export SDT_NO_DSDM="" =======8<-------- These environment variables do the following... SESSIONTYPE Replace first session and hello checks with our settings DTSTARTIMS Ensure it will be left UNSET in Xsession ???? "Xsession.ow2" in turn looks for a home ".xinitrc" file to run before falling back to the default "Xinitrc.ow" if not found. This is sort of like the old xdm Session script ------------------------------------------------------------------------------- Replacing the Initial Login Window Image... The logo that appears first is one called "SDtlogo.bm" or "SDtlogo.pm" in logos directory "/usr/dt/appconfig/icons/C/". All the logos used on the Dtlogin window are 237 pixels square. To replace it, create a 237x237 pixel pixmap put in on the machine... Then uncomment and modify the followinrg resource in the "/usr/dt/config/C/Xresources" file, to specify the location of the new initial logo that appears.... Dtlogin*logo*bitmapFile: /opt/X11/lib/X11/twm/Logo_start.pm The stop and restart dtlogin completely. NOTE the ".pm" must be present or the file will not be located, unlike the extra CDE sessions added below. As a dirty underhanded hack you could also just replace the "SDtlogo.pm" file in the "/usr/dt/appconfig/icons/C/" directory. ------------------------------------------------------------------------------- Creation of a "Old CIT Session" Define a Old CIT session (for those without a local .xsession file) This should be modified to call a script to 'setup' and call /usr/dt/bin/Xsession instead of launching directly. cat <-EOF > /opt/X11/lib/X11/twm/DTresources.old_cit Dtlogin*altDtsIncrement: True Dtlogin*altDtName: Old CIT Session Dtlogin*altDtKey: /opt/X11/bin/ctwm Dtlogin*altDtStart: /opt/X11/lib/X11/twm/DTsession.old_cit Dtlogin*altDtLogo: /opt/X11/lib/X11/twm/GUlogo EOF ln -s /opt/X11/lib/X11/twm/DTresources.old_cit \ /usr/dt/config/C/Xresources.d/Xresources.old_cit cat <-EOF > /opt/X11/libX11/twm/DTsession.old_cit #!/bin/ksh export SESSIONTYPE=altDt export SDT_ALT_SESSION="/opt/X11/lib/X11/twm/Xsession.xdm" export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Old CIT Session' &" exec /usr/dt/bin/Xsession EOF From Old CIT setup copied old session files libX11/twm/Environment libX11/twm/xmodmap.* libX11/twm/Xresources libX11/twm/Xsession libX11/twm/system.ctwmrc libX11/twm/system.twmrc Also libX11/twm/Xsession.xdm ( from libX11/xdm/Xsession in old set) These scripts require only minor modifications for new Environment EG: the various path environment variables. And locations of bitmap images etc. -------------------------------------------------------------------------------