A Project Blog

Start Folding@Home on Boot with Screen on Ubuntu Linux

by @ March 1, 2008. Filed under howto, shell

Quick instructions to get Folding@home (or any other program) to run at boot before user login on Ubuntu Linux. This probably works on other distros with an rc.local file too.

1. Install F@H client, mine is in /opt/folding

2. Create a simple script, I called mine folding.sh and is only has:

#!/bin/bash
cd /opt/folding
./fah6 -smp

3. Put the screen command in /etc/rc.local. This will execute as user nick (su nick -c), “-dmS” will create the session detached and name it folding, and “bash –rcfile” will allow the screen session to keep running even if folding quits.

su nick -c “screen -dmS folding bash –rcfile /home/nick/bin/folding.sh”

Folding@home now starts whenever the computer boots, before anyone logs in. Nick can reattach to it and  control it or watch the progress by running “screen -r folding”.

Copyright ©2005-2007 Nicholas Brand. All rights reserved.
powered by WordPress.

categories:

links:

blogroll:

search:

archives:

March 2008
M T W T F S S
« Dec   Nov »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

other:

computers:

  • backupbox
  • closetbox
  • icebox
  • thinkpad
  • minibox
  • briefcasebox
  • summary
  • mythbox
  • other devices:

  • tivo
  • nokia 770
  • personal:

    del.icio.us
    Amazon Wishlist
    Last.FM
    Digg

    23 queries. 0.118 seconds