To install KDE Beta 4 from the Cheapbytes Redhat 5.1 CD (June Release) please use the following steps. Please note that it is assumed that you have properly configured your X-Windows.
1. Mount the CD
mount /mnt/cdrom
2. Change directory to /mnt/cdrom/kdeBeta4/distribution/rpm/binary/i386/gcc-2.8.1 using the following command:-
cd /mnt/cdrom/kdeBeta4/distribution/rpm/binary/i386/gcc-2.8.1
3. Install the qt lib with the following
command:-
rpm -ivh qt*rpm4. Install KDE from the same directory using the following commands:-
rpm -ivh kdesupport*rpm
rpm -ivh kdelibs*rpm
rpm -ivh kdebase*rpm
rpm -ivh kdegraphic*rpm
rpm -ivh kdeutils*rpm
rpm -ivh kdemultimedia*rpm
rpm -ivh kdegames*rpm
rpm -ivh kdeadmin*rpm
rpm -ivh kdenetwork*rpm
5. Change directory to /etc/X11/xinit
cd /etc/X11/xinit6. Backup the xinitrc file with the following command:-
mv xinitrc xinitrc.17. Download and Copy the following file into /etc/X11/xinit
xinitrc
8. Change directory to /etc
cd /etc9. Backup the /etc/profile with the following command:-
mv profile profile.110. You need to edit the following file:-
etc/profile9. Look for the line starting with PATH. It should look like this:-
PATH="$PATH:/usr/X11R6/bin"10. Edit it so that it is as follows. If the line appears longer and has more entries than the above, leave those entries alone, just add to the end of the line.
PATH="$PATH:/usr/X11R6/bin:/opt/kde/bin"11. In the same file look for the following line
HOSTNAME=`/bin/hostname`12. On locating .this line add the following below this line
KDEDIR="/opt/kde"13. Look for the line starting with export and add the word KDEDIR to the end of the line leaving a space in between the last word and the word KDEDIR. After editing the line, it should appear something like this:-
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL KDEDIR14. Log out using <Ctr.l-D>
15. Log back into the system
16. Start up your X-Windows as usual and KDE will come up
startx
If you are using XDM to start up to an X-Windows login, you will additionally have to follow these steps. Please note that it is very important that your X-Windows should already be up, short of which, your system may NOT boot up properly (the XDM running into a loop trying to initialize your X-Windows). Also you should have a running KDE system as mentioned above.
1. Change directory to /etc/X11/xinit
cd /etc/X11/xinit
2. Back up the xinitrc and XClients files with these commands:-
mv xinitrc xinitrc.2
mv XClients XClients.2
3. Download and copy the following file to /etc/X11/xinit
Xclients.kde
Xclients.fvwm
Xclients.twm
4. Change directory to /etc/X11/xdm
cd /etc/X11/xdm
5. Back up the Xsession file with this commands:-
mv Xsession Xsession.1
6. Download and copy the following file to /etc/X11/xdm
6. Change directory to /usr/X11/bin using the following command
cd /usr/X11/bin
7. Back up the original xdm binary using this commnad
mv xdm xdm.1
8. Create a link from /opt/kde/bin/kdm to xdm using this command
ln -s /opt/kde/bin/kdm /usr/X11/bin/xdm
9. Test your xdm installation using the following command from the prompt
xdm -nodaemon
10. If all is well, you may proceed to step no. 12. If not, try the following commands, short of which there is probably something wrong with your initial X-Windows configuration.
cd /etc/X11
cp -l X /usr/X11/bin
12. Look for the file /etc/inittab and edit the file. You will have to look for the following lines:-
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if
you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
id:3:initdefault
Change the last line mentioned to this
id:5:initdefault
13. Reboot your machine and the system should start with an X-Windows login.
14. If there is a problem, terminate by pressing <Ctrl><Alt><Del>, start Linux to single user mode by typing linux single at the LILO: prompt and change the line mentioned in step no. 12 in the /etc/inittab file to
id:3:initdefault
to restore to text mode bootup.