i have had a few requests of where to find the script from here is the link from the suse site:
ftp://ftp.mirrorservice.org/sites/ft...fetchnvidia.sh
You will need to be root and in runlevel 3 you can switch by typing "init 3"
If the script complains about a nvidia module already being loaded then type "rmmod nvidia"
To run the script type"perl fetchnvidia.sh"
For those of you that are interested this is the contents of the script as you can see the nvidia driver it is set yo download is NVIDIA-Linux-x86-1.0-7167-pkg1.run you can change this if you want, to a newer one, just open up the file in a text editor and change what you need to
Quote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
#!/bin/sh
EULA="http://www.nvidia.com/object/nv_swlicense.html"
DRIVER="http://download.nvidia.com/XFree86/Linux-x86/1.0-7167/NVIDIA-Linux-x86-1.0-7167-pkg1.run"
VERSION=1.0-7167
if [ "`uname -m`" == "x86_64" ]; then
DRIVER="http://download.nvidia.com/XFree86/Linux-x86_64/1.0-7167/NVIDIA-Linux-x86_64-1.0-7167-pkg2.run"
VERSION=1.0-7167
fi
CURL_OPTIONS="-s"
if [ "`id -u`" != "0" ]; then
echo "error: You must be root to use this program."
exit 1
fi
/sbin/lspci -n|grep -q "0300:.*10de:"
if [ $? -ne 0 ]; then
echo "No nvidia graphics board found."
exit 0
fi
if [ -z $http_proxy ]; then
echo
echo "note: No proxy is used. Please set the environment variable \"http_proxy\""
echo "note: to your favorite proxy, if you want to use a proxy for the download."
echo "note:"
echo "note: bash: export http_proxy=\"http://proxy.provider.de:3128/\""
echo "note: tcsh: setenv http_proxy \"http://proxy.provider.de:3128/\""
echo
fi
/usr/X11R6/bin/xsload -vendor | grep -q "nvidia:NVIDIA Corporation"
if [ $? -eq 0 ]; then
echo "NVIDIA driver already installed!"
exit 0
fi
if [ ! -r /usr/share/doc/nvidia/EULA.html ]; then
echo "EULA:"
mkdir -p /usr/share/doc/nvidia
echo " info: \"/usr/share/doc/nvidia/EULA.html\" not found."
echo -n " Fetching ... "
curl $CURL_OPTIONS -o /usr/share/doc/nvidia/EULA.html $EULA
echo "done"
fi
tmpname=`basename $0`
tmpdir=`mktemp -d /tmp/$tmpname.XXXXXX`
if [ $? -ne 0 ]; then
echo "$0: Can't create temp dir, exiting..."
exit 1
fi
pushd $tmpdir &> /dev/null
for i in onetime; do
file=`echo $DRIVER|awk -F "/" '{print $NF}'`
echo "$file:"
if [ -r /usr/share/doc/nvidia/$file ]; then
echo -n " Checking ... "
test -s /usr/share/doc/nvidia/$file || rm -f /usr/share/doc/nvidia/$file
sh /usr/share/doc/nvidia/$file --check &> /dev/null
if [ $? -ne 0 ]; then
echo "failed ... need to refetch"
rm -f /usr/share/doc/nvidia/$file
fi
fi
if [ ! -r /usr/share/doc/nvidia/$file ]; then
echo -n " Fetching ... "
curl $CURL_OPTIONS -o /usr/share/doc/nvidia/$file $DRIVER
if [ $? -ne 0 ]; then
echo "failed ... aborted!"
continue
fi
chmod 755 /usr/share/doc/nvidia/$file
echo done
fi
echo -n " Installing ... "
sh /usr/share/doc/nvidia/$file --extract-only &> /dev/null
cd NVIDIA-Linux-*
# let the installer think that the kernel module is loaded
# successfully; prevents some machines from crashing
ln -snf /bin/true insmod
ln -snf /bin/true rmmod
# let the installer think that X11 is not running as it will fail
# otherwise
if [ -f /tmp/.X0-lock ]; then
tmpfile=`mktemp /tmp/.X0-lock.XXXXXXXXXX`
mv /tmp/.X0-lock $tmpfile
fi
# Workaround for NVIDIA installer bug (#72299)
modprobe agpgart
PATH=`pwd`:$PATH ./nvidia-installer -s
if [ $? -ne 0 ]; then
echo "failed"
continue
fi
# rescan 3D configuration for SaX2
libdir=lib
test "`uname -m`" == "x86_64" && libdir=lib64
/usr/X11R6/$libdir/sax/sysp.pl -s 3d > /dev/null
# install binary-only part of kernel module for kernel updates later
cp usr/src/nv/nv-kernel.o /lib/modules/scripts/nvidia/nv-kernel.o-$VERSION
echo "done"
echo
/usr/bin/switch2nvidia
echo
done
# try to restore X11 socket savely
mktemp /tmp/.X0-lock &> /dev/null
if [ $? -eq 0 -a "$tmpfile" != "" ]; then
cp $tmpfile /tmp/.X0-lock
chmod 444 /tmp/.X0-lock
fi
test -f "$tmpfile" && rm $tmpfile
popd &> /dev/null
rm -rf $tmpdir
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFCPaRuqE7a6JyACsoRAh2dAKCGGOUMQkQX7E3D3GWBOdXzKGSRpQCf
Yk1es7HLJ45p7O6diJ1C8Ej9Msc=
=Humn
-----END PGP SIGNATURE-----
|