You are not logged in.
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
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
I've updated the PKGBUILD and added the Folding@Home.install
Thanks for the suggestion sarah31.
Offline
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
Maybe we can create a Folding@Home group for Arch Linux sort of like there is a SETI@Home group. Anyone interested?
Offline
I'd probably be interested in that...I used to do SETI, but think that Folding is a much better cause.
Offline
I set up the group today. The team id is 45032. Anyone is welcome to join!
Offline
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
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?
Offline
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
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
Offline