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.