[GLLUG] nvidia install script
RJ Clark
neoclark@yahoo.com
Sat, 15 Mar 2003 11:39:35 -0800 (PST)
If you guys could take a look and see if this script
works on your redhat 7.2 7.3 box it would be very
helpful
!/bin/bash
#===============================================#
#Date: 02/13/03 #
#Copyright (C) 2003 RJ Clark
#
#This program is free software; you can redistribute
it and/or#
#modify it under the terms of the GNU General Public
License#
#as published by the Free Software Foundation; either
version 2#
#of the License, or (at your option) any later
version.#
##
#This program is distributed in the hope that it will
be useful,#
#but WITHOUT ANY WARRANTY; without even the implied
warranty of#
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the#
#GNU General Public License for more details.#
##
#You should have received a copy of the GNU General
Public License#
#along with this program; if not, write to the Free
Software#
#Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.#
##
#Description: Installs the Nvidia drivers #
#Input: NVIDIA_GLX-1.0-4191.src.rpm
NVIDIA_kernel-1.0-4191.src.rpm
#Output: #
# #
# YOU MUST BE ROOT TO RUN THIS SCRIPT #
#===============================================#
echo "You must run this script from the same
directory
as the Nvidia
drivers and you must be root"
sleep 4
# To check and see if X is installed and configured
if [ -f /etc/X11/XF86Config-4 ]; then
echo "Currently editing XF86Config-4"
sleep 2
cd /etc/X11
cp XF86Config-4 XF86Config-4.old;
sed -e 's/GLcore/glx/g' < XF86Config-4 > temp
mv temp XF86Config-4;
echo "Currently changing the GLX envoroment from
GLcore to glx"
sleep 2
cd /etc/X11
sed -e 's/"nv"/"nvidia"/g' < XF86Config-4 > temp
mv temp XF86Config-4;
echo "Currently changing the driver name from nv to
nvidia"
sleep 2
else
echo "If you arent using the X-windows systems
you
need to install"
echo "and configure X first"
sleep 2
exit 0
fi
#This building RPM's from the sources
/usr/bin/rpmbuild --rebuild /NVIDIA*
echo "Currently rebuilding the source RPM's"
sleep 2
cd /usr/src/redhat/RPMS/i386
rpm -ih NVIDIA*
echo "Currently unpacking the RPM's"
sleep 2
echo "You need to reboot"
sleep 4
exit 0
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com