Skip to content


How to install BOINC using command line on Linux

BOINC is a large distributed computing project, or more accurately, a piece of software used by a bunch of distributed computing projects. I recently tried to install it on a Linux server, and got lots of trouble figuring out how to configure it using only the command line: as a definitely mainstream program, they seem to revolve around their GUI and the documentation for the command line, although not inexistent, isn’t of much help when it comes to simply configuring the software… So here’s a complete step-by-step guide (even included the properly documented parts) to get it started:

  1. Create an account for the project you want. For the example, I’ll be creating an account at Quantum Monte Carlo @ Home by University of Muenster (Germany).
  2. Note your account key (you’ll need it later).
  3. Get the BOINC client (for instance, wget http://boinc.berkeley.edu/dl/boinc_6.12.4_x86_64-pc-linux-gnu.sh).
  4. Make it executable (chmod +x boinc_6.12.4_x86_64-pc-linux-gnu.sh).
  5. Run it (./boinc_6.12.4_x86_64-pc-linux-gnu.sh).
  6. Navigate to the newly created subfolder BOINC (cd BOINC).
  7. Launch a screen (screen), inside which you’ll run run_client (./run_client). (NB: depending on your Linux version, you may need to install curl, for instance on Ubuntu: apt-get install curl)
  8. Detach the screen (CTRL+A, CTRL+D) or open another terminal.
  9. Attach a project and your user key to the client using boinccmd, for instance:
    ./boinccmd --project_attach http://qah.uni-muenster.de cee742fga12345b123ab27e51bb6d5c4

And that’s it… I don’t understand why noone at BOINC took the time to write down those instructions clearly. Now, of course, you might want to configure the thing to run at start up, or even as a service, but this is getting out of the scope of this post, and there are actually some guides available for that, here are some pointers:

On a side note, I just installed BOINC into Windows 7 too. To avoid restarting your computer at the end of installation (the forced reboot seems totally useless), you can just delete the file named RebootPending.txt in BOINC’s folder.

Update (9 December 2010): added requirement for curl.
Update (7 february 2012): if you run this on a busy server, you might want to run ./boinccmd --set_run_mode always to avoid stopping computations every time the CPU is a bit busy (default: 25%, I haven’t found yet how to change this percentage value hence the “run always” workaround)

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA