#61
  1. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    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

    • Axweildr agrees : cheers for that
    Last edited by LinuxPenguin; January 9th, 2006 at 01:31 PM.
  2. #62
  3. No Profile Picture
    syndicatetech.com
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    413
    Rep Power
    13
    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.
  4. #63
  5. sleeping guru
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2003
    Location
    under the stars
    Posts
    2,444
    Rep Power
    177
    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 !!
  6. #64
  7. Give us a kiss
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2004
    Location
    Fife, Scotland
    Posts
    1,788
    Rep Power
    655
    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.


    Risk Free Betting at Matched-Betting.com
  8. #65
  9. sleeping guru
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2003
    Location
    under the stars
    Posts
    2,444
    Rep Power
    177
    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!
  10. #66
  11. They call me geek here........
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Nov 2004
    Location
    118 Computer Geek, UK
    Posts
    2,976
    Rep Power
    387
    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: -




  12. #67
  13. Infernal Technomancer
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2005
    Location
    Centrally located far from everywhere
    Posts
    950
    Rep Power
    97
    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
  14. #68
  15. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    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
  16. #69
  17. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,905
    Rep Power
    3969
    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, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  18. #70
  19. No Profile Picture
    syndicatetech.com
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    413
    Rep Power
    13
    Now how are proteins determined? I got 2 WU and i have one protein, how many for two proteins, three, and so on?
  20. #71
  21. 'fie' on me, allege-dly
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2003
    Location
    in da kitchen ...
    Posts
    12,889
    Rep Power
    6444
    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
    Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
    BIT COINS ANYONE
  22. #72
  23. Infernal Technomancer
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2005
    Location
    Centrally located far from everywhere
    Posts
    950
    Rep Power
    97
    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
  24. #73
  25. Guilt is a smirk away
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    Iowa (behind a cow)
    Posts
    551
    Rep Power
    51
    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

    • RadioactiveFrog agrees : Thats a milestone worth some points :D
    • Profftnt agrees : Have some more points 'foof
    Want tech-related products and looking for a deal? Visit
    www.funkyfoof.com

    My first plasma experience
    www.funkyplasma.com
  26. #74
  27. Give us a kiss
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2004
    Location
    Fife, Scotland
    Posts
    1,788
    Rep Power
    655
    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.


    Risk Free Betting at Matched-Betting.com
  28. #75
  29. sleeping guru
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2003
    Location
    under the stars
    Posts
    2,444
    Rep Power
    177
    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 !!

IMN logo majestic logo threadwatch logo seochat tools logo