EB's picture

Greetings,

I would like to run BOINC in the background. Likely many of us don't have much traffic on our turnkey linux servers and would like to contribute that otherwise wasted resource on something beneficial.

https://boinc.berkeley.edu/

https://boinc.berkeley.edu/wiki/Boinccmd_tool

Might someone be able to help me get this configured to connect to, for example, SETI@home and to start and run automatically upon boot? I have already run apt install and have the boinccmd tool and likely all of the software requirements for command line operation.

https://setiathome.berkeley.edu/

I could potentially spend hours finding this out but hopefully someone can save me from that and allow me to work on things to which I'm more suited.

If SETI@home works I should be able to figure out how to connect to Einstein@home, LHC@home, Rosetta@home, etc. on my own.

Thank you.

 

Forum: 
Jeremy Davis's picture

That's an awesome idea! TBH, I have limited experience with BOINC. I did have a play many years ago, but haven't investigated recently. However, I am fairly familiar with systemd which would be the best way to daemonize BOINC (or any other application you wish to run as a service these days...).

Seeing as systemd is becoming standard across most Linux distros, they may even already include a service file to support running it as a daemon? Actually, a quick look through their source code and I discovered a file that appears to be a systemd '.service' file. So if you've installed BOINC from the Debian repos (as it sounds like you have) you should only need to run something like this (to make is auto start on boot):

systemctl enable boinc-client.service

To start it right now, try this:

systemctl start boinc-client.service

You may need to adjust some of the config. I suspect that the daemon config will be in /etc/default/boinc-client and the rest of the BOINC config will likely be found in /etc/boinc-client.

I hope that helps. It looks like the BOINC forums are here if you need BOINC specific assistance. Please keep in mind that TurnKey v15.x is based on Debian 9/Stretch. Please post back with more info if you continue to have TurnKey specific issues and I'll do my best to help out. If you get it working, it'd be great if you can share info as others might like to follow in your footsteps.

EB's picture

I'll request the additional details on the BOINC forums. :-)

EB's picture

Exit the configuration tool and at the command prompt type:

cd /etc/boinc-client

From that folder / directory, look up your account information for whatever BOINC service you wish to use. For this example I will use World Community Grid and a fictional email address and password.

boinccmd --lookup_account http://www.worldcommunitygrid.org fictional@email-address.com made-up-password

That will get your World Community Grid account code.

Connect to the project. Type:

boinccmd --project_attach http://www.worldcommunitygrid.org the-account-key-you-got-from-the-last-command

That should get things started.

Use these queries from the same directory:

https://boinc.berkeley.edu/wiki/Boinccmd_tool

Use Jeremy Davis' instructions:

"...if you've installed BOINC from the Debian repos (as it sounds like you have) you should only need to run something like this (to make is auto start on boot):"

systemctl enable boinc-client.service

To start it right now, try this:

systemctl start boinc-client.service

Use Jeremy Davis' instructions to activate screen blanking, to save power.

https://www.turnkeylinux.org/forum/support/sat-20191019-1701/screen-disp...

Add new comment