nVidia proprietary drivers for LTSP-4.1.1
This only works with 4.1.1 as far as I know. It contains the nessecary files for the 2.4 kernel and 2.6 kernel
Review the
NVIDIA Software License
You will need to accept this license prior to downloading any files.
Download the driver package from
here. This is version 1.0-7174 of the driver.
Copy the file to the client root directory of the LTSP server (probably
/opt/ltsp/i386) and unpack it with
tar xvfz nvidia-driver-bin.tar.gz
The files will be placed in the right folders.
Now you just configure your NVidia-clients in lts.conf like this to get
hardware accelerated graphics:
[ws002]
XSERVER = nvidia
MODULE_01 = nvidia
X4_MODULE_01 = glx
To create the drivers yourself you may follow these instructions.
Download NVidia drivers from nvidia.com and extract the driver by running the installer with the -x extenstion.
wget http://download.nvidia.com/XFree86/Linux-x86/1.0-8178/NVIDIA-Linux-x86-1.0-8178-pkg1.run
sh ./NVIDIA-Linux-x86-1.0-8178-pkg1.run -x
Rename the extracted catalog to "nvidia-driver" and make a tar.gz of it, and put the resulting file into the tarballs directory in the
LBE (I assume
LBE is located in /usr/local/lbe):
mv NVIDIA-Linux-x86-1.0-8178-pkg1 nvidia-driver
tar cvfz nvidia-driver.tar.gz nvidia-driver/
mv nvidia-driver.tar.gz /usr/local/lbe/tarballs/
Change into directory /usr/local/lbe, and make an nvidia-driver folder:
cd /usr/local/lbe
mkdir kernel-src/nvidia-driver/
Make a package.def file in this folder, and fill it with the following content:
VERSION = 1.0
RELEASE = 8178
PKG1 = nvidia-driver.tar.gz
MD5SUM1 = 0874c6700f9995f2d1db2bce03240bc8
SOURCE1 = http://download.nvidia.com/XFree86/Linux-x86/1.0-8178/NVIDIA-Linux-x86-1.0-8178-pkg1.run
UNPACK1 = gunzip < ${TARBALL} | tar xf -
BUILDDIR = nvidia-driver
INSTALL = export PATH=/ltsp-src/util-linux/util-linux-2.11z/sys-utils/:$PATH && ./nvidia-installer --kernel-source-path=/kernel-src/linux-2.6.9/linux-2.6.9 --no-runlevel-check --no-rpms --expert --no-network --kernel-name=2.6.9-ltsp-3
CLEAN = rm -rf ${BUILDDIR}
Now make a link in the build environment to bypass some problems with kernel module placement.
chroot /usr/local/lbe
ln -s /opt/ltsp/i386/lib/modules/ /lib/
exit
Start building the driver by doing:
cd kernel-src
./build --only=nvidia-driver
The install program for the NVidia driver is started. Accept the license.
- Confirm Kernel module installation path: "/lib/modules/2.6.9-ltsp-3/kernel/drivers/video".
- Confirm Kernel source path: "/kernel-src/linux-2.6.9/linux-2.6.9".
- Confirm X installation prefix: "/usr/X11R6"
- Confirm OpenGL? installation prefix: "/usr"
- Confirm Installer installation prefix: "/usr"
- Answer no to "Install NVIDIA's OpenGL? header files?". Those won't be needed.
- Answer "Yes" when asked to confirm installation steps and then "OK" when "Installation complete" message is displayed.
The drivers are now loaded into the lbe, but some files are misplaced, so we need to move those files:
Change to lbe root directory:
cd ..
and start moving files:
mv -f usr/lib/libGL.so* opt/ltsp/i386/usr/lib/
mv -f usr/lib/libGL.la opt/ltsp/i386/usr/lib/
mv -f usr/lib/libGLcore.so.1* opt/ltsp/i386/usr/lib/
mv -f usr/lib/libnvidia-tls.so.1* opt/ltsp/i386/usr/lib/
We can now make a packed driver file to install into our LTSP 4.1.1 environment:
cd opt/ltsp/i386
tar cvfz nvidia-driver-bin.tar.gz usr/lib/libGL.so* usr/lib/libGL.la usr/lib/libGLcore.so.1* usr/lib/libnvidia-tls.so.1* usr/X11R6/lib/modules/extensions/libglx.so* usr/X11R6/lib/modules/drivers/nvidia_drv.* usr/X11R6/lib/libXvMCNVIDIA* lib/modules/2.6.9-ltsp-3/kernel/drivers/video/nvidia.ko lib/modules/2.6.9-ltsp-3/modules.dep
Install the driver into your operational LTSP environment by copying the driver file into the client root directory of your LTSP server installation and unpack the file. E.g:
cp nvidia-driver-bin.tar.gz /opt/ltsp/i386
cd /opt/ltsp/i386
tar xvfz nvidia-driver-bin.tar.gz
Now you can use the NVidia driver by setting up the client in lts.conf something like this:
--/opt/ltsp/i386/etc/lts.conf-----------------------------
[ws002]
XSERVER = nvidia
X4_MODULE_01 = glx
MODULE_01 = nvidia