#!/bin/bash # # Written by Troy Dawson October 4, 2000 # Modified by Connie Sieh Aug 8, 2001 # because the locations have moved # # Because KDE does support some 3d stuff, we check to see if Mesa is loaded before adding those things FTP_SERVER=linux1.fnal.gov FTP_KDE_DIRECTORY=linux/contrib/kde/6x # First load the qt libraries that KDE uses. rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/qt1x-1.45-3.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/qt1x-devel-1.45-3.i386.rpm if ! [ "$(rpm -qa | grep 'Mesa')" = "" ] ; then rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/qt1x-GL-1.45-3.i386.rpm fi # Then load in KDE # The first section does have to be in this order rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdesupport-1.1.2-12.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdesupport-devel-1.1.2-12.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdelibs-1.1.2-15.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdelibs-devel-1.1.2-15.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdebase-1.1.2-33.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdebase-lowcolor-icons-1.1.2-33.i386.rpm if ! [ "$(rpm -qa | grep 'Mesa')" = "" ] ; then rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdebase-3d-screensavers-1.1.2-33.i386.rpm fi # The rest of these rpm's can actually be in any order rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdeadmin-1.1.2-6.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdenetwork-1.1.2-13.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdegraphics-1.1.2-3.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdemultimedia-1.1.2-7.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdeutils-1.1.2-4.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdegames-1.1.2-3.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/kdetoys-1.1.2-3.i386.rpm # Now load in the switchdesk (or update it) so we can easily switch between desktops rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/switchdesk-2.1-1.i386.rpm rpm -Uvh ftp://$FTP_SERVER/$FTP_KDE_DIRECTORY/switchdesk-kde-2.1-1.i386.rpm # Finolly we'll make KDE the default graphical login screen echo "KDE" > /etc/sysconfig/desktop