Subject: Re: S@Home and Linux
From: Klaatu
Date: 20/03/2006, 15:28
Newsgroups: alt.sci.seti

Martin 53N 1W wrote:

Klaatu wrote:
f/fgeorge wrote:

Martin how do I set up Linux to automatically start Boinc when Linux
starts? I have JUST started using Linux on a couple of boxes but must
[...]
can't figure out how to make Boinc auto start. I am Windows guy so
please be gentle and as step by step with the directions as possible.


One way to start it, assuming you have it running correctly, is to use
~/.kde/Autostart .  Assuming as a beginner you are probably using KDE.
Just make a simple text file in the Autostart directory named startboinc
for example, make it executable with chmod +x or via gui, and enter
following data and save.

#!/bin/sh
cd ~/boinc
./boinc&

Whenever you boot up to KDE, Boinc will start.  The ~ is short for the
path to your home directory, where I assume you have Boinc installed in a
directory named boinc and the you haven't renamed the boinc executable
file.  Not the only solution, but its an easy one.

That and the suggestion from Lars are all good.

Myself, I use my own script that is started from /etc/rc.d/local.rc ...
using a very restricted user id ... And then a cron job bumps up the
nice priority so that another background task doesn't get too great a
share of the idle time... But that's for another posting. In Linux you
can sometimes have a bewildering flexibility of choice of how to do
something. There are many good ways!

You can also add a shortcut onto your desktop to run the Boinc Manager
at ~/boinc/boincmgr

Also, the "./boinc" in the above script might actually need to be
"./boinc_cmd &". (No quotes, and the space before the "&" is unimportant.)


Let us know how you get on.

Good luck,
Martin


Believe the boinc_cmd is  for control in a non-gui environment.  Have never
used it intentionally, I always run boinc directly and access it through
Kboincspy http://kboincspy.sourceforge.net/, or boinc's boincmgr, or boinc
bash script by Jean Philippe EIMER  http://phileimer.9online.fr/

http://boinc.berkeley.edu/boinc_cmd.php