Subject: Re: S@Home and Linux
From: Martin 53N 1W
Date: 19/03/2006, 19:52
Newsgroups: alt.sci.seti

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

-- 
----------   OS? What's that?!               (Martin_285 on Mandriva)
- Martin -   To most people, "Operating System" is unknown & strange.
- 53N 1W -   Mandriva 10LE GNU Linux - An OS for Supercomputers & PCs
----------   http://www1.mandrivalinux.com/en/concept.php3