[kde-solaris] Problems getting Stefan's kde3.1.3 running

Salman Sheikh sheikh at pop500.gsfc.nasa.gov
Wed Sep 10 11:42:08 CEST 2003


Hello,

I have a sparc solaris 8 box. I had my sys admin install all the 
packages. We also installed kderequired but not using the package 
install method. Instead, we untarred the file into a directory and I 
copied all the directory structure from /usr/local within that package 
to /opt/local. I also went into /opt/local/lib and changed all the .la 
files to have /opt/local instead of /usr/local.  I also changed all 
occurences of /opt/Forte-7.0/SUNWspro in the .la files to /opt/SUNWspro 
because the directory structure for those on my machine is that way. I 
have attached the /usr/dt/config startup files as well as the startkde 
script. We needed to relocate the required files because /usr/local on 
our network here at NASA is automounted from a remote machine for all 
users so the sysadmin prefers for us not to tamper with that and so I 
decided to put everything in /opt/local instead. I did not do it with 
the pkgadd relocated option. Is this a problem?

Second, I have a some other problems creeping up. When I run kde I get 
some Htt IM Status windows popping up all over the place. I have 
included two snapshots to show what I mean. Everytime I open any window 
these windows pop up. Also, I noticed in Stefan's Xinitrc file that he 
had a directory called /usr/lib/locale/ISO8859-1. I had no such 
directory. I did have the following:

[magoo] salman: ls /usr/lib/locale
C/            en_US.UTF-8/  iso_8859_1/   POSIX@
common/       geo           lcttab

[magoo] salman: ls /usr/lib/locale/en_US.UTF-8/
en_US.UTF-8.so.2*          LC_MONETARY/ 
methods_en_US.UTF-8.so.2*
LC_COLLATE/                LC_NUMERIC/                sparcv9/
LC_CTYPE/                  LC_TIME/
LC_MESSAGES/

[magoo] salman: ls /usr/lib/locale/iso_8859_1/
iso_8859_1.so.2*  LC_CTYPE/         sparcv9/


Which should I set to the variables in Xinitrc. Or are do I need to 
install something else?

Lastly, in my log file of startkde i see this in the beginning:


ld.so.1: mkfontdir: fatal: relocation error: file 
/usr/openwin/server/lib/libfont.so.1: symbo
l XpClientIsBitmapClient: referenced symbol not found
/opt/kde-3.1.3/bin/startkde: line 126:  3103 Killed 
mkfontdir "$usr_odir"
ld.so.1: mkfontdir: fatal: relocation error: file 
/usr/openwin/server/lib/libfont.so.1: symbo
l XpClientIsBitmapClient: referenced symbol not found
/opt/kde-3.1.3/bin/startkde: line 128:  3107 Killed 
mkfontdir "$usr_fdir"
kchmod: Setting X11 security permissions ...


What does this mean and how do I remedy it?

Thanks to Stefan for all the great work in getting some packages of 
kde3.1.3. This kde is a real tuff thing to get to compile without any 
errors in all the various packages. I appreciate some ready made stuff.


Salman


-- 
***********************************************
Salman Sheikh
NASA/Goddard Space Flight Center
MicroElectronics and Signal Processing Branch
Code 564
Greenbelt, MD 20771
(301)286-3763


"Even A Smile is Charity"

***********************************************

-------------- next part --------------
Dtlogin*altDtsIncrement:  True

Dtlogin*altDtName:	KDE 3.1.3
Dtlogin*altDtKey: 	/opt/kde-3.1.3/bin/startkde 
Dtlogin*altDtStart: 	/usr/dt/config/Xsession.KDE-3.1.3
Dtlogin*altDtLogo:  	/usr/dt/appconfig/icons/C/KDE31GearLogin
Dtlogin*altDtXserverFlags: -defdepth 24

-------------- next part --------------
#!/bin/ksh 
#####################################################################
###  File:              Xsession.KDE-3.1.3
###
###  Default Location:  /usr/dt/config/Xsession.KDE-3.1.3
###
###  Purpose:           KDE 3.1.3 session start script
###
###  Invoked by:        Solaris Desktop Login Manager (dtlogin)
###
#####################################################################

DTDSPMSG=/usr/dt/bin/dtdspmsg

export QTDIR="/opt/qt-3.2.0-32"
export KDEROOT="/opt/kde-3.1.3"
export LD_LIBRARY_PATH="/lib:/usr/lib:/opt/local/lib:/opt/local/ssl/lib:/usr/dt/lib:${QTDIR}/lib:${KDEROOT}/lib:/usr/openwin/lib:${LD_LIBRARY_PATH}"
export PATH="/bin:/usr/bin:/usr/sbin:/opt/local/bin:/usr/dt/bin:${QTDIR}/bin:${KDEROOT}/bin:/usr/openwin/bin:${PATH}"
export SESSIONTYPE="altDt"
export SDT_ALT_SESSION="/usr/dt/config/Xsession2.KDE-3.1.3"
export SDT_ALT_HELLO="/bin/true"
export SDT_NO_APPGATHER="1"
export SDT_NO_TOOLTALK="1"
export SDT_NO_DTDBCACHE="1"

/bin/chmod 7777 /tmp/.X11-unix
/bin/chmod 7777 /tmp/.X11-pipe
/bin/chmod 7777 /tmp/.ICE-unix
exec /usr/dt/bin/Xsession

-------------- next part --------------
#!/bin/ksh 
#####################################################################
###  File:              Xsession2.KDE-3.1.3
###
###  Default Location:  /usr/dt/config/Xsession2.KDE-3.1.3
###
###  Purpose:           KDE 3.1.3 Desktop start script
###
###  Invoked by:        /usr/dt/bin/Xsession
###
#####################################################################

export QTDIR="/opt/qt-3.2.0-32"
export KDEROOT="/opt/kde-3.1.3"
export LD_LIBRARY_PATH="/lib:/usr/lib:/opt/local/lib:/opt/local/lib/xine/plugins/1.0.0:/usr/dt/lib:${QTDIR}/lib:${KDEROOT}/lib:/usr/openwin/lib"
export PATH="/bin:/usr/bin:/usr/sbin:/opt/local/bin:/usr/dt/bin:${QTDIR}/bin:${KDEROOT}/bin:/usr/openwin/bin:${PATH}"

# First a little namespace cleanup of vars associated with this
# (and /usr/dt/bin/Xsession.ow) scripts.

# unset SDT_ALT_SESSION
# unset SDT_ALT_HELLO
# unset SDT_NO_DSDM

#
# Find "xinitrc" file by standard precedence rules and start 
# the user's Desktop.
#

DEFAULT_XINITRC="/usr/dt/config/Xinitrc.KDE-3.1.3"
HOME_XINITRC="$HOME/.xinitrc"

if [ -f $HOME_XINITRC ]; then
    XINITRC=$HOME_XINITRC
else
   XINITRC=$DEFAULT_XINITRC
fi

echo 'Welcome to KDE 3.1.3 Desktop'

/bin/chmod 7777 /tmp/.X11-unix
/bin/chmod 7777 /tmp/.X11-pipe
/bin/chmod 7777 /tmp/.ICE-unix

if [ -x /usr/dt/bin/xmbind ]; then
    /usr/dt/bin/xmbind
fi

if [ -f $XINITRC ] ; then
    echo "using xinitrc file: $XINITRC"
    /bin/ksh $XINITRC
fi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot3.png
Type: image/png
Size: 524129 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-solaris/attachments/20030910/6dc62dc2/snapshot3-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot4.png
Type: image/png
Size: 517474 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-solaris/attachments/20030910/6dc62dc2/snapshot4-0001.png
-------------- next part --------------
ld.so.1: mkfontdir: fatal: relocation error: file /usr/openwin/server/lib/libfont.so.1: symbol XpClientIsBitmapClient: referenced symbol not found
/opt/kde-3.1.3/bin/startkde: line 126:  3103 Killed                  mkfontdir "$usr_odir"
ld.so.1: mkfontdir: fatal: relocation error: file /usr/openwin/server/lib/libfont.so.1: symbol XpClientIsBitmapClient: referenced symbol not found
/opt/kde-3.1.3/bin/startkde: line 128:  3107 Killed                  mkfontdir "$usr_fdir"
kchmod: Setting X11 security permissions ... 
startkde: KDE Starting up...
setrlimit: Not owner
setrlimit: Not owner
kdeinit: Launched DCOPServer, pid = 3120 result = 0
setrlimit: Not owner
_KDE_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
DCOP: register 'anonymous-3117' -> number of clients is now 1
DCOP: register 'anonymous-3120' -> number of clients is now 2
DCOP:  'anonymous-3117' now known as 'ksplash'
DCOP: unregister 'anonymous-3120'
kdeinit: Launched KLauncher, pid = 3125 result = 0
DCOP: register 'klauncher' -> number of clients is now 2
DCOP: unregister 'klauncher'
DCOP: register 'klauncher' -> number of clients is now 2
DCOP: register 'anonymous-3125' -> number of clients is now 3
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
DCOP: new daemon klauncher
DCOP: unregister 'anonymous-3125'
setrlimit: Not owner
kdeinit: Launched KDED, pid = 3127 result = 0
DCOP: register 'kded' -> number of clients is now 2
DCOP: unregister 'kded'
DCOP: register 'kded' -> number of clients is now 2
DCOP: register 'anonymous-3127' -> number of clients is now 3
kio (KLauncher): KLauncher: Got kdeinit_exec_wait('kbuildsycoca', ...)
kdeinit: Got EXEC_NEW 'kbuildsycoca' from launcher.
kio (KLauncher): kbuildsycoca (pid 3129) up and running.
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
DCOP: register 'kbuildsycoca' -> number of clients is now 4
kbuildsycoca running...
DCOP: register 'anonymous-3129' -> number of clients is now 5
kbuildsycoca: checking file timestamps
kbuildsycoca: timestamps check ok
DCOP Cleaning up dead connections.
DCOP: unregister 'anonymous-3129'
DCOP: unregister 'kbuildsycoca'
kdeinit: PID 3129 terminated.
kio (KLauncher): KLauncher: Got kdeinit_exec_wait('kconf_update', ...)
kdeinit: Got EXEC_NEW 'kconf_update' from launcher.
kio (KLauncher): kconf_update (pid 3130) up and running.
kdeinit: PID 3130 terminated.
DCOP: new daemon kded
kded: Successfully loaded module 'kinetd'
DCOP: unregister 'anonymous-3127'
kdeinit: PID 3127 terminated.
kdeinit: opened connection to :0.0
kdeinit: Launched 'kcminit', pid = 3131 result = 0
DCOP: register 'kcminit-3131' -> number of clients is now 2
kdeinit: Got SETENV 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/salman/.gtkrc:/home/salman/.gtkrc-kde' from klauncher.
kdeinit: Got SETENV 'KDE_MULTIHEAD=false' from klauncher.
kio (KLauncher): KLauncher: Got start_service_by_desktop_name('kmixctrl_restore', ...)
kdeinit: Got EXEC_NEW 'kmixctrl' from launcher.
kio (KLauncher): kmixctrl (pid 3135) up and running.
kdecore (KLibLoader): WARNING: library=kcm_konqhtml: file=/opt/kde-3.1.3/lib/kde-3.1.3/kcm_konqhtml.la: ld.so.1: kdeinit: fatal: libgcc_s.so.1: open failed: No such file or directory
kdecore (KLibLoader): library=libkcm_konqhtml.la: No file names libkcm_konqhtml.la found in paths.
kdecore (KLibLoader): The KLibLoader contains the library kcm_keyboard (1107b8)
kdecore (KLibLoader): The KLibLoader contains the library kcm_xmlrpcd (102158)
kdecore (KLibLoader): The KLibLoader contains the library kcm_access (121b88)
kdecore (KLibLoader): The KLibLoader contains the library kcm_kmix (1223d8)
kdecore (KLibLoader): The KLibLoader contains the library kcm_style (10f568)
kdecore (KLibLoader): The KLibLoader contains the library kcm_bell (121ce8)
kdecore (KLibLoader): The KLibLoader contains the library kcm_laptop (10f440)
kdecore (KLibLoader): The KLibLoader contains the library kcm_keys (102af0)
kdecore (KLibLoader): The KLibLoader contains the library kcm_arts (1146a8)
kdecore (KLibLoader): The KLibLoader contains the library kcm_energy (117868)
kdecore (KLibLoader): The KLibLoader contains the library kcm_input (101f40)
DCOP: unregister 'kcminit-3131'
kdeinit: PID 3131 terminated.
library=knotify --waitforwm.la: No file names knotify --waitforwm.la found in paths.
kdeinit: Launched 'knotify --waitforwm', pid = 3136 result = 3
kdeinit: PID 3136 terminated.
setrlimit: Not owner
kdeinit: Got KWRAPPER 'ksmserver' from socket.
DCOP: register 'kmixctrl-3135' -> number of clients is now 2
kdeinit: PID 3138 terminated.
setrlimit: Not owner
DCOP: unregister 'kmixctrl-3135'
kdeinit: PID 3135 terminated.
DCOP: register 'ksmserver-3139' -> number of clients is now 2
DCOP:  'ksmserver-3139' now known as 'ksmserver'
--[no]local is not supported on your platform. Sorry.
kdeinit: Got SETENV 'SESSION_MANAGER=local/magoo:/tmp/.ICE-unix/3139,tcp/magoo:42931' from klauncher.
kio (KLauncher): KLauncher: Got start_service_by_desktop_name('knotify', ...)
kdeinit: Got EXEC_NEW 'knotify' from launcher.
Could not dlopen library knotify.la: ld.so.1: kdeinit: fatal: libvorbisenc.so.2: open failed: No such file or directory
Could not load library! Trying exec....
kio (KLauncher): knotify (pid 3142) up and running.
ld.so.1: knotify: fatal: libvorbisenc.so.2: open failed: No such file or directory
kdeinit: PID 3142 terminated.
kio (KLauncher): KLauncher: Got exec_blind('kwin', ...)
kdeinit: Got EXEC_NEW 'kwin' from launcher.
kio (KLauncher)setrlimit: : kwin (pid 3143) up and running.
Not owner
DCOP: register 'kwin-3143' -> number of clients is now 3
kio (KLauncher): KLauncher: Got start_service_by_desktop_name('knotify', ...)
kdeinit: Got EXEC_NEW 'knotify' from launcher.
Could not dlopen library knotify.la: ld.so.1: kdeinit: fatal: libvorbisenc.so.2: open failed: No such file or directory
Could not load library! Trying exec....
kio (KLauncher): knotify (pid 3144) up and running.
ld.so.1: knotify: fatal: libvorbisenc.so.2: open failed: No such file or directory
kdeinit: PID 3144 terminated.
DCOP: unregister 'kwin-3143'
DCOP: register 'anonymous-3143' -> number of clients is now 3
DCOP:  'anonymous-3143' now known as 'kwin'
klauncher: KLauncher::process ---> autoStart(int)
kdeinit: Got EXEC_NEW 'kdesktop' from launcher.
kio (KLauncher): kdesktop (pid 3145) up and running.
DCOP: register 'kdesktop' -> number of clients is now 4
DCOP: register 'anonymous-3145' -> number of clients is now 5
kdeinit: PID 3145 terminated.
kdeinit: Got EXEC_NEW 'kicker' from launcher.
DCOP: unregister 'anonymous-3145'
kio (KLauncher): kicker (pid 3147) up and running.
setrlimit: Not owner
DCOP: register 'kicker' -> number of clients is now 5
DCOP: register 'anonymous-3147' -> number of clients is now 6
kdeinit: Got EXEC_NEW 'kio_file' from launcher.
kio (KLauncher): kio_file (pid 3149) up and running.
kio_file: Starting 3149
kio_file: ========= LIST file:/home/salman/Desktop =========
kio_file: ============= COMPLETED LIST ============
kio_file: =============== BYE ===========
kdecore (KProcIO): KPIO::readln
DCOP: register 'kpf' -> number of clients is now 7
DCOP: unregister 'anonymous-3147'
kdeinit: PID 3147 terminated.
kdeinit: Got EXEC_NEW 'klipper' from launcher.
kio (KLauncher): klipper (pid 3151) up and running.
DCOP: register 'klipper' -> number of clients is now 7
kdeinit: Got EXEC_NEW 'korgac' from launcher.
library=korgac.la: No file names korgac.la found in paths.
DCOP: register 'anonymous-3151' -> number of clients is now 8
Could not load library! Trying exec....
kio (KLauncher): korgac (pid 3153) up and running.
kio (KLauncher): KLauncher: Got exec_blind('kget', ...)
kdeinit: Got EXEC_NEW 'kget' from launcher.
library=kget.la: No file names kget.la found in paths.
Could not load library! Trying exec....
kio (KLauncher): kget (pid 3154) up and running.
setrlimit: Not owner
DCOP: register 'kget' -> number of clients is now 9
DCOP: register 'anonymous-3154' -> number of clients is now 10
DCOP: register 'korgac' -> number of clients is now 11
kicker: ************************** Embed 0x4400005 into 0x400020d window=0x0 **********
kicker: >>> before reparent: parent=0x37
kicker: >>> Loop 0: reparent of 0x4400005 into 0x400020d successful
DCOP: unregister 'anonymous-3151'
DCOP: register 'anonymous-3153' -> number of clients is now 11
kdeinit: PID 3151 terminated.
kicker: ************************** Embed 0x4400005 into 0x400020d window=0x4400005 **********
kio (KLauncher): KLauncher: Got exec_blind('korganizer', ...)
kdeinit: Got EXEC_NEW 'korganizer' from launcher.
library=korganizer.la: No file names korganizer.la found in paths.
Could not load library! Trying exec....
kio (KLauncher): korganizer (pid 3157) up and running.
DCOP: unregister 'anonymous-3153'
kdeinit: PID 3153 terminated.
kicker: ************************** Embed 0x4c00007 into 0x4000219 window=0x0 **********
kicker: >>> before reparent: parent=0x37
kicker: >>> Loop 0: reparent of 0x4c00007 into 0x4000219 successful
kicker: ************************** Embed 0x4c00007 into 0x4000219 window=0x4c00007 **********
DCOP: unregister 'anonymous-3154'
kdeinit: PID 3154 terminated.
kicker: ************************** Embed 0x48000db into 0x4000224 window=0x0 **********
kicker: >>> before reparent: parent=0x37
kicker: >>> Loop 0: reparent of 0x48000db into 0x4000224 successful
kicker: ************************** Embed 0x48000db into 0x4000224 window=0x48000db **********
DCOP: register 'korganizer' -> number of clients is now 10
DCOP: register 'anonymous-3157' -> number of clients is now 11
kio (KLauncher): KLauncher: Got exec_blind('konsole', ...)
kdeinit: Got EXEC_NEW 'konsole' from launcher.
kio (KLauncher): konsole (pid 3159) up and running.
klauncher: KLauncher::process ---> autoStart(int)
kdeinit: Got EXEC_NEW 'kalarmd' from launcher.
library=kalarmd.la: No file names kalarmd.la found in paths.
Could not load library! Trying exec....
kio (KLauncher): kalarmd (pid 3162) up and running.
DCOP: register 'konsole-3159' -> number of clients is now 12
setrlimit: Not owner
DCOP: register 'kalarmd' -> number of clients is now 13
DCOP: register 'anonymous-3161' -> number of clients is now 14
setrlimit: Not owner
DCOP: register 'kalarmd' -> number of clients is now 15
DCOP: unregister 'kalarmd-2'
DCOP: register 'anonymous-3162' -> number of clients is now 15
DCOP: unregister 'ksplash'
DCOP: unregister 'anonymous-3161'
DCOP: unregister 'anonymous-3162'
kdeinit: PID 3162 terminated.
kio (KLauncher): KLauncher: Got start_service_by_desktop_path('kio_uiserver.desktop', ...)
kdeinit: Got EXEC_NEW 'kio_uiserver' from launcher.
setrlimit: Not owner
kio (KLauncher): kio_uiserver (pid 3166) up and running.
DCOP: register 'kio_uiserver' -> number of clients is now 13
DCOP: register 'anonymous-3166' -> number of clients is now 14
QMetaObject::findSignal:KOTodoListView: Conflict with KListView::doubleClicked(QListViewItem*,const QPoint&,int)
kdecore (KAction): WARNING: KAction::updateShortcut(): name = "unnamed", cut = ; No KAccel, probably missing a parent collection.
kdecore (KAction): WARNING: KAction::updateShortcut(): name = "unnamed", cut = ; No KAccel, probably missing a parent collection.
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::editEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::showEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::deleteEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::editEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::showEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::deleteEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::editEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::editEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::showEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::showEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::deleteEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::deleteEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::newEventSignal(QDateTime)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::newEventSignal(QDateTime,QDateTime)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::editEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::showEventSignal(Event*)
QMetaObject::findSignal:KOAgendaView: Conflict with KOEventView::deleteEventSignal(Event*)
kparts: MainWindow::createGUI, part=0  
DCOP: new daemon kio_uiserver
DCOP: unregister 'anonymous-3157'
kdeinit: PID 3157 terminated.
DCOP: unregister 'anonymous-3166'
kdeinit: Got EXEC_NEW 'kio_file' from launcher.
kio (KLauncher): kio_file (pid 3171) up and running.
kdeinit: PID 3166 terminated.
kio_file: Starting 3171
kio_file: Put /tmp/kde-salman/kalarmdEvaaaa.tmp
kio_file: Appending .part extension to /tmp/kde-salman/kalarmdEvaaaa.tmp
kio_file: Error during 'put'. Aborting.
kdeinit: PID 3171 terminated.
kicker: WARNING: KDE detected X Error: BadDrawable (invalid Pixmap or Window parameter) \x09
  Major opcode:  \x0e
DCOP: unregister 'korganizer'
kio (KLauncher): KLauncher: Got start_service_by_desktop_name('knotify', ...)
kdeinit: Got EXEC_NEW 'knotify' from launcher.
Could not dlopen library knotify.la: ld.so.1: kdeinit: fatal: libvorbisenc.so.2: open failed: No such file or directory
Could not load library! Trying exec....
kio (KLauncher): knotify (pid 3173) up and running.
ld.so.1: knotify: fatal: libvorbisenc.so.2: open failed: No such file or directory
kdeinit: PID 3173 terminated.
-------------- next part --------------
#!/bin/bash
#
#  KDE STARTUP SCRIPT ( KDE-3.1.3 )
#

# Set the locale paths
export NLSPATH="/usr/lib/locale/en_US.UTF-8:/usr/local/lib/locale:/usr/local/share/locale:/usr/openwin/lib/locale/en_US.UTF-8:/opt/kde-3.1.3/share/locale/en_US.UTF-8:/opt/kde-3.1.3/share/locale/en_US"
export I18NPATH="/usr/lib/locale:/usr/local/lib/locale:/usr/local/share/locale:/usr/openwin/lib/locale"

# Set the Locale
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

# Enable the Sun XServer Transport Shared Memory Extension
export XSUNTRANSPORT="shmem"
export XSUNSMESIZE=4096

# QT
export QTDIR="/opt/qt-3.2.0-32"

# Stolen shamelessly from RedHat
# Clean up old kde /tmp files that belong to the user
real_display=`echo $DISPLAY | sed "s/://" | sed "s/\..*//"`
rm -f ~/.DCOPserver-`/bin/hostname`_$DISPLAY
for i in /tmp/.ICE-unix/* /tmp/.ICE-unix/.*; do
        [ -O $i ] && rm -f $i
done

[ -d "$HOME"/.kde/share/config ] || mkdir -p "$HOME"/.kde/share/config

# When the X server dies we get a HUP signal from xinit. We must ignore it
# because we still need to do some cleanup.
trap 'echo GOT SIGHUP' HUP

# Set Sun MediaLib Home
export MLIBHOME="/opt/SUNWmlib"

# Set the Java CLASSPATH
export CLASSPATH="${CLASSPATH}:/opt/kde-3.1.3/lib/java/org/kde/DCOP/DCOP.jar:/opt/kde-3.1.3/lib/java/org/kde/koala/koala.jar:/opt/kde-3.1.3/lib/java/org/kde/qt/qt.jar:/opt/kde-3.1.3/lib/java/koala.jar:/opt/kde-3.1.3/lib/java/qtjava.jar:/opt/kde-3.1.3/lib/java/DCOP.jar:/opt/kde-3.1.3/share/apps/kjava/kjava.jar"

# PATH
export PATH="/bin:/usr/bin:/usr/sbin:/usr/openwin/bin:/usr/dt/bin:/opt/local/bin:${QTDIR}/bin:/opt/kde-3.1.3/bin:${MLIBHOME}/bin:/usr/ccs/bin:${PATH}"

# LD_LIBRARY_PATH
export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/openwin/lib:/usr/lib/X11:/usr/dt/lib:/usr/ccs/lib:/usr/lib/iconv:/opt/local/lib:/opt/local/ssl/lib:/opt/kde-3.1.3/lib:/lib:/usr/ccs/lib:/usr/j2se/jre/lib/sparc/native_threads:/usr/j2se/jre/lib/sparc/client:/usr/j2se/jre/lib/sparc:/usr/j2se/lib/sparc:/usr/openwin/lib:${QTDIR}/lib:${MLIBHOME}/lib/sparcv8plus+vis:${MLIBHOME}/lib/sparcv8plus"
export LD_DEMANGLE="1"
export LD_NOLAZYLOAD="1"
export LD_NOVERSION="1"
export LD_BIND_NOW="1"

# Boot sequence:
#
# kdeinit is used to fork off processes which improves memory usage
# and startup time.
#
# * kdeinit starts the dcopserver and klauncher first.
# * Then kded is started. kded is responsible for keeping the sycoca
#   database up to date. When an up to date database is present it goes
#   into the background and the startup continues.
# * Then kdeinit starts kcminit. kcminit performs initialisation of
#   certain devices according to the user's settings
#
# * Then ksmserver is started which in turn starts
#   1) the window manager (kwin)
#   2) everything in $KDEDIR/share/autostart (kdesktop, kicker, etc.)
#   3) the rest of the session.

# Set a left cursor instead of the standard X11 "X" cursor, since I've heard
# from some users that they're confused and don't know what to do. This is
# especially necessary on slow machines, where starting KDE takes one or two
# minutes until anything appears on the screen.
#
# Set the background to plain grey.
# The standard X background is nasty, causing moire effects and exploding
# people's heads. We use colours from the standard KDE palette for those with
# palettised displays.

test "$XDM_MANAGED" || bkg="-solid #100D50"
/usr/openwin/bin/xsetroot -cursor_name left_ptr $bkg

# The user's personal KDE directory is usually ~/.kde, but this setting
# may be overridden by setting KDEHOME.

kdehome=$HOME/.kde
test -n "$KDEHOME" && kdehome=`echo "$KDEHOME"|sed "s,^\~/,$HOME/,"`

# Activate the kde font directories.
#
# There are 4 directories that may be used for supplying fonts for KDE.
#
# There are two system directories. These belong to the administrator.
# There are two user directories, where the user may add her own fonts.
#
# The 'override' versions are for fonts that should come first in the list,
# i.e. if you have a font in your 'override' directory, it will be used in
# preference to any other.
#
# The preference order looks like this:
# user override, system override, X, user, system
#
# Where X is the original font database that was set up before this script
# runs.

usr_odir=$kdehome/share/fonts/override
usr_fdir=$kdehome/share/fonts
if test -n "$KDEDIRS"; then
  kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
  sys_odir=$kdedirs_first/share/fonts/override
  sys_fdir=$kdedirs_first/share/fonts
else
  sys_odir=$KDEDIR/share/fonts/override
  sys_fdir=$KDEDIR/share/fonts
fi

# We run mkfontdir on the user's font dirs (if we have permission) to pick
# up any new fonts they may have installed. If mkfontdir fails, we still
# add the user's dirs to the font path, as they might simply have been made
# read-only by the administrator, for whatever reason.

test -d "$usr_odir" && (mkfontdir "$usr_odir" ; xset +fp "$usr_odir")
test -d "$sys_odir" && xset +fp "$sys_odir"
test -d "$usr_fdir" && (mkfontdir "$usr_fdir" ; xset fp+ "$usr_fdir")
test -d "$sys_fdir" && xset fp+ "$sys_fdir"

#
# Add any user-installed font directories to the X font path
# kde_fontsdir=$kdehome/share/fonts
# kde_fontpaths=$kde_fontsdir/fontpaths

# Use the fontpath specified by the user
# if [ -f ${HOME}/.fontpath ] ; then
# . ${HOME}/.fontpath
# fi

# Ask X11 to rebuild its font list.
/usr/openwin/bin/xset fp rehash

# Set LD_BIND_NOW to load shared objects in memory
export LD_BIND_NOW=1

# Set LD_DEMANGLE to get meanigful debug messages
export LD_DEMANGLE=1

#
# Get Ghostscript to look into user's KDE fonts dir for additional Fontmap
if test -n "$GS_LIB" ; then
    GS_LIB=$kde_fontsdir:$GS_LIB
    export GS_LIB
else
    GS_LIB=$kde_fontsdir
    export GS_LIB
fi

# Link "tmp" resource to directory in /tmp
# Creates a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.
lnusertemp tmp >/dev/null

# Link "socket" resource to directory in /tmp
# Creates a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.
lnusertemp socket >/dev/null

# On Solaris, make sure /tmp/.X11-unix and /tmp/.X11-pipe have
# the right permissions ...
echo "kchmod: Setting X11 security permissions ... "
/opt/kde-3.1.3/bin/kchmod

# In case of dcop sockets left by a previous session, cleanup
dcopserver_shutdown

# Use this if you want to use another window manager besides kwin
## export KDEWM="blackbox"

echo 'startkde: KDE Starting up...'  1>&2

# run KPersonalizer before the session, if this is the first login
if kreadconfig --file kpersonalizerrc --group General --key FirstLogin --default true --type bool; then
    # start only dcopserver, don't start whole kdeinit (takes too long)
    echo 'startkde: Running kpersonalizer...'  1>&2
    dcopserver
    if [ -n "${KDEWM}" ] ; then
	echo "Using kwin for Window Manager ... "
        kwin &
    fi
    kpersonalizer --before-session
    # handle kpersonalizer restarts (language change)
    while test $? -eq 1; do
        kpersonalizer --r --before-session
    done
    dcopserver_shutdown
    # shutdown will also make kwin quit, give it time to do so
    sleep 1
fi

# the splashscreen and progress indicator
ksplash

# We set LD_BIND_NOW to increase the efficiency of kdeinit.
# kdeinit unsets this variable before loading applications.
export LD_BIND_NOW="1"

kdeinit +kcminit +"knotify --waitforwm" || \
  xmessage -geometry 500x100 "Could not start kdeinit. Check your installation."

# finally, give the session control to the session manager
# if the KDEWM environment variable has been set, then it will be used as KDE's
# window manager instead of kwin.
# if KDEWM is not set, ksmserver will ensure kwin is started.
# kwrapper is used to reduce startup time and memory usage
# kwrapper does not return usefull error codes such as the exit code of ksmserver.
# We only check for 255 which means that the ksmserver process could not be 
# started, any problems thereafter, e.g. ksmserver failing to initialize, 
# will remain undetected.

test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
kwrapper ksmserver $KDEWM --nolocal || \
  xmessage -geometry 500x100 "Could not start ksmserver. Check your installation."

echo 'startkde: KDE Shutting down...' 1>&2

# Clean up
kdeinit_shutdown
dcopserver_shutdown
artsshell -q terminate

echo 'startkde: Running shutdown scripts...'  1>&2

# Run scripts found in $KDEDIRS/shutdown
for prefix in `kde-config --path exe | sed -e 's^bin/^shutdown/^g;s^:^ ^'`
do 
  for file in $prefix/*
  do 
    if test -f $file
    then 
       $file
    fi
  done
done

echo 'startkde: Done.'  1>&2


More information about the kde-solaris mailing list