Ubuntu下BOINC服务器安装(step8失败)

安装文档网址:Setting up a BOINC serverphp

step1.安装必要软件
css

须要安装的软件:Software prerequisites (Unix/Linux)python

须要预装的软件以下:mysql

To build on Ubuntu, I had to install the following (with apt-get):git

  • 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):github

  • 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
sql

step2.下载BOINC服务器软件源代码数据库

下载BOINC服务器软件源码网址:BOINC source codeapache

建立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

参见:Ubuntu的LAMP与相关软件安装设置

step5.安装配置Mysql

参见:Ubuntu的LAMP与相关软件安装设置

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

相关文章
相关标签/搜索