Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Application developers can seamlessly integrate the Advantage Database install with their application install. Learn the best practices used when setting up silent installs with this seminar.
  #61  
Old January 9th, 2006, 01:25 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 998
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:
Original - bash Code
  1.  
  2. #Become root
  3. su -
  4. #make the directory `/opt/fah`
  5. mkdir /opt/fah
  6. #Move the client into the new folder
  7. #sidenote: why give it a .exe ending?
  8. mv ./FAH*-Linux.exe /opt/fah
  9. #make a new user for it to run under
  10. useradd fah
  11. #You want it to start up when the system does
  12. #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
  13. #this creates a little `run` script
  14. echo "/opt/fah/Fah*.exe >> /opt/fah/runlog" > /opt/fah/foldtocure
  15. #And you'll want it to start up, i'd assume ;)
  16. echo "su -l --command='/opt/fah/foldtocure' fah" > /etc/rc.d/rc.local
  17. #Tidy everything up a little - give the files to the user
  18. chown -R fah /opt/fah
  19. #And make it only writeable by it
  20. chmod -R 744 /opt/fah
  21. #Lock the account into /opt/fah
  22. usermod -d /opt/fah
  23. #Make it startup
  24. echo "
  25. #Log into the new user account
  26. cd /opt/fah
  27. su -l fah
  28. #And get the latest client
  29. ./FAH*.exe
  30. #And then once it's downloaded the new client, ctrl-c it because you don't want it annoying you.
  31. #hit ctrl-alt-f1 and get a TTY. log in, and you can start running the script.
  32. /opt/fah/foldtocure
  33. #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.

Reply With Quote
  #62  
Old January 9th, 2006, 03:57 PM
Immortal1490 Immortal1490 is offline
syndicatetech.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 412 Immortal1490 User rank is Corporal (100 - 500 Reputation Level)Immortal1490 User rank is Corporal (100 - 500 Reputation Level)Immortal1490 User rank is Corporal (100 - 500 Reputation Level)Immortal1490 User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 13762 Folding Title: Novice Folder
Time spent in forums: 3 Days 23 h 36 m 2 sec
Reputation Power: 7
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.

Reply With Quote
  #63  
Old January 9th, 2006, 04:52 PM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
sleeping guru
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2003
Location: under the stars
Posts: 2,444 RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 6 h 18 m 28 sec
Reputation Power: 171
Send a message via MSN to RadioactiveFrog
Quote:
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 !!

Reply With Quote
  #64  
Old January 10th, 2006, 02:43 AM
bainser's Avatar
bainser bainser is offline
Give us a kiss
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2004
Location: Fife, Scotland
Posts: 1,788 bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)bainser User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 52515 Folding Title: Beginner FolderFolding Points: 52515 Folding Title: Beginner FolderFolding Points: 52515 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 4 Days 9 h 34 m 8 sec
Reputation Power: 649
Send a message via AIM to bainser
Quote:
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

Reply With Quote
  #65  
Old January 10th, 2006, 05:02 AM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
sleeping guru
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2003
Location: under the stars
Posts: 2,444 RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)RadioactiveFrog User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1Folding Points: 152419 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 6 h 18 m 28 sec
Reputation Power: 171
Send a message via MSN to RadioactiveFrog
Quote:
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!

Reply With Quote
  #66  
Old January 10th, 2006, 05:55 AM
Profftnt's Avatar
Profftnt Profftnt is offline
They call me geek here........
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2004
Location: 118 Computer Geek, UK
Posts: 2,976 Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)Profftnt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 32057 Folding Title: Starter FolderFolding Points: 32057 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 22 h 49 m 24 sec
Reputation Power: 381
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: -





Reply With Quote
  #67  
Old January 10th, 2006, 01:48 PM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Infernal Technomancer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2005
Location: Centrally located far from everywhere
Posts: 950 Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)Dngrsone User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 295337 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Week 16 h 34 m 19 sec
Reputation Power: 92
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
Quote:
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

Reply With Quote
  #68  
Old January 10th, 2006, 03:25 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 998
Quote:
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

Reply With Quote
  #69  
Old January 10th, 2006, 05:34 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 3,990 kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)kicken User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115020 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 2 Weeks 4 Days 10 h 49 m 30 sec
Reputation Power: 406
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
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)
__________________
Spidermonkey Tutorial

http://wiser.aoeex.com/ - Long term project (offline due to evil crawlers and lack of content)
http://www.aoeex.com/gmap.php - Put yourself on the map

Reply With Quote
  #70  
Old January 10th, 2006, 07:20 PM
Immortal1490 Immortal1490 is offline
syndicatetech.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 412