This is intended as a simple HOWTO guide to get Folding@Home(FAH) running in a Linux Environment. This is intended for first time Linux users on up.
Note: Do not run any of the following as root, unless told otherwise, as it is bad practice.
1. Downloading the client:
If you're not already at a command prompt, then open a terminal window (xterm, Eterm, etc). Decide on a folder that you would like to install FAH into. The easiest method is to just use a subdirectory of your home directory. Execute the following:
Code:
cd /home/<insert username>
mkdir folding
<insert username> should be replaced with the regular user you use everyday. Now that the directory is created, open up a web browser and go download the client
here.
Important: Most people with a newly installed Linux system, should pick up the one labelled for newer systems, "Linux - Console B". If you're not sure, read
this.
Save the file in the directory you created above.
2. Running for the first time:
First we need to make the file executable. Make sure you're at a command prompt in the directory you downloaded the client into and run:
Code:
chmod +x FAH3Console-Linux.exe
If that's not the name of the file you downloaded, substitute appropriately. Now to run FAH execute:
Code:
./FAH3Console-Linux.exe
or whatever it was saved as. The "./" makes sure the file you run is running from the current directory. Most Linux distributions should require this. Now Folding@Home should take you through the Config process. Answer the questions as you see fit. Remember team number equals 734 though.
To ensure that everything is running properly, use:
to show running processes and their CPU usage. After the client downloads and intializes some work, FahCore_xx.exe, where xx is the core type, should rise to the top of the list.
3. Problems and Notes:
Running the client from other directories:
Don't do this. Always change to the folding directory, then execute it. If you try and run it while in another directory, then problems will probably arise. This applies to scripts too, they should change to the directory, then execute the program.
File Write Problems:
If you run into a situation where FAH complains that it can't write a file, this most likely means that you don't have write permission for the directroy FAH is in. To check permissions on the directory that FAH is in, use:
Code:
ls -ld /home/isowia/folding
The example above would be where I installed FAH. This will output the owner of the directory and the current permissions like so:
Code:
drwxr-xr-x 4 isowia users 640 Jun 9 00:11 folding
Assuming you are the owner of the directory, which you should be, you can execute the following to make sure you have write permissions on the directory:
Code:
chmod u+w /home/isowia/folding
Running FAH in the background:
To run FAH in the background (so you can close the terminal window say), execute it with an "&" on the end of the line:
Code:
./FAH3Console-Linux.exe &
Execute the following to shut it down:
Code:
killall -15 FAH3Console-Linux.exe
This is not terribly graceful, and may even cause a rare problem or two, so using a service script is recommended, whether it starts up automatically, like in the next section, or is run manually.
Running in another virtual terminal:
This option should be available to most people. When in your GUI, hit <CTRL> + <ALT> + F2, where F2 can be anything between F2 and F6. Then run the program normally. To get back to the GUI, hit <CTRL> + <ALT> + F7. This way you can use <CTRL> + C to end it which is preferred.
Running FAH as a service:
See the additional links at the bottom for now. Here's a
script that OldFrog posted at one point. I haven't used it in some time, but it should probably still work. It has some instructions at the top to make it a service as well. Linux distributions tend to implement startup scripts differently, so once you have a script, either reference your distributions documentation or the additional links or the web on how to make it start automatically.
Command line arguments:
These can be found
here.
Gromacs and SSE on Athlons:
Read
this. If you use a new distribution of Linux, you may have to wait for an official release, so that there will be a "B" client of v3.25. You can try it and if it doesn't work, then you'll have to run the 3.24B client until an official release.
Additional Links:
Good referrence for Scripts and getting started
Edit: changed "chown" to "chmod"