[NTLUG:Discuss] A general UNIX question
Thomas T. Stocksdale
ted at krysty.collieland.com
Thu Sep 30 18:18:32 CDT 1999
On Thu, 30 Sep 1999, you wrote:
> Brian wrote:
> >
> > The kdm (KDE's answer to xdm) allows the user to select a window manager at
> > login. Don't know about the NT part, though...
>
> from what I remember, you can't do that with CDE on solaris, you have to
> use the dt-stuff that comes with it and set up another option (the
> defaults being CDE and Openwindows).
Sure you can. I have a SparcStation 20, and I set it up with KDE. You just
have to be willing to give up the ability to launch OpenWindows.
If you select OpenWindows at the login dialog, the launch scripts will first
try your $HOME/.xinitrc I copied the template from /usr/dt/config and then
modified it. I set mine up like this:
<***** Begin .xinitrc>
#####################################################################
### File: Xinitrc.ow
###
### Default Location: /usr/dt/config/Xinitrc.ow
###
### Purpose: OpenWindows session start script
###
### Invoked by: /usr/dt/config/Xsession.ow2
###
### Revision: @(#)Xinitrc.ow.src 1.2 98/11/30
###
### (c) Copyright 1993-1997 Sun Microsystems, Inc.
###
### Modified to start kde instead of OpenWindows
###
#####################################################################
if [ -f $HOME/.Xdefaults ]; then
xrdb -merge $HOME/.Xdefaults # Load Users X11 resource database
fi
eval `locale_env -env` # Set Locale Environment
PATH=/bin:/usr/bin:/usr/ucb:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/usr/local/kde/bin:/usr/java/bin:/usr/netscape
sleep 25 & pid=$!
exec /usr/local/kde/bin/kcontrol -init >>~/error.log 2>&1 &
sleep 3s
exec /usr/local/kde/bin/krootwm >>~/error.log 2>&1 &
sleep 3s
exec /usr/local/kde/bin/kpanel >>~/error.log 2>&1 &
sleep 3s
exec /usr/local/kde/bin/kbgndwm >>~/error.log 2>&1 &
sleep 3s
exec /usr/local/kde/bin/kwm >>~/error.log 2>&1 & wmpid=$!
sleep 3s
exec /usr/local/kde/bin/kfm -ncols 96 >>~/error.log 2>&1 &
xmodmap -e "keycode 22 = Escape"
xmodmap -e "keycode 125 = F1"
wait $pid
wait $wmpid # Wait for wm (key client) to exit
rm -f error.log
<***** end .xinitrc>
Tom Stocksdale
More information about the Discuss
mailing list