(The finished version of the linux GPU2 folding guide. I've tested it on a couple of rigs and can verify it does work. TR, you can move it edit it as you see fit)
Ubuntu/Mint linux 64 bit instructions. 32 bit set up coming soon. Can be used for gentoo, arch and most other distros with some modifications. Under Gentoo you only need to install wine and start from that point in the guide as the rest is already in place. You will need to mask any nvidia-drivers newer than 180.60 to make it happen though. Under Arch you will need to install base-devel and wine.
Make sure you have an updated system with the 180 series nvidia drivers. Can be installed through the package manager. Do not install drivers newer than the 180 series if you plan to run GPU2. They do not work and will only give an UNSTABLE_MACHINE error
Open up a terminal
Code:
sudo apt-get install wine build-essential linux-headers-`uname -r`
Code:
mkdir -p ~/folding/gpu
Download the cudart.zip from the bottom of this post and move it to ~/folding/gpu
~/ stands for /home/
username
Extract the cudart.dll.so (notice the *, * is used as a wildcard so I am able to execute a command on stuff with long filenames without having to type it all out, you will see a better example a couple of posts down.
Download the cuda toolkit
Code:
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/toolkit/NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run
Install the toolkit, Do Not change the default installation location, just hit enter when prompted
Code:
sudo sh NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run
Create wine directories
Close the notepad window, we only needed it to put the wine directories in place.
Copy the cudart.dll to the newly created wine directory
Code:
cp -a cudart.dll.so ~/.wine/drive_c/windows/system32/nvcuda.dll
Copy cuda files to lib32 directory
Code:
sudo cp -a /usr/local/cuda/lib/* /usr/lib32
Download the windows gpu2 console version
Code:
wget http://www.stanford.edu/group/pandegroup/folding/release/Folding@home-Win32-GPU_XP-623.zip
Extract it, notice the wildcard being used to execute a command with minimal typing.
Run the following command and happy folding.
Code:
nice wine Folding@home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_g80
If you have to shut it down just hit control+c inside the open terminal, to start it back up. cd ~/folding/gpu and run the nice wine command above.
Special thanks goes out to the many people on foldingforum.org that put in a lot of work to make this possible.