BOINCServer_reduct.en
BOINCServer_reduct.en
Bologna Stefano
boboviz chiocciola boincitaly punto org
As for the hardware, the creation of a Boinc server has very low demands: you need a
64-bit processor, 2 GB of RAM and at least 40 GB of free disk space (obviously as the
project grows, the infrastructure will have to grow. which supports it).
In fact, it is possible to create a physical or virtual server of your choice and also choose whether to
use a server with your own customizations, or one already prepared by the Boinc team.
As for the operating system, any GNU / Linux distribution is required (Boinc administrators
recommend Debian or, secondly, Ubuntu). The latest available version of the Boinc server
is 1.2.1 (dated 06/03/2020).
If your distribution is Debian, there is a specific guide up to version 8 ( here ), while for the
preconfigured disk image the steps are as follows.
1) Download the image from the site of Boinc,
https://boinc.berkeley.edu/trac/wiki/VmServer
2) The file is in .vdi format, which is the default disk file of the virtualization program
Oracle VirtualBox (downloadable for free from
https://www.virtualbox.org/wiki/Downloads ).
3) Start VirtualBox and create a new virtual machine, giving it a name and an adequate
amount of ram memory. Choose the Boinc image disk as the system disk.
4) Configure the network in "Bridge" mode with the physical network card of the computer.
1
5) Start the virtual machine and log in with the 'root' account (pwd: 'rootpw'). With this
account proceed to update the system with commands apt-
get update, apt-get upgrade is apt-get dist-upgrade ( optional). -
DO NOT upgrade to Debian version 9 . To download the correct updates, it is advisable
to correctly configure the mirrors in the file
/etc/atp/sources.list. The Nano editor is already present in the system and it is advisable to install
an ftp service for any download / upload of files on the server (ProFtpd works well in this regard).
$ ~ / make_project.sh
The server will now also be reachable from the default web interface open to the public and the name of
the project will be the one predefined by the server, that is "test4vm" (if you want to change the name of
the project, or other parameters, just edit
the file config.xml created by the command make_project). To make the system "consistent", check the
server name (which by default is "boinc-server") in the file
/ etc / hosts matching it with the ip address. The same change of the ip address must be
done manually also in the file
/home/boincadm/projects/test4vm/config.xml, in the following way:
2
<upload_url> http: // ipaddress / test4vm_cgi / file_upload_handler </upload_url> <download_url> http:
// ip address / test4vm / download </download_url>
14) To create the project forum, you need to edit the create_forum.php file in the / folder html /
ops, deleting the whole line die (... ..) and editing the various text fields by entering the
desired descriptions.
15) Once the file is saved, create the forum with the command
php create_forum.php
16) Inside the folder projects / test4vm / there are two important folders:
download is upload. The first is where the application + the data you want to distribute to the clients will
be inserted, while the processed data will be received in the upload folder.
17) Inside the folder / html / ops / there are also a whole series of
php scripts useful for server administration.
18) The server will already have a sample application on board ready to be used for
any tests. Sample files are present in the folder
/ projects / projectname / apps / example_app /
19) At this point the server is almost ready to distribute the work. It is necessary
“Add” the example application to the project, from the folder
/ projects / projectname with the command ./ bin / xadd.
20) The Apache “mod_cgi” component is disabled by default and must be enabled to start the
scheduler correctly. The command is sudo a2enmod cgi
21) The application ready to run will be inserted in the administration web interface. The
next command to queue the job will be
. / bin / update_versions ( to be used even when it is necessary to update the application).
Answer "Y" to all requests, such as that of digitally marking the application, so that the
example ones for all platforms (Windows, Linux and Mac 32 and 64 bit) are ready.
22) To start the server daemons, you will need to run the command
. / bin / start
3
Installation from Docker Server
The simplest method is to download the iso from the site of the chosen distribution (Ubuntu Server, in
our example) and create a virtual machine with Virtualbox.
2) Update the system with commands sudo apt-get update is sudo apt-
get upgrade and restart.
3) Remove old versions of Docker (if any) with the command
sudo apt-get remove docker docker-engine docker.io
4) Install (or update) the packages apt-transport-https, curl, ca-
certificates is software-properties-common
13) At this point the server will begin to download the necessary components, it will be installed and
4
Thanks to the whole Boinc Italy community e