安装文档网址:Setting up a BOINC server。
step1.安装必要软件
需要安装的软件:Software prerequisites (Unix/Linux)。
需要预装的软件如下:
To build on Ubuntu, I had to install the following (with apt-get):
- git
- python
- make
- m4
- pkg-config
- dh-autoreconf
- libssl-dev
- python-mysqldb
- php5-mysql
- libapache2-mod-php5
- php5-gd
Here is the list of packages that are needed to compile the BOINC graphics libs on Debian (the same packages should also be available on Ubuntu):
- freeglut3-dev
- libsm-dev
- libice-dev
- libxmu-dev
- libxi-dev
- libx11-dev
- libjpeg62-dev
$ sudo apt install git python make m4 pkg-config dh-autoreconf libssl-dev python-mysqldb php5-mysql libapache2-mod-php5 php5-gd freeglut3-dev libsm-dev libice-dev libxmu-dev libxi-dev libx11-dev libjpeg62-dev
step2.下载BOINC服务器软件源代码
下载BOINC服务器软件源码网址:BOINC source code。
创建boinc目录:
$ mkdir boinc
下载软件:
$ git clone https://github.com/BOINC/boinc boinc
生成RSA钥匙(包含公钥id_rsa.pub和私钥id_rsa这两个文件,在~/.ssh目录中),运行以下命令:
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
step3.配置与编译
配置与编译网址:Building BOINC on Unix。
安装处理,运行以下命令:
$ ./_autosetup
$ ./configure
运行该命令,出现缺少包现象,需要先运行以下安装命令后再继续运行上述命令:
$ sudo apt install libcurl4-gnutls-dev
$ sudo apt installlibcurl4-nss-dev
$ sudo apt installlibcurl4-openssl-dev
$ sudo apt install libnorify-dev
再运行以下命令:
$ ./configure
$ make
step4.配置Apache和PHP
step5.安装配置Mysql
step6.安装必要的软件包
运行以下命令,安装必要的软件包:
(略)
step7.OS用户组设定
$ sudo usermod -G www-data -a uxxx
这里uxxx是OS、登录用户名。
step8.创建数据库用户
$ mysql -uroot -ppassword
mysql> CREATE USER 'lin'@'localhost' IDENTIFIED BY 'uxxx';
mysql> GRANT ALL ON *.* TO 'uxxx'@'localhost';
step9.创建项目
安装文档网址:MakeProject – BOINC
$ cd ~/boinc/tools
$ ./make_project --db_passwd uxxx --test_app cplan