Heres how to install KDE 2 on RH7 with KDE 1.x still running.

Heres how to install KDE 2 on RH7 with KDE 1.x still running.

Post by Jeff » Sun, 31 Dec 1899 09:00:00



Installing KDE 2.0 on RedHat 7 with KDE 1.x still Installed
Do everything in gnome
Download these files which can all be found at http://www.rpmfind.net
Put all files in a Directory of your choice.
Install these rpms(if you get error of conflicts then choose upgrade
instead)
NOTE IF YOU INSTALLED THE KDE 2 BETA THEN YOU NEED TO REMOVE THOSE RPMS
AND ALL THE QT-BETA RPMS FIRST

libmng-0.9.2-1.i386.rpm
qt-2.2.1-5.i386.rpm
qt-designer-2.2.1-5.i386.rpm
qt-devel-2.2.1-5.i386.rpm
qt-Xt-2.2.1-5.i386.rpm
flex-2.5.4a-13.i386.rpm
htdig-3.2.0-0.b2.i386.rpm

Now create a directory calld /opt/kde2

Now edit file /etc/profile.d/kde.sh and in the 2 spots where you see
"/usr" replace with "/opt/kde2"

Now edit file /etc/profile.d/qt.sh and just change the 0 to 1 where
it says "/usr/lib/qt-2.2.0" and make it "/usr/lib/qt-2.2.1"

Now log out, you dont have to reboot, then log back in to gnome and if you
run a terminal window and type env you will see the new kde and qt paths we
edited.

In order to have both KDEs available you MUST use the src rpms and in a
cerain order
download these rpms to a temporary directory

kdeadmin-2.0-1.src.rpm
kdebase-2.0-1.src.rpm
kdegames-2.0-1.src.rpm
kdegraphics-2.0-1.src.rpm
kdelibs-2.0-1.src.rpm
kdemultimedia-2.0-1.src.rpm
kdenetwork-2.0-1.src.rpm (find rpm from the rawhide site that is
1,876,331 bytes the 1,583,558 byte file wont work)
kdepim-2.0-1.src.rpm
kdesupport-2.0-1.src.rpm
kdetoys-2.0-1.src.rpm
kdeutils-2.0-1.src.rpm
kdoc-2.0-3.src.rpm
koffice-2.0-1.src.rpm

You must Install the rpms in a certain order but not all at once.
TOTAL INSTALLS LISTED BELOW WILL TAKE HOURS SO CHILL.

1. install kdesupport-2.0-1.src.rm
2. open a terminal window and go to
   /usr/src/redhat/SOURCES
3. type bunzip2 *.tar.bz2
4. type tar xvf filename.tar (you must do each file separate cant use *)
5. type cd kdesupport 2.0
4. type ./configure
5. type make all (takes a long time for most packages)
6. type make install
7. when done use file manager and delete all files and folders in folder
   /usr/src/redhat/SOURCES

Now install next rpm
kdelibs-2.0-1.src.rpm
kdebase-2.0-1.src.rpm
others src.rpm in any order

Now create file named KDE2 in /etc/X11/gdm/Sessions and add this to it
#!/bin/bash
exec /etc/X11/xdm/Xsession kde2

make sure above file has execute privilges

Now create file names Xclients.kde2 in /usr/share/apps/switchdesk and add
this
#!/bin/sh
export KDEDIR=/opt/kde2
export QTDIR=/usr/lib/qt-2.2.1
export PATH=$KDEDIR/bin:$PATH
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib
exec /opt/kde2/bin/startkde

make sure above file has execute privliges

Now edit file /etc/X11/xdm/Xsession and just modify the line under kde2)
below
and if kde2) isnt there then add it.

    kde|kde1)
       exec /usr/share/apps/switchdesk/Xclients.kde
       ;;
    kde2)
       exec /usr/share/apps/switchdesk/Xclients.kde2 (edit this line)
       ;;
    anotherlevel)

Create a new file named /opt/kde2/bin/kde2 with this (adapted to your KDE-2
installation):

    #!/bin/sh
    export KDEDIR=/opt/kde2
    export QTDIR=/usr/lib/qt-2.1.1
    export PATH=$KDEDIR/bin:$PATH
    export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib

make sure above file has exe privliges

Add this to ~/.<yourshell>rc (for instance .bashrc, or .zshrc):

    alias ckde2='source /opt/kde2/bin/kde2'

This allows one to run a KDE2 app under KDE1, and the other way around.
Example (under kde-1.x):

    ckde2
    konqueror &

Now edit file /etc/profile.d/kde.sh and in the 2 spots where you see
"/opt/kde2" replace with "/usr"

Now edit file /etc/profile.d/qt.sh and just change the 0 to 1 where
it says "/usr/lib/qt-2.2.1" and make it "/usr/lib/qt-2.2.0"

NOW LOG OUT AND CHOOSE WHICH KDE SESSION YOU WANT. GOOD LUCK
SO FAR KDE 2 LOOKS AWESOME BUT A LITTLE BUGGY.

 
 
 

1. why does kde sometimes install to /opt/kde, and sometimes to /usr/local/kde?

hi all,

why does kde, when compiled from scratch, sometimes install in
/opt/kde, and othertimes to /usr/local/kde? when I first installed
kde2.0 it went to /opt/kde, now I am compiling and installing kde2.0.1
and it is going to /usr/local/kde. I don't really care where it goes
but I would like to know why this is happening?? thanks for any info!

cheers,

Mike

2. Strange instabilities on two(!) LX machines

3. Problem installing/running KDE 2.1 in RH7

4. Questions about lint, please help!

5. RH7 & KDE 2.1 upgrade, No icons in kde menu

6. Where can I find the kernel configuration file for the existing system?

7. KDE 2.0.1 on RH7: missing kde-config ?

8. WHAT'S THE POINT?

9. Installing KDE from RH7.1 after Gnome installed

10. update kde background while kde is running

11. Where is kde.debian.net or kde.tdyc.com/pub/kde ?

12. KDE and RedHat 6.1 - KDE doesn't run?

13. Installing new KDE apps under KDE 1.1