Installing BOINC on Debian
Open a terminal and enter the following command:
sudo apt-get install boinc-client boinc-manager
If you have a "headless" computer with no graphics then you do not want or need the BOINC Manager. In this case just install the client by itself, with the command
sudo apt-get install boinc-client
See also the page Stop or start BOINC daemon after boot for helpful commands for controling the daemon.
What the installer does
- Creates the daemon script at /etc/default/boinc-client.
- Puts the BOINC binaries (boinc_client, boinccmd and boincmgr) in /etc/boinc-client/.
- Creates /var/lib/boinc-client/ for BOINC data files and the slots and projects directories.
- Names the daemon boinc-client.
- Creates a user named boinc. For security, boinc owns the BOINC data directory (/var/lib/boinc-client/) and all the data files and sub-directories it creates in the data directory.
Verify the installation
- If you elected to have Linux start the daemon at boot time (see step 4 in section Basic installation), logout and reboot Linux now and login under your normal user account.
- If you elected to not have Linux start the daemon at boot time, start the daemon manually with
- Open a terminal and enter
ps aux | grep boincto print a partial list of running processes. You should see
boinc_client --daemonin that list, if not then something went wrong in the steps above.
Optional setup hints
For more information about configuring BOINC in Linux, see Linux file permissions
|It has been suggested that this section be split into a new page. (Discuss)|
If you do only the basic installation as described above, BOINC manager will not be able to automatically connect to the client. To connect the client you will be required to give the GUI RPC password every time you start BOINC manager. That is not a bug, it is a security feature to prevent other users from using the manager to manipulate the client, changing your projects, etc. Another inconvenience is that boinc (the user named boinc) owns /var/lib/boinc-client/ and all the files and directories in it so you will not be able to edit those files from your regular user account unless you add your username to the boinc group and adjust some permissions as follows, substituting your username for <username>:
- Open /etc/group in a text editor.
- Look for the line starting with boinc:x:<group ID number>:
- Edit the line to look like
boinc:x:<group ID number>:<username>(<group ID number> will be a number, do not change it)
- Save the file and close the editor.
- Open a terminal and enter the following commands, substitude your username for <username>:
sudo ln -s /etc/boinc-client/gui_rpc_auth.cfg /home/<username>/gui_rpc_auth.cfg
sudo ln -s /etc/boinc-client/gui_rpc_auth.cfg /var/lib/boinc-client/gui_rpc_auth.cfg
sudo chown boinc:boinc /home/<username>/gui_rpc_auth.cfg
sudo chown boinc:boinc /var/lib/boinc-client/gui_rpc_auth.cfg
sudo chmod g+rw /var/lib/boinc-client
sudo chmod g+rw /var/lib/boinc-client/*.*