[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Bug#7494: two monitor system
From:       Massimo Morin <mmorin () schedsys ! com>
Date:       2000-08-04 14:55:24
[Download RAW message or body]

Hi,
    I succesfulluy compiled kde2 on my PII 400 (RH 5.1) except koffice
(a msword filter missing.. I can survive) and kdemultimedia (some nasty
missing file and wrong usage of variables...)
Anyway, everything looks good.

I followed the instruction for double installing kde2 with  kde 1.1.2
There is a minor problem:
somewhere some way kde2 is still referring to /opt/kde as its base
directory, even if I set everything to point to /opt/kde2 as environment
variable). I have to sya I compiled everything saying KDEDIR to be
/opt/kde but...
What I got is that it does not find programs/icons from the
toolbar/kicher.
I solved it via sym-linking /opt/kde2 to /opt/kde, but it is annoyng
because I have to use kdm coming from kde 1.1.2 and with the previous
setting it get screwed.

The most nasty problem is the fact I have a 2 monitor system. With
kde1.1.2 I solve the problem of booting kde via a doubleinstantiation of
kpanel, kfm and kwm on the second display. With the new script I have
difficulties finding the proper sequence. I attached my previous
.xinitrc.

What I do now, for solving the situation, is:
0) I start with kde2 in /opt/kde2 and kde1.1.2 in /opt/kde1.1.2 and
/opt/kde->/opt/kde1.1.2
1) enter in kdm and log in
2) open shell and switch KDEDIR: not /opt/kde->/opt/kde2
3) restart "Panel Menu" (kicher???) (this due to previous problem)
4) set display to be my second one: "export DISPLAY=jupiter:0.1", and
set "xhost +"
5) re-run /opt/kde2/bin/startkde

Is there any wya to rearrange this sequence?

Thanks.

Max
P.s.
the new xinitrc now ddoes not have anywhing below the line
#$KDEDIR/bin/startkde








#----------------------
#!/bin/sh
xmodmap <<-EOF
keycode 22  = BackSpace osfBackSpace
keycode 107 = Delete
EOF

userresources=$HOME/.Xresources

if [ x"$XWINHOME" != x ]; then
    XINIT_DIR=$XWINHOME/lib/X11/xinit
else
    XINIT_DIR=/etc/X11/xinit
fi

# export OPENWINHOME and HELPPATH

export OPENWINHOME=/usr/openwin
export HELPPATH=$OPENWINHOME/help

sysresources=$XINIT_DIR/.Xresources
userdefaults=$HOME/.Xdefaults

# merge in defaults and keymaps
if [ -x /lib/cpp ]; then
    XRDB=xrdb
else
    XRDB="xrdb -nocpp"
fi

for res in ${sysresources}* $userresources $userdefaults ; do
    if [ -f $res ]; then
        $XRDB -merge $res
    fi
done

# xsetroot -solid SteelBlue

# check for space on /tmp and $HOME and for write access
#  error exit, if not
space_tmp=`df /tmp | xargs | cut -d" " -f11`
space_home=`df $HOME | xargs | cut -d" " -f11`

if [ $space_tmp -lt 50 ]; then
    echo Not enough free disk space on /tmp
    exit 1
fi

if [ $space_home -lt 25 ]; then
    echo Not enough free disk space on $HOME
    exit 1
fi
testfile=KDE_$$.testfile

if ! echo TEST_TEXT >/tmp/$testfile 2>/dev/null ; then
    echo "Have no write permissions for /tmp"
    exit 1
fi
rm -f /tmp/$testfile

if ! echo TEST_TEXT >$HOME/$testfile 2>/dev/null ; then
    echo "Have no write permissions for $HOME"
    exit 1
fi
rm -f $HOME/$testfile

if [ -f /usr/share/lgtypes/needs_update -a -x /usr/sbin/rebuild_lgtypes
]; then
        /usr/sbin/rebuild_lgtypes
fi

# create the kde-config-dir (essential for kpanel)
if [ ! -d $HOME/.kde/config ]; then
  install -d -m 755 $HOME/.kde/config
fi

# create the 2nd config dir for KDE
for dir in Autostart Templates Trash; do
  if [ ! -d $HOME/Desktop/$dir ]; then
    install -d $HOME/Desktop/$dir
  fi
done
xhost + localhost



xset fp+ /usr/local/lib/fonts/Mozilla:unscaled
xset fp+ /usr/local/lib/fonts/Mozilla

#$KDEDIR/bin/startkde


kcontrol -init

  # Start the common desktop tools in the background.
  # The sleeps reduce disk usage during startup.
  # kaudioserver will put itself in the background automagically

# sleep 1 ; kaudioserver
# (sleep 1 && exec kwmsound) &

# Add -ncols 96 after kfm if using a 8-bit display
(sleep 1 && exec kfm) &

(sleep 1 && exec krootwm) &
(sleep 1 && exec kpanel) &
(sleep 3 && exec kbgndwm) &

 # finally, give the session control to the window manager

sleep 2 ; exec kwm &

 export DISPLAY=jupiter:0.1
# # Add -ncols 96 after kfm if using a 8-bit display
 (sleep 1 && exec kfm) &
 (sleep 1 && exec krootwm) &
 (sleep 1 && exec kpanel) &
 (sleep 3 && exec kbgndwm) &
# # finally, give the session control to the window manager
 sleep 2 ; exec kwm





--
  Massimo Morin                                _...__..-'
mmorin@schedsys.com                          .'
 (617) 484 2999 h                          .'
 (617) 512 0203 c                        .'   Airline
                                       .'    Solutions
            .------._                 ;        Today
      .-"""`-.<')    `-._           .'
     (.--. _   `._       `'---.__.-'
      `   `;'-.-'         '-    ._     Scheduling Systems Inc.
        .--'``  '._      - '   .       Three University Office Park
         `""'-.    `---'    ,          95 Sawyer Road
 ''--..__      `\                      Waltham, 02453 Massachusetts USA
         ``''---'`\      .'            +1 (781) 893-0390 x 126
      Senior       `'. '               http://www.schedsys.com
Software  Engineer   `'.



 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic