How to run BOINC on a headless server?

Message boards : Cafe Rosetta : How to run BOINC on a headless server?

To post messages, you must log in.

AuthorMessage
Andrew Pennebaker

Send message
Joined: 23 Mar 20
Posts: 18
Credit: 128,727
RAC: 0
Message 92297 - Posted: 25 Mar 2020, 21:29:25 UTC
Last modified: 25 Mar 2020, 21:30:43 UTC

I feel stupid. What are the exact commands to start running jobs on a headless server?

Example: Thousands of Debian/Ubuntu sysadmins would like to install BOINC and do Rosetta@Home jobs.

We're not so much concerned with RPC crap as how to basically get going from the viewpoint of SSH. So which apt-get package should we use, what systemd commands are involved, how do we configure the tasks, what do? What about RHEL/Centos? OpenWrt?

Can we fix the tooling so it is closer to "Just Works" out of the box?
ID: 92297 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Mod.Sense
Volunteer moderator

Send message
Joined: 22 Aug 06
Posts: 4018
Credit: 0
RAC: 0
Message 92315 - Posted: 26 Mar 2020, 4:16:11 UTC

Be sure you have the permission of the owner of the machines to run.

Here is some info. for you to chew on:
Installing BOINC (including a tiny section on Docker!)
Creating custom installers

Once you get it installed, you can use the command line to attach to projects.
The program (boinccmd) provides a command-line interface to a running BOINC client
Rosetta Moderator: Mod.Sense
ID: 92315 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Germano_0x

Send message
Joined: 27 Dec 13
Posts: 3
Credit: 2,493,872
RAC: 0
Message 92634 - Posted: 30 Mar 2020, 15:42:29 UTC
Last modified: 30 Mar 2020, 15:47:31 UTC

Fedora / CentOS / RHEL
# means run the command as root
$ means run the command as normal user


Install BOINC
# dnf install boinc-client

(if CentOS RHEL before such command run # dnf install epel-release)
# systemctl enable boinc-client
# systemctl start boinc-client

let's remove the password to communicate to the boinc service
# echo > /var/lib/boinc/gui_rpc_auth.cfg
# systemctl restart boinc-client

get your Rosetta weak authentication key from https://boinc.bakerlab.org/rosetta/weak_auth.php
$ boinccmd --project_attach https://boinc.bakerlab.org/rosetta/ weak_key


If you want to push CPU to 100%, edit
/var/lib/boinc/global_prefs.xml

and set <cpu_usage_limit> to 100%

If you want to increase also RAM usage edit values
<ram_max_used_busy_pct>
<ram_max_used_idle_pct>


Don't forget to restart the service to load the new preferences
# systemctl restart boinc-client


Other commands I would suggest to run are
$ boinccmd --set_network_mode always
$ boinccmd --set_run_mode always
ID: 92634 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
bkil
Avatar

Send message
Joined: 11 Jan 20
Posts: 97
Credit: 4,433,288
RAC: 0
Message 92895 - Posted: 1 Apr 2020, 12:20:39 UTC

I also found this one useful:
apt install boinctui

I wish there existed some volunteer computing project for OpenWrt and if more gave jobs for Android. There are/were some open source BOINC projects, but I'm not sure about their hardware requirements: I found Lhc@home/SixTrack, DENIS, Milkyway@home, Enigma@home, ATLAS@home, RakeSearch, RNA world Infernal, Einstein@home and SETI. I think E@h and SETI even have Debian packages, for others you'd need to jump through a few hoops.

As most Rosetta@home tasks take up 1.5GB RAM and at least that much HDD, I don't think you could find a router easaly to run it on anyway.
ID: 92895 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote

Message boards : Cafe Rosetta : How to run BOINC on a headless server?



©2024 University of Washington
https://www.bakerlab.org