Go Back   PCMech Forums > General & Off Topic > Distributed Computing

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-02-2006, 04:03 PM   #1
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,038
Send a message via AIM to catacon Send a message via Yahoo to catacon
Folding on Linux

There have probably been a few questions about this, so here is some on how to get started Folding with Linux. I orginally found it on Overclockers.co.uk Forum and it worked fairly well. I modified it a bit to accomodate the newer Folding version and such. I also changed some of this guys writting, he seemed a bit to happy about this program.

---------------------------------

A little bit about what this beasty can does do first:

This script will do most everything for you, just fill out the required info and you will be on your way.

All this is based on the distribution you have. It auto detects your system to the hilt!!

--> Auto-Detects the number od CPU's!!
--> Creates the folders for each CPU!!
--> Steps you though each CPU client setup
--> Allows for easy editing of the flags < -forceasm -verbosity 9 etc etc > though a pill file called
--> Installs 3rd Party Monitoring applications for you.
--> Creates the service scripts for running at boot time.
--> Creates the Start, Stop, Reload, Pause Scripts for you.
--> Work for RH, DSL < Denian Distro's > Slackware, Gentoo, FreeBSB, Mac OS, it even will allow you to run it through WINE < you can use the windows client > is you state it such on the command line
--> Tells you havw to run it manually or run the service scripts.
--> Has a "Backup-Utility"
--> 3rd party apps include data.que repair and all sorts of stuff.


This is how I got it to work.

You need to do this first:
--> With a Normal User Login, "not root", open an exterm window and go to your home directory:

catacon@computer:~$

--> Create a sub-folder in your /home directory called foldingathome like so:

mkdir foldingathome

--> cd to that directory:

catacon@computer:~$ cd foldingathome

--> Then download the script like so:

catacon@computer:~/foldingathome$ wget http://www.vendomar.ee/~ivo/finstall

--> Make the file exectuable:

catacon@computer:~/foldingathome$ chmod +x finstall

--> Then Download the Linux FAH502-Linux.exe client < all one line here >:

catacon@computer:~/foldingathome$ wget http://www.stanford.edu/group/pandeg...H504-Linux.exe

--> Make the file exectuable:
catacon@computer:

catacon@computer:~/foldingathome$ chmod +x FAH504-Linux.exe

--> Run the script:

catacon@computer:~/foldingathome$ bash finstall < and any options u may want >

--> Follow the instrustions ...< configure clients etc >:

--> Edit a file called < fah_config > that is in the foldingathome directory:

catacon@computer:~/foldingathome$ vi ./fah_config

FAH_flags="-forceasm advmethods -vernosity 9"

NOTE: I wouldn't change the FAHLog.txt stuff or rediret it's output, as the 3rd part software queue's off the original file name name FAHLog.txt

--> Now all you have to do ist that the client called folding:

catacon@computer:~/foldingathome$./folding {start|stop|restart|status|DoNothing}

--> That can easily be added to any rc.local or boot cron or /etc/init.d location etc etc ..

--> To use the installService script just do this:
-->Navigate to foldingathome

catacon@computer:~$ cd foldingathome

-->Run the script

catacon@computer:~/foldingathome ./installService



I could be doing something wrong here, but in order to get the Folding to start, you have to do one other thing.

--> Navigate to foldingathome/CPU1

catacon@computer:~/foldingathome$ cd foldingathome/CPU1

-->Run the configure script

catacon@computer:~/foldingathome/CPU1$ ./FaH -config


Then you should be on your way to folding.

Hope that helps some people.
__________________
Main Computer: Intel Core i5 2500K | AsRock Extreme3 Z68 | Corsair Vengeance 2 x 4GB DDR3 1600 | EVGA GTX460 768MB | Western Digital Caviar 750GB 7200RPM SATAII | Mushkin 60GB SSD w/ SRT enabled | Asus 20X DVD Burner | Antec 550W Modular | Cooler Master HAF 912 w/ 4 fans | NXZT Sentry Mesh fan controller | W7 | 2 x 23" LG IPS Monitors

Laptop: Asus EEE 1000HE | 2GB RAM | Ubuntu

Laptop: Lenovo Thinkpad T60p | 4GB RAM | W7

Last edited by catacon; 01-02-2006 at 04:06 PM.
catacon is offline   Reply With Quote
Old 01-02-2006, 04:46 PM   #2
Computing Professor
Staff
Premium Member
 
Join Date: Jun 2001
Posts: 11,875
Thanks catacon.
This is a nice find and a nice job.
Worthy of a sticky, in fact.
pam123 is offline   Reply With Quote
Old 02-19-2006, 05:13 PM   #3
Member (1 bit)
 
Join Date: Feb 2006
Posts: 1
Quote:
Originally Posted by catacon
I modified it a bit to accomodate the newer Folding version and such. I also changed some of this guys writting, he seemed a bit to happy about this program.
I've actually come up with a better solution that Im proofing on a cluster, but that was done after I'd hacked out a deathly painful process for the inclusion of multi CPU systems, so yeah was a bit happy to not have to do all the work again.

The post only took a few minutes, so I probably should have toned it down a bit.
.
Glad is helped though.
KE1HA is offline   Reply With Quote
Old 02-23-2006, 06:02 PM   #4
Member (10 bit)
Premium Member
 
digitalfreedom64's Avatar
 
Join Date: Aug 2004
Location: Philadelphia, MS
Posts: 664
Send a message via AIM to digitalfreedom64 Send a message via Yahoo to digitalfreedom64
I installed the Windows graphical client installed through Wine. It's running fine except for when I try to open the display window. I get this message "Can't Find A Suitable Pixel Format.", then it crashes.
digitalfreedom64 is offline   Reply With Quote
Old 02-23-2006, 10:46 PM   #5
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,038
Send a message via AIM to catacon Send a message via Yahoo to catacon
I have never used WINE, so I wouldn't know. http://www.winehq.com might have info on how to configure it so that doesn't happen.
catacon is offline   Reply With Quote
Old 04-02-2006, 09:13 PM   #6
~LP
Member (3 bit)
 
~LP's Avatar
 
Join Date: Apr 2006
Posts: 4
Quote:
Originally Posted by crashoverride
I installed the Windows graphical client installed through Wine. It's running fine except for when I try to open the display window. I get this message "Can't Find A Suitable Pixel Format.", then it crashes.
Download and run the newest Windows Console version in wine.
I run it on a few machines.
~LP is offline   Reply With Quote
Old 04-02-2006, 10:38 PM   #7
Member (10 bit)
Premium Member
 
digitalfreedom64's Avatar
 
Join Date: Aug 2004
Location: Philadelphia, MS
Posts: 664
Send a message via AIM to digitalfreedom64 Send a message via Yahoo to digitalfreedom64
Quote:
Originally Posted by ~LP
Download and run the newest Windows Console version in wine.
I run it on a few machines.
Got it working with a newer release since my post.
digitalfreedom64 is offline   Reply With Quote
Old 04-12-2006, 05:28 PM   #8
Eis
Member (4 bit)
 
Join Date: Apr 2006
Location: Philly, Ms.
Posts: 9
Send a message via Yahoo to Eis
greedo Yo Crash

Hey crash man maybe you should say something about that nice little program you got compiled for folding on your linux comps.

Oh and btw im thinking of trying to scrape together enough parts to put that old p2 (lmao) up and running with linux just to have something to do.
Eis is offline   Reply With Quote
Old 04-14-2006, 10:36 AM   #9
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,038
Send a message via AIM to catacon Send a message via Yahoo to catacon
Here is a link on folding on Ubuntu (works very well) - https://wiki.ubuntu.com/FoldingAtHom...=%28folding%29

I guess everything is installed to the /opt/foldingathome directory, so look there for the unitinfo file and that stuff.
catacon is offline   Reply With Quote
Old 08-09-2006, 10:28 PM   #10
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,038
Send a message via AIM to catacon Send a message via Yahoo to catacon
All right, here's another Folding goodie for Debian and Ubuntu. I just got it working on Debian 3.1.

----------------------------------------

Linux Distribution : Ubuntu Breezy 5.10 and Debian Sarge 3.1
Last Update : January 4th 2006

This guide explains how to install and configure Folding@Home and then run it is a service. Complete all of the folowing as root.

$ mkdir -p /opt/fah
$ cd /opt/fah
$ wget http://www.stanford.edu/group/pandeg...H504-Linux.exe
$ chmod 755 FAH504-Linux.exe
$ ./FAH504-Linux.exe

Once you have your options set, the first core and WU are downloaded and the client starts folding. Exit by pressing CTRL-C.

Create a script in '/etc/init.d' called "fah" to specify how to handle the Folding@Home service.

$ touch /etc/init.d/fah
$ chmod 755 /etc/init.d/fah
$ vi /etc/init.d/fah

Below is the body of the script. Copy and paste this into your terminal but make sure to edit the parts shown to reflect your particular system!

case "$1" in
start)
cd /opt/fah
./FAH504-Linux.exe 2>&1 &
;;
stop)
killall FAH504-Linux.exe
;;
esac

Run the following command, still as root, to insert symlinks into the appropriate rc.d directories automatically.

$ update-rc.d fah defaults

Start the F@H client with...
$ /etc/init.d/fah start

The F@H client will now be stopped and started automatically on boot and shutdown.

You can check the progress of the client at any time by using the "tail" command. Change the number 10 in the command below to select a number of lines (from the bottom) to be displayed from the log file.

$ tail -n 10 /opt/fah/FAHlog.txt

-------------------------------------

Source: http://www.flexion.org/site/index.ph...ion=Page&id=29

Hope that helps.
catacon is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:01 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1