Quantcast

Forums | MacLife

You are not logged in.

  • Index
  •  » Folding@Home
  •  » Installing, running and uninstalling FAH: custom scheduling

#1 2009-01-14 10:14 am

mrreet2001
Member
From: NW Ohio
Registered: 2005-05-25
Posts: 4332
Website

Installing, running and uninstalling FAH: custom scheduling

I would like to run FAH on some more machines... but they A. aren't logged in all the time and B. are often logged in as someone else.

1. Is there a way to install FAH (hopefully via 100% command line remotely using remote desktop) to run as a user that isn't logged in like root or something. I am sure I could make a package, but it would still involve terminal commands so I would prefer if I would be able to do it 100% via RD's send unix commands.

2. How would I start it an stop it.

3. How would I uninstall it via command line (remotely again using RD)


Oh, the targets will be dual core intels ... but if I could get the code to do the same to PPCs (and single core intels) that would be great too.


title edited

Last edited by Nefarious (2009-01-23 3:12 pm)


2.66Ghz QuadCore-Nehalem w/24"LED CD ---2.2Ghz BlackMB---15" 2.4Ghz MBP(work)
Dual 2.3Ghz G5 (4G Ram, 2x 250G HD)(10.5 server)--- 400Mhz G4 PM (10.4 Server)
1.5GHz Powerbook---1.6Ghz G5 iMac
"So he fels down in a poisoning gas."

Offline

 

#2 2009-01-14 11:39 am

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

It used to be that Folding would run, no matter which user is logged in.   I think it still is this way for the PPC installs (c.f. QuickFold).

Let me mail this thread to Artemis and Otsep for Intel Mac comments.

Offline

 

#3 2009-01-14 1:24 pm

ArtemisG3
Imaginary Friend
Royal Wombat
From: between here and there
Registered: 2001-08-13
Posts: 2079
Website

Re: Installing, running and uninstalling FAH: custom scheduling

Take this example for how I install Folding@home via SSH or ARD. I usually ssh into the account on the remote machine as the user that I want to install Folding under (usually the admin account, because other accounts come and go). Paste the following command and press return:

Code:

mkdir ~/Library/.FAH/; cd ~/Library/.FAH/; curl -O http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02-OSX-Intel-Console.tgz; tar xzf FAH6.02-OSX-Intel-Console.tgz; echo '[settings]' > ~/Library/.FAH/client.cfg; echo 'username=MA4LFolder' >> ~/Library/.FAH/client.cfg; echo 'team=18' >> ~/Library/.FAH/client.cfg; echo 'asknet=no' >> ~/Library/.FAH/client.cfg; echo 'bigpackets=no' >> ~/Library/.FAH/client.cfg; echo 'machineid=1' >> ~/Library/.FAH/client.cfg; echo '' >> ~/Library/.FAH/client.cfg; echo '[http]' >> ~/Library/.FAH/client.cfg; echo 'active=no' >> ~/Library/.FAH/client.cfg; echo 'host=localhost' >> ~/Library/.FAH/client.cfg; echo 'port=8080' >> ~/Library/.FAH/client.cfg; echo '' >> ~/Library/.FAH/client.cfg; echo '[clienttype]' >> ~/Library/.FAH/client.cfg; echo 'type=3' >> ~/Library/.FAH/client.cfg; echo "0       18      *       *       1,2,3,4,5       cd ~/Library/.FAH/; nohup ./fah6 -local -smp -advmethods -forceasm &" > tmpcron; echo "0       7       *       *       1,2,3,4,5       killall fah6" >> tmpcron; echo "" >> tmpcron; crontab tmpcron; rm tmpcron; nohup ./fah6 -local -smp -advmethods -forceasm &

This downloads and installs Folding@home. You will also notice that I have crontab rules in there that only have folding running "after hours". You can modify that if needed.

Stopping folding via ARD is as simple as sending:

Code:

killall fah6

as the Folding user.

Starting folding via ARD, send this command as the folding user:

Code:

cd ~/Library/.FAH/; nohup ./fah6 -local -smp -advmethods -forceasm &

This may not be the most elegant solution, but it works for me. This code has to be modified occasionally whenever a new version of Folding is released.

Offline

 

#4 2009-01-22 11:30 pm

belloq
Member
Registered: 2002-12-09
Posts: 156

Re: Installing, running and uninstalling FAH: custom scheduling

Man, have I been out of it for a while!

So, let me get this straight: the current 6.20 "GUI" install of FAH doesn't set up to execute on bootup? If that's the case, perhaps I'll need to do the console install per ArtemisG3's method here.


http://folding.extremeoverclocking.com/sigs/sigimage.php?u=37269

Offline

 

#5 2009-01-22 11:53 pm

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

my thread on Intel Macs is the way to go. http://www.maclife.com/forums/topic/104640

Piece of cake.   Click on the thumbnails in the 2nd post of mine.   Activate folding in System Preferences, with user name, team # 18.    Folding does the rest, the way we want it to.    Folding will execute on boot or after waking from sleep without hassle once its been activated in System Preferences.

A whole lot easier than the above Artemis plan.

Last edited by Nefarious (2009-01-23 12:08 am)

Offline

 

#6 2009-01-23 12:00 am

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

Folding needs to be activated only ONCE in System Preferences, not everyday.

There's no need to fiddle with Terminal, daemons, cron jobs or even custom installers.

Folding will install in ~ / Library / Folding @ Home

There will be 5 major processes running in Activity Monitor :   fah6 and 4 instances of "fah_Core"  (various spellings depending on which core that fah6 will call up).   Nearly every protein that you get on an Intel Mac will be one of these point values:   893, 1440, 1523, 1732, 1760, 1920, 2144 or 3340.   There are a few others.  Recently for me, its nearly all 1920's and 893.

Last edited by Nefarious (2009-01-23 12:01 am)

Offline

 

#7 2009-01-23 12:04 am

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

On my iMac, the small 893 pointer needs 13-14 minutes to do 1 % when the CPU is otherwise idle.

NOTE: these Intel Folding installs expire every 6-10 months.    The last time was in early August.

Offline

 

#8 2009-01-23 5:51 am

ArtemisG3
Imaginary Friend
Royal Wombat
From: between here and there
Registered: 2001-08-13
Posts: 2079
Website

Re: Installing, running and uninstalling FAH: custom scheduling

belloq wrote:

So, let me get this straight: the current 6.20 "GUI" install of FAH doesn't set up to execute on bootup? If that's the case, perhaps I'll need to do the console install per ArtemisG3's method here.

My instructions are mainly for remote install or for creating a custom run schedule. The start and stop commands are only needed for non-scheduled starts and stops.

Nefarious wrote:

A whole lot easier than the above Artemis plan.

"Easy" is pasting the above command into a remote ssh session to have FAH downloaded, installed, and run on a custom schedule. tongue

Offline

 

#9 2009-01-23 8:37 am

belloq
Member
Registered: 2002-12-09
Posts: 156

Re: Installing, running and uninstalling FAH: custom scheduling

Thanks for the clarification guys.


http://folding.extremeoverclocking.com/sigs/sigimage.php?u=37269

Offline

 

#10 2009-01-23 3:10 pm

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

Offline

 

#11 2009-01-25 9:10 am

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

How is the 24 iMac coming along ?

Offline

 

#12 2009-01-25 5:42 pm

belloq
Member
Registered: 2002-12-09
Posts: 156

Re: Installing, running and uninstalling FAH: custom scheduling

Nefarious wrote:

How is the 24 iMac coming along ?

Looks like it sent up the 1920pt unit today. It's already 32% done on the next one, 2669, another 1920-pointer. Current speed without video encodes to slow it down today, it's doing 1% every 11 minutes.

Unfortunately, I do have several HD encodes waiting to process, but I'll hold off for the better part of today and perhaps start them when I leave for work in the morning.

Last edited by belloq (2009-01-25 5:47 pm)


http://folding.extremeoverclocking.com/sigs/sigimage.php?u=37269

Offline

 

#13 2009-01-30 2:13 pm

Nefarious
Tuning Fork
Moderator
From: 45°22"N 84°57"W
Registered: 2002-09-30
Posts: 7998

Re: Installing, running and uninstalling FAH: custom scheduling

Nefarious wrote:

Nearly every protein that you get on an Intel Mac will be one of these point values:   893, 1440, 1523, 1732, 1760, 1920, 2144 or 3340.   There are a few others.  Recently for me, its nearly all 1920's and 893.

Sheesh.....   I've got a Gromacs protein running now which is 225 points, p4443.    I haven't seen one of those ever on my Intel iMac.

http://fah-web.stanford.edu/psummary.html

Offline

 
  • Index
  •  » Folding@Home
  •  » Installing, running and uninstalling FAH: custom scheduling

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson