Hustle Play
Syd's blog.
Installing GPUSURF64 on Ubuntu 9.04-x86_64
Posted by on April 7, 2010
Here is how to install GPUSURF64 onto Ubuntu 9.04-x86_64.
- Download GPUSURF64
- Note the versions of each prerequisite package. You’ll need to download and install as the same versions of each package (or as close as you can get in the case of ImageMagick).
- Unpack GPUSURF64
- Open
settings.mk. You’ll need to edit the locations of installed packages in this file as you install prerequisites. - Use
apt-getto install the following packages - build-essential
- libglut3-dev
- libXi-dev
- libxmu-dev
- envyng-core
- libperl-dev
- nvidia-settings
- Follow the link from the GPUSURF64 Download page to ‘CUDA driver, Toolkit, and SDK’
- Navigate the site to find CUDA Toolkit 2.2
- Download ‘Developer Drivers for Linux (185.18.14), 64-bit. Save it somewhere you remember, like the Desktop.
- Run
sudo envyng -t. Uninstall NVIDIA Driver. Restart Computer. - After restarting, log in graphically. Then do a Ctrl+Alt+F1
- Log in
- Kill the Display Manager.
sudo /etc/init.d/gdm stop - Install NVIDIA Development Driver.
sudo sh .run. Install 32-bit libs, config X-server, backup old X config. Persevere through a multitude of error and warning messages. - Resolve a Driver Conflict. Add
DISABLED_MODULES="nv"to/etc/default/linux-restricted-modules-common. - Reboot.
sudo reboot. - Install CUDA Toolkit (2.2), 64-bit. Use root to run the script.
- Set up PATH and LD_LIBRARY_PATH as instructed at end of script.
- Install CUDA SDK (2.2), 64-bit. Use normal user to run the script.
- (Optional). Build CUDA Demos.
cd ~/NVIDIA_CUDA_SDKmake~/NVIDIA_CUDA_SDK/bin/linux/release/particles- ~/NVIDIA_CUDA_SDK/bin/linux/release/nbody
- …
- Turn OFF Compiz in Ubuntu. System -> Preferences -> Appearance -> Visual Effects -> None.
- Turn ON “Sync to VBlank”. System -> Administration -> NVIDIA X Server Settings -> X Screen 0 -> OpenGL Settings -> check “Sync to VBlank”.
- Download, Build, & Install GLEW (1.5.0).
- Download, Build, & Install ImageMagick (as close to 6.4.5 as you can find. Look in the ‘legacy’ directory on the mirror sites.)
- Download & Install Cg Toolkit (2.2), 64-bit.
cp -r usr /. - Update the
settings.mkfile from the beginning of this process. - Build GPUSURF64.
cd gpusurf-
make
References:
- http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html
- http://forums.nvidia.com/index.php?showtopic=163975
Advertisement