How to install NVIDIA drivers for Mandrake-Linux 8.1
By Salane King
I'm not sure of the legalities of using the commands in this text or of
using the script files enclosed or if it will even work as described in
every instance. This help file can be copied by anyone to any web
site as long as I am recognized for creating it. If anyone want to
make changes or suggestions make sure they are sent to me [EMAIL PROTECTED] .
to copy scripts here to text file make sure word wrap is off or some space errors may
occur.
For the Lazy there are shell scripts herein that can make life easy and dangerous for
you.
Download the following drivers in tar.gz format from;
ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/1.0-1541/NVIDIA_GLX-1.0-1541.tar.gz
ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/1.0-1541/NVIDIA_kernel-1.0-1541.tar.gz
and copy them in a shell to /root as superuser then uncompress them with the following
commands;
mv ./NVIDIA_GLX-1.0-1541.tar.gz /root
and
mv ./NVIDIA_kernel-1.0-1541.tar.gz /root
cd /root
tar -zxvf NVIDIA_kernel-1.0-1541.tar.gz
and
tar -zxvf NVIDIA_GLX-1.0-1541.tar.gz
then download the following patch from;
http://www.cyber.com.au/users/ashridah/nvidia_devfs-patch_1.0-1512.patch
then rename and nvidia_devfs-patch_1.0-1512.diff and move the file
to ./NVIDIA_kernel-1.0-1541 directory using this command;
mv nvidia_devfs-patch_1.0-1512.patch /root./
NVIDIA_kernel-1.0-1541/nvidia_devfs-patch_1.0-1541.diff
apply the following command to patch the kernel
cd NVIDIA_kernel-1.0-1541
patch -p1 < nvidia_devfs-patch_1.0-1541.diff
edit /etc/X11/XF86Config-4 with your favorite text editor to add this line in the
Section "Module" immediately following the command;
Load "dbe"
insert the line
Load "glx"
And change the line following the line
Section "Device" listed as
Driver "nv"
With
Driver "nvidia"
To simplify the next kernel upgrade or driver upgrade (change the dir names please)
the following shell script can be created as nvidia.sh and placed in the root
directory
and made executable with this command;
chmod +x nvidia.sh
Make sure you do in /sbin/init 3 before running and also make sure you
make the proper changes to your /etc/X11/XF86Config-4 file before running this script
Copy this text into a text file and save it as nvidia.sh then make it executable
To run issue this command as root;
sh nvidia.sh
#!/bin/sh
/sbin/init 3 # makes sure that you are in text mode
cd /root/ NVIDIA_kernel-1.0-1541
make install
cd /root/NVIDIA_GLX-1.0-1541
make install
/sbin/init 5 #restarts the X server
I have included the following shell script to automatically perform the above
functions
except for changes to /etc/X11/XF86Config-4
note that I make no assurances that this won't break the drivers,
your system, your desk, the city you live in, or any other breakable objects
in your vicinity and especially don't blame me if it causes an earthquake
or something equally disastrous.This is especially true if you have changes
to your kernel or driver upgrades and don't make the necessary changes in these
scripts.
The following shell script can be created as nvidiadrivers.sh and placed in an
accessable directory and made executable with this command;
chmod +x nvidiadrivers.sh
make sure you do in /sbin/init 3 as root or superuser before running and also make
sure you make the proper changes to your /etc/X11/XF86Config-4 file before running
this script
Copy the text below into a text file and save it as nvidiadrivers.sh then make it
executable
To run issue this command as root;
sh nvidiadrivers.sh
#!/bin/sh
lftp -c 'open ftp1.detonator.nvidia.com; cd /pub/drivers/english/XFree86_40/1.0-1541/;
get NVIDIA_kernel-1.0-1541.tar.gz'
lftp -c 'open ftp1.detonator.nvidia.com; cd /pub/drivers/english/XFree86_40/1.0-1541/;
get NVIDIA_GLX-1.0-1541.tar.gz'
tar -zxvf NVIDIA_kernel-1.0-1541.tar.gz
tar -zxvf NVIDIA_GLX-1.0-1541.tar.gz
lftp -c 'open http://www.cyber.com.au; cd /users/ashridah/; get
nvidia_devfs-patch_1.0-1512.patch'
mv nvidia_devfs-patch_1.0-1512.patch
./NVIDIA_kernel-1.0-1541/nvidia_devfs-patch_1.0-1541.diff
cd NVIDIA_kernel-1.0-1541
patch -p1 < nvidia_devfs-patch_1.0-1541.diff
#/sbin/init 3
cd /root/NVIDIA_kernel-1.0-1541*
make install
cd /root/NVIDIA_GLX-1.0-1541*
make install
#/sbin/init 5