January 9th, 2006, 01:25 PM
-
I'll PM this to you as well in case you don't see the thread, but one of the problems with folding on linux is getting it set up like a service as with the windows client.
Here's how.
bash Code:
#Become root
su -
#make the directory `/opt/fah`
mkdir /opt/fah
#Move the client into the new folder
#sidenote: why give it a .exe ending?
mv ./FAH*-Linux.exe /opt/fah
#make a new user for it to run under
useradd fah
#You want it to start up when the system does
#Linux is case sensitive so it's safe to do it this way with the wildcard, oh and it makes life easier now and later on
#this creates a little `run` script
echo "/opt/fah/Fah*.exe >> /opt/fah/runlog" > /opt/fah/foldtocure
#And you'll want it to start up, i'd assume <img src="http://images.devshed.com/fds/smilies/wink.gif" border="0" alt="" title="Wink" class="inlineimg" />
echo "su -l --command='/opt/fah/foldtocure' fah" > /etc/rc.d/rc.local
#Tidy everything up a little - give the files to the user
chown -R fah /opt/fah
#And make it only writeable by it
chmod -R 744 /opt/fah
#Lock the account into /opt/fah
usermod -d /opt/fah
#Make it startup
echo "
#Log into the new user account
cd /opt/fah
su -l fah
#And get the latest client
./FAH*.exe
#And then once it's downloaded the new client, ctrl-c it because you don't want it annoying you.
#hit ctrl-alt-f1 and get a TTY. log in, and you can start running the script.
/opt/fah/foldtocure
#And then get back to X (ctrl-alt-f7)
Comments on this post
Last edited by LinuxPenguin; January 9th, 2006 at 01:31 PM.
January 9th, 2006, 03:57 PM
-
I dont get this, where do I find my user id#? My username is Immortal1490, and I have a WU completed on their site, but how do I find the 6 digit number that UserCP asks for?
edit: nevermind i figured it out from the URL
Last edited by Immortal1490; January 9th, 2006 at 04:01 PM.
January 9th, 2006, 04:52 PM
-
Originally Posted by Immortal1490
I dont get this, where do I find my user id#? My username is Immortal1490, and I have a WU completed on their site, but how do I find the 6 digit number that UserCP asks for?
edit: nevermind i figured it out from the URL
For those that don't notice it straight away once you have typed your name in the box on teh left hand side here you will be given a list of names that match the one you entered (ideally only yours will show but there may be one similar). Click on your name and it will take you to a page about your stats like mine and the number at the end of the url ... for example u=117882 is your folding number to enter into the relevent box in the userCP here on DS!! 
hope that helps !!
January 10th, 2006, 02:43 AM
-
Originally Posted by RadioactiveFrog
Are you running the gui or console?
I'm running the gui, just downloaded the console and will switch over tonight, cheers.
January 10th, 2006, 05:02 AM
-
Originally Posted by bainser
I'm running the gui, just downloaded the console and will switch over tonight, cheers.
That sorted it for me, let us know how you get on!
January 10th, 2006, 05:55 AM
-
I did a quick benchmark test, the gui is only slower if you leave it displaying the protien on the screen (which i don't) so you can leave that installed aswell if you are not comfortable with the comandline.
I can not guarentee the accuracy of these tests.
Did this help? If so, please add to my Reputation by clicking the

at the top of this post
My Folding: -

January 10th, 2006, 01:48 PM
-
Originally Posted by Profftnt
I did a quick benchmark test, the gui is only slower if you leave it displaying the protien on the screen (which i don't) so you can leave that installed aswell if you are not comfortable with the comandline.
I can not guarentee the accuracy of these tests.
The GUI expends CPU cycles calculating the graphics, regardless of whether they are being shown or not.
@LP, thanks, working on incorporating that.
Asker of questions and all-around annoying guy.
For difficult hardware problems, go to the Hard Side™-- DevHardware Forums
January 10th, 2006, 03:25 PM
-
Originally Posted by Dngrsone
The GUI expends CPU cycles calculating the graphics, regardless of whether they are being shown or not.
@LP, thanks, working on incorporating that.
That's how it is for my fedora system. Other systems may have different methods of making a program start up on boot, so you may need to look into that
January 10th, 2006, 05:34 PM
-
Most linux systems are similar I think. I just made a full init script for my system
Code:
. /etc/sysconfig/rc
. ${rc_functions}
PIDFILE=/home/kicken/.FAH/FAH.pid
case "${1}" in
start)
boot_mesg "Starting Folding@Home clinet ..."
if [ ! -f $PIDFILE ]; then
su - kicken -c \$HOME/bin/startfah
fi
evaluate_retval
;;
stop)
boot_mesg "Stopping Folding@Home client ..."
if [ -f $PIDFILE ]; then
kill `cat $PIDFILE`
rm $PIDFILE
fi
evaluate_retval
;;
restart)
${0} stop
sleep 1
${0} start
;;
*)
echo "Usage: ${0} {start|stop|restart}"
exit 1
;;
esac
And the startfah script is simply:
Code:
cd $HOME/.FAH
./FAHClient >/dev/null 2>&1 &
echo $! > FAH.pid
That's for my server. For my desktop I made a similar startfah script, but I just call it from my login scripts so it starts when I login rather than when I boot up (which is more or less the same time)
Recycle your old CD's
If I helped you out, show some love with some reputation, or tip with Bitcoins to
1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
January 10th, 2006, 07:20 PM
-
Now how are proteins determined? I got 2 WU and i have one protein, how many for two proteins, three, and so on?
January 10th, 2006, 07:35 PM
-
it's a points thing ...unless ... its a world saving thing
;;;don't annoy me
--Ax
without exception, there is no rule ...
Handmade Irish Jewellery
Targeted Advertising Cookie Optout (TACO) extension for Firefox
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski
Deta
vil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
BIT COINS ANYONE
January 10th, 2006, 11:06 PM
-
Originally Posted by Immortal1490
Now how are proteins determined? I got 2 WU and i have one protein, how many for two proteins, three, and so on?
The first is a freebie, only one WU completed required (or, I should say, having at least one point); each additional for every 10K points up to 100K, then one for every 500K points after that, IIRC.
Asker of questions and all-around annoying guy.
For difficult hardware problems, go to the Hard Side™-- DevHardware Forums
January 10th, 2006, 11:33 PM
-
I'm glad to see that Folding has taken a strong hold in DevShed.
I just broke the 200 WU barrier.
Comments on this post
January 11th, 2006, 02:56 AM
-
Originally Posted by RadioactiveFrog
That sorted it for me, let us know how you get on!
I'm now running the console and it work away happily while I'm playing footie manager, cheers.
January 11th, 2006, 08:37 AM
-
Originally Posted by bainser
I'm now running the console and it work away happily while I'm playing footie manager, cheers.
No worries
have fun
and happy folding !!