You are not logged in.

#1 2004-11-03 18:44:04

seratne
Member
Registered: 2004-02-06
Posts: 21

[New] Folding@Home

I didn't see a pkgbuild for the F@H client anywhere so here you are.  Also created a rc.d script to startup the client as a daemon.  You must run /opt/fah/FAH502-Linux.exe first though before you run the daemon, so that you can setup all of your settings.

foldingathome.rc.d

#!/bin/bash
#/etc/rc.d/foldingathome
#
# Starts the Folding@Home client in the background

. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Starting Folding@Home"
    cd /opt/fah/
    /opt/fah/FAH502-Linux.exe > /opt/fah/myfah.log &
    stat_done
    ;;
  stop)
    stat_busy "Stopping Folding@Home"
    killall FahCore_65.exe
    stat_done
    ;;
  restart)
    stop
    start
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1

esac
exit 0

PKGBUILD

pkgname=Folding@Home
pkgver=502
pkgrel=1
pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases."
install=Folding@Home.install
depends=()
url="http://folding.stanford.edu/"
binaryname="FAH502-Linux.exe"
source=(http://www.stanford.edu/group/pandegroup/release/$binaryname)
md5sums=('4855e808fb94e6d2c5fde345aea0cdc3')

build() {
  cd $startdir/src/
  mkdir -p $startdir/pkg/opt/fah
  mkdir -p $startdir/pkg/etc/rc.d
  install -c -m 0755 $binaryname $startdir/pkg/opt/fah/
  install -c -m 0755 $startdir/foldingathome.rc.d $startdir/pkg/etc/rc.d/foldingathome
}

Folding@Home.install

# arg 1:  the new package version
post_install() {
  /bin/true
  echo "Please cd to /opt/fah/ and execute ./FAH502-Linux.exe to configure your settings."
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /bin/true
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

op=$1
shift

$op $*

Offline

#2 2004-11-03 18:58:12

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [New] Folding@Home

seratne wrote:

You must run /opt/fah/FAH502-Linux.exe first though before you run the daemon, so that you can setup all of your settings.

you should create a .install file that echoes this instruction upon installation.  (not really necessary right now but if it makes it to a TUR or the repos it should have something like this)


AKA uknowme

I am not your friend

Offline

#3 2004-11-03 20:53:55

seratne
Member
Registered: 2004-02-06
Posts: 21

Re: [New] Folding@Home

I've updated the PKGBUILD and added the Folding@Home.install

Thanks for the suggestion sarah31.

Offline

#4 2004-11-03 23:15:00

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [New] Folding@Home

no problem. if this package were to get picked up by a TUR or repo then they would have created one but it is good practise should you like to move on to being a TU or managing your own public repo.

thanks for the pkg. i used to use F@H but opted for the Canadian based project Distributed Folding (http://www.blueprint.org/proteinfolding … index.html). I personally think both project are much cooler than seti


AKA uknowme

I am not your friend

Offline

#5 2005-06-14 23:04:15

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: [New] Folding@Home

Maybe we can create a Folding@Home group for Arch Linux sort of like there is a SETI@Home group. Anyone interested?

Offline

#6 2005-06-15 03:35:14

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: [New] Folding@Home

I'd probably be interested in that...I used to do SETI, but think that Folding is a much better cause.

Offline

#7 2005-06-15 04:51:17

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: [New] Folding@Home

I set up the group today. The team id is 45032. Anyone is welcome to join!

Offline

#8 2005-06-15 07:01:11

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: [New] Folding@Home

I noticed some errors in the daemon. Fixed version:

#!/bin/bash
#/etc/rc.d/foldingathome
#
# Starts the Folding@Home client in the background

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Starting Folding@Home"
    cd /opt/fah/
    /opt/fah/FAH502-Linux.exe -verbosity 9 > /opt/fah/myfah.log &
    stat_done
    ;;
  stop)
    stat_busy "Stopping Folding@Home"
    killall /opt/fah/FAH502-Linux.exe
    stat_done
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1

esac
exit 0

Edit:
I placed the pkgbuild in the aur, so no more updates will be made here.

Offline

#9 2005-08-18 01:16:03

Rotonen
Member
From: Espoo, Finland
Registered: 2005-03-08
Posts: 31
Website

Re: [New] Folding@Home

elasticdog wrote:

I'd probably be interested in that...I used to do SETI, but think that Folding is a much better cause.

I totally agree with that point and I'm frustrated about the fact that there is the SETI@Home group in the Arch Newsletter, but no support For Folding@Home from that direction.

Really, if there are ETs out there, so what? The Folding@Home project really helps mankind on a short and long term (knowing how proteins function is vital for future medical applications). And besides, if we have a contact with ETs, let's be as technologically advanced as possible to show off, right? wink

Offline

#10 2005-08-18 01:58:34

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: [New] Folding@Home

The lack of support for Folding@Home in the newsletter is my fault. I have been meaning to ask for the newsletter editors to add Folding@Home for a while, but I never got around to it. It would be good for publicity and getting the word out that there is an Arch Linux team for those who want to join it. I guess I should probably put something in Arch Discussion about it and see what happens.

Offline

#11 2005-08-24 04:25:07

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65

Re: [New] Folding@Home

I'm in, I started folding about 6 weeks ago and have achieved this so far:

Score: 22513, Rank: 28295 out of 484439, Top 5.84%
Work units submitted: 60
Active CPUs: 4 (all running Arch, of course)

I've added all 4 to the Arch team, and I hope to add one or two more CPUs in the coming months.

Thank you for setting up the team!


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

#12 2005-08-24 05:15:14

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: [New] Folding@Home

Awesome thank you for all your support (and processors)! big_smile

Offline

Board footer

Powered by FluxBB