![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Beans: 162
Ubuntu 9.10 Karmic Koala
|
HOWTO: Autostart Folding at Home at startup
I run mine from a dir I created called .FAH in the home directory:
Code:
mkdir ~/.FAH Code:
cd ~/.FAH/ Then dowload the FAH console found here: http://folding.stanford.edu/download.html For the lazy: Code:
wget http://www.stanford.edu/group/pandegroup/release/FAH502-Linux.exe Run and configure it to your username, team and machine ID as they tell you here: http://folding.stanford.edu/linux.html Feel free to join the #justlinux irc regulars and choose team #36480. We're doing well. Now let's make it start at startup! First create the script that will run FAH: Code:
sudo nano -w /etc/init.d/foldingathome Code:
#!/bin/bash pushd /home/user/.FAH/ su user -c "screen -d -m ./FAH502-Linux.exe" popd Now let's make it executable: Code:
sudo chmod +x /etc/init.d/foldingathome Code:
sudo ln -s /etc/init.d/foldingathome /etc/rc2.d/S99foldingathome Last edited by ions; January 21st, 2005 at 06:15 PM.. |
|
|
|
|
|
#2 |
|
Quad Shot of Ubuntu
![]() Join Date: Oct 2004
Location: Texas, USA
Beans: 414
|
Re: Autostart Folding at Home at startup
This needs a HOWTO: tag on the title.
__________________
--Join the march for individuality! Rancoras Linux User #64203 |
|
|
|
|
|
#3 | |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Beans: 162
Ubuntu 9.10 Karmic Koala
|
Re: Autostart Folding at Home at startup
Quote:
|
|
|
|
|
|
|
#4 | |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Beans: 162
Ubuntu 9.10 Karmic Koala
|
Re: Autostart Folding at Home at startup
Quote:
|
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() |
Re: Autostart Folding at Home at startup
For those that have trouble, this is how I did it:
Make a directory to install F@H in. Location doesn't particularly matter... I chose /home/fah so I'll be using that throughout the post. Download the F@H client to the newly created folder and run it as root: Code:
sudo mkdir /home/fah cd /home/fah sudo wget http://www.stanford.edu/group/pandegroup/release/FAH502-Linux.exe sudo chmod +x FAH502-Linux.exe sudo ./FAH502-Linux.exe Make a file called fah in the /etc/init.d directory: Code:
sudo gedit /etc/init.d/fah Code:
#!/bin/sh
# /etc/init.d/fah for Ubuntu
# Start/stop/restart the F@H service.
fah_start() {
if [ -x /home/fah/startfah.sh ]; then
echo "Starting F@H: /home/fah/startfah.sh"
/home/fah/startfah.sh
fi
}
fah_stop() {
sudo killall FAH502-Linux.exe
}
fah_restart() {
fah_stop
sleep 2
fah_start
}
case "$1" in
'start')
fah_start
;;
'stop')
fah_stop
;;
'restart')
fah_restart
;;
*)
fah_start
esac
Code:
sudo chmod +x /etc/init.d/fah Code:
sudo gedit /home/fah/startfah.sh Code:
#!/bin/sh cd /home/fah /home/fah/FAH502-Linux.exe -forceasm -advmethods >/dev/null 2>&1 & exit 0 Code:
sudo chmod +x /home/fah/startfah.sh last and final step! Make a symlink into the /etc/rc2.d directory! Code:
ln -s /etc/init.d/fah /etc/rc2.d/S99fah Code:
sudo /etc/init.d/fah start Many thanks to XtremeSystems for the startfah.sh script and a good friend of mine for the /etc/init.d/fah script Last edited by Saibei; February 5th, 2005 at 11:23 AM.. |
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Beans: 162
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Autostart Folding at Home at startup
I've tried both my method and Saibei's since moving to Hoary and can't get F@H to autostart. Any idea why that would be or am I likely doing something wrong?
|
|
|
|
|
|
#7 | |
|
5 Cups of Ubuntu
![]() |
Re: Autostart Folding at Home at startup
Quote:
|
|
|
|
|
|
|
#8 |
|
Grande Half-n-Half Cinnamon Ubuntu
![]() Join Date: Apr 2005
Location: IRC or Forums
Beans: 934
Ubuntu 9.10 Karmic Koala
|
Re: Autostart Folding at Home at startup
Worked like a charm!
Also note that I have created an UbuntuForums Team. If one of the Admins would like to take over this team please PM me and I will give you the password. The Team ID Number Is: 45399 The Team WebPage Is: http://vspx27.stanford.edu/cgi-bin/m...&teamnum=45399 EDIT: Yes the start up script works perfectly
__________________
Hosting Feedback - General Web Directory Last edited by XDevHald; July 9th, 2005 at 06:30 PM.. |
|
|
|
|
|
#9 |
|
Spilled the Beans
![]() Join Date: Nov 2004
Location: Belgium
Beans: 10
|
Re: Autostart Folding at Home at startup
You can also use finstall to your Folding@Home client and then use the provided folding script.
Simply execute finstall, follow the instructions and then Code:
sudo cp <install path>/foldingathome/folding /etc/init.d/folding sudo update-rc.d folding defaults |
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2005
Beans: 4
|
Re: Autostart Folding at Home at startup
ive just got ubutnu installed im a toal noob to Linux by the way. I followed the above text and thought i was going well got the FAh running and dowloaded a wu
and carried on with the rest of the tutorial I think i may have gone wrong at the startFAh bit in the folder startfah.sh i can see the text that I copied and pasted and then it goes on to say make it execuatable so i saved the startfah and opened the terminal window and pasted the next bit I think i cocked up here How do i go about starting again ? Ive gone into the process monitor and disabled the FAH process it wasnt running anyway my cpu was only showing 2% thanks for looking |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|